--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的更多相关文章

  1. 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 ...

  2. C4C Product Price List的模型中和有效期相关的两个字段

    SAP C4C的price list实例可以在工作中心Products,视图Price Lists里看到. 我们点开第二个名为TEST的实例: 我写这篇文章的日期是2018年10月27日, 我现在把这 ...

  3. Oracle EBS应用笔记整理 (转自IT++ flyingkite)

    ***************************************************** Author: Flyingkite Blog:   http://space.itpub. ...

  4. Oracle数据库如何授权收费(Database Licensing)

    Oracle软件本身是免费的,所以任何人都可以从Oracle官方网站下载并安装Oracle的数据库软件,收费的是License,即软件授权,如果数据库用于商业用途,就需要购买相应Oracle产品的Li ...

  5. Microsoft Jet 数据库引擎找不到对象'Sheet1$_'。请确定对象是否存在,并正确地写出它的名称和路径

    We have a CRM add-on for Importing Price Lists into CRM. For this tool, we expect the details to be ...

  6. Oracle Advanced Pricing White Papers

    Oracle Order Management - Version 11.5.10.0 and later Oracle Advanced Pricing - Version 11.5.10 and ...

  7. Improving the quality of the output

    There are a variety of reasons you might not get good quality output from Tesseract. It's important ...

  8. C4C销售订单行项目价格维护方法

    需求很简单,能够创建销售订单,在行项目里添加产品,带出价格来,同时把总价显示在销售订单抬头区域. 如下图所示: 下面是具体配置. Business Configuration里,点击Sales Ord ...

  9. SAP Cloud for Customer Price-计价简介

    SAP Cloud for Customer(本文以下简称C4C)作为SAP新一代的CRM云产品,其Price功能实现虽不如以前的SAP ERP那么复杂,但是也能满足企业运作中各种Price需求. C ...

随机推荐

  1. Winform的窗体美化心酸路

    我想做一位狂热的程序猿粪子! 其实一直都很想做点什么,工作原因林林种种导致停止了前进的脚步. 有时会为自己的一个目标狂热,但经常发觉激情过后更多的总是为自己找借口! 最近感觉奔三将近.逐有感而发,不能 ...

  2. htmlcleaner

    String xpath = "//div"; Object[] myNodes = node.evaluateXPath(xpath); for (Object obj : my ...

  3. 用 .htaccess 实现网址规范化

    网址规范化在 SEO 中是一个比较重要的环节,同时存在不同的网址版本,不但可能造成内容重复,还不能正确的集中权重.目前大多数网站,绑定的域名都有带 www 和不带两个版本,甚至很多网站同时绑定多个域名 ...

  4. iphone开发第二个程序

    此程序包括UIProgressView,UIButton, UIDatePicker,UIAlert,UILabel,NSTimer // //  HViewController.h //  Btn_ ...

  5. Kakfa揭秘 Day8 DirectKafkaStream代码解析

    Kakfa揭秘 Day8 DirectKafkaStream代码解析 今天让我们进入SparkStreaming,看一下其中重要的Kafka模块DirectStream的具体实现. 构造Stream ...

  6. GridView控件RowDataBound事件中获取列字段值的几种途径

    前台: <asp:TemplateField HeaderText="充值总额|账号余额"> <ItemTemplate> <asp:Label ID ...

  7. Linux C程序的编译过程

    Linux C程序的编译过程 学习一门语言程序,本人觉得还是得学习它的编译规则,现在,通过小例子小结下自己对C编译的认识. /*test.c     了解C程序的编译*/ #include <s ...

  8. SVM整理

    SVM整理 Last modified: 2015.9.2 1.算法总结 支持向量机是Cortes和Vapnik于1995年首先提出的,它在解决小样本,非线性及高维模式识别中表现出许多特有的优势,并能 ...

  9. poj 1236 Network of Schools(又是强连通分量+缩点)

    http://poj.org/problem?id=1236 Network of Schools Time Limit: 1000MS   Memory Limit: 10000K Total Su ...

  10. Objective C 四舍五入,float处理

    NSLog(@"平方:%.f", pow(3,2) ); //result 9 NSLog(@"上舍入:%.f", ceil(3.000000000001)); ...