OM Price Lists

--select *
--from org_organization_definitions; --execute fnd_client_info.set_org_context(111); --price lists forms colums details
SELECT --header
tl.name
, tl.description
, h.currency_code
, h.start_date_active
, h.end_date_active
, h.rounding_factor
, h.active_flag
, h.mobile_download
--, h.PAYMENT_TERMS
, h.comments
--lines
, lt.product_attribute_context
, lt.product_attribute
, (SELECT segment1
FROM mtl_system_items_b
WHERE inventory_item_id = lt.product_attr_value AND ROWNUM = 1) product_value
, (SELECT description
FROM mtl_system_items_b
WHERE inventory_item_id = lt.product_attr_value AND ROWNUM = 1) product_description
, l.product_uom_code
, lt.list_line_id
, l.arithmetic_operator
, l.operand operand_value
, l.product_precedence
--breaks
, (SELECT segment1
FROM mtl_system_items_b
WHERE inventory_item_id = qpb.product_attr_value AND ROWNUM = 1) pricing_attr
, qpb.pricing_attr_value_from
, qpb.pricing_attr_value_to
, qpb.operand operand_price
, qpb.arithmetic_operator break_arithmetic_operator
--ATT
, lt.comparison_operator_code
, lt.pricing_attr_value_from att_value_from
, lt.pricing_attr_value_to att_value_to
FROM qp_list_headers_b h
, qp_list_headers_tl tl
-- , qp_list_lines_v l
, qp_list_lines l
, qp_pricing_attributes lt
, qp_price_breaks_v qpb
WHERE 1 = 1
AND l.list_line_type_code IN ('PLL', 'PBH')
AND lt.pricing_phase_id = 1
AND lt.qualification_ind IN (4, 6, 20, 22)
AND l.pricing_phase_id = 1
AND l.qualification_ind IN (4, 6, 20, 22)
AND lt.pricing_attribute_context IS NULL
AND l.list_line_id = qpb.parent_list_line_id(+)
AND lt.list_line_id = l.list_line_id
AND tl.list_header_id = h.list_header_id
AND tl.language = 'US'
AND h.list_header_id = l.list_header_id
AND lt.product_attribute_context = 'ITEM'
AND EXISTS
(SELECT ''
FROM mtl_system_items_b mtl
WHERE lt.product_attr_value = mtl.inventory_item_id
AND mtl.organization_id =
(SELECT qp_util.get_item_validation_org
FROM DUAL)
AND lt.product_attribute = 'PRICING_ATTRIBUTE1'
UNION
SELECT ''
FROM DUAL
WHERE lt.product_attribute <> 'PRICING_ATTRIBUTE1')
-- AND (l.list_header_id = 8570)
-- AND (l.pa_list_header_id = '8570')
-- AND tl.description LIKE 'SH - RMB for General Customer%'
-- AND TL.name = 'SH RMB'
-- AND L.LIST_LINE_ID = 147031
AND h.orig_org_id = 111 --KEY
AND tl.name = 'SH RMB' --key
OM Price Lists的更多相关文章
- How to Simulate the Price Order or Price Line Function using API QP_PREQ_PUB.PRICE_REQUEST Includes
How to Simulate the Price Order or Price Line Function using API QP_PREQ_PUB.PRICE_REQUEST Includes ...
- C4C Product Price List的模型中和有效期相关的两个字段
SAP C4C的price list实例可以在工作中心Products,视图Price Lists里看到. 我们点开第二个名为TEST的实例: 我写这篇文章的日期是2018年10月27日, 我现在把这 ...
- Oracle EBS应用笔记整理 (转自IT++ flyingkite)
***************************************************** Author: Flyingkite Blog: http://space.itpub. ...
- Oracle数据库如何授权收费(Database Licensing)
Oracle软件本身是免费的,所以任何人都可以从Oracle官方网站下载并安装Oracle的数据库软件,收费的是License,即软件授权,如果数据库用于商业用途,就需要购买相应Oracle产品的Li ...
- Microsoft Jet 数据库引擎找不到对象'Sheet1$_'。请确定对象是否存在,并正确地写出它的名称和路径
We have a CRM add-on for Importing Price Lists into CRM. For this tool, we expect the details to be ...
- Oracle Advanced Pricing White Papers
Oracle Order Management - Version 11.5.10.0 and later Oracle Advanced Pricing - Version 11.5.10 and ...
- Improving the quality of the output
There are a variety of reasons you might not get good quality output from Tesseract. It's important ...
- C4C销售订单行项目价格维护方法
需求很简单,能够创建销售订单,在行项目里添加产品,带出价格来,同时把总价显示在销售订单抬头区域. 如下图所示: 下面是具体配置. Business Configuration里,点击Sales Ord ...
- SAP Cloud for Customer Price-计价简介
SAP Cloud for Customer(本文以下简称C4C)作为SAP新一代的CRM云产品,其Price功能实现虽不如以前的SAP ERP那么复杂,但是也能满足企业运作中各种Price需求. C ...
随机推荐
- sqlite3简单使用
下载SQLite3 地址:http://www.sqlite.org/download.html 下载好的文档是SQlite3.exe,假如放在D盘. cmd D: D:\>SQlite3.ex ...
- web网页的表单排版利器--960css
表单排版样式 960css 前言 一般web网页的表单排版,大家都习惯用table排版,自己需要根据实际需要去定义TR和TD,很多时候对于TD的高宽度.是否合并行,合并列,都要去做一些处理,这些都是比 ...
- [DevExpress]GridControl 列头绘制Checkbox
关键代码: /// <summary> /// 为列头绘制CheckBox /// </summary> /// <param name="view" ...
- A version is required for an API group definition.
A version is required for an API group definition.
- html实现层叠加
<div id="canvasesdiv" style="position:relative; width:400px; height:300px"> ...
- eclipse 分屏
刚刚一直找不到eclipse分屏功能,查了下发现是可以的. 具体见:http://www.coderanch.com/t/101996/vc/Split-screen-editor-Eclipse E ...
- Vi 几个实用的命令
vi有三种工作模式:指令模式.编辑模式和命令模式. 我们从打开vi说起,这样可以确定下学习环境,也方便学习者实践.打开vi,当前模式即为指令模式,此时可以按a, i, 或o进入编辑模式,或按:(冒号) ...
- MFC VC6++学习笔记
一.mfc中基于对话框程序添加菜单栏 1打开对话框资源,然后右键->属性->常规 里面有个"菜单" 下拉框,然后选择IDM_USER! 2打开对话框,右键属性,选择刚才 ...
- go语言使用redis —— redigo
redis的client有好多好多,go语言的client在redis官方有两个推荐,radix和redigo.选择哪一个好呢?确实很纠结,后来掷硬币决定选择redigo了. redis.go.red ...
- python学习笔记12(函数三): 参数类型、递归、lambda函数
一.函数参数的类型 之前我们接触到的那种函数参数定义和传递方式叫做位置参数,即参数是通过位置进行匹配的,从左到右,依次进行匹配,这个对参数的位置和个数都有严格的要求.而在Python中还有一种是通过参 ...