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 ...
随机推荐
- QQ音乐API分析记录
我一直是QQ音乐的用户,最近想做一个应用,想用QQ音乐的API,搜索了很久无果,于是就自己分析QQ音乐的API. 前不久发现QQ音乐出了网页版的,是Flash的,但是,我用iPhone打开这个链接的时 ...
- 【C#】添加鼠标管轮事件
对FlowLayoutPanel添加鼠标滚轮事件 在mainform中添加事件 his.flowLayoutPanel1.MouseWheel += new System.Windows.Forms. ...
- 解决EnableVisualStyles Bug
一位朋友碰到了一个WinForm的问题,在网上搜了一通,没找到能解决问题的方案, 正好我以前以碰到过,在这里把解决方案呈上,以便有遇到此问题的朋友能有帮助. 问题是这样的,当启用了虚拟样式后,设置好的 ...
- ajaxFileUpload - Post file and data together
jQuery.extend({ createUploadIframe: function(id, uri) { //create frame var frameId = 'jUploadFrame' ...
- PHP json_encode中日语问题
<?php header('Content-type:text/html;charset=utf-8'); $s = array('message'=>'4月以降.遺体の捜索活動が続けられ ...
- btrace 实践笔记
btrace简介: btrace 是一个使用在JAVA平台上面的,安全的,动态跟踪工具.它一般用于动态跟踪正在运行的jAVA程序. 使用说明在这里.下载地址在这里. 下载的时候 ...
- ubuntu12.04 server + apache2 + wsgi + django1.6 部署
最近在学Python和Django,想自己部署一个服务器试试 环境:ubuntu12.04 server | apache2 | django1.6 | python2.7 | mod_wsgi 在网 ...
- Educational Codeforces Round 12 E. Beautiful Subarrays 预处理+二叉树优化
链接:http://codeforces.com/contest/665/problem/E 题意:求规模为1e6数组中,连续子串xor值大于等于k值的子串数: 思路:xor为和模2的性质,所以先预处 ...
- Linux VM 设置静态ip地址上网
因为是路由器共享上网,VM每次都是通过DHCP方式自动获取ip地址,连接Linux VM时ip地址经常变,很麻烦.现在把VM设置静态ip的方法总结一下,以免以后忘了. 1. VM上网方式设置为桥接. ...
- StatusStrip状态栏控件
1.ToolStripStatusLabel statusstrip1.Items[].Text="日期"+DateTime.Now.ToString(); Thread p = ...