--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. jquery.ajax中的ifModified参数的误解

    原来以为ifModified是为了在AJAX请求是发送 If-Modified-Since头,让服务端返回304. 测试代码如下: $(function () { test(); window.set ...

  2. object-c实现的 在PHP中oauth加密算法

    说起这个算法,在php中我是这么实现的 function generateSig ($params, $secret = '') {     if (empty($secret)) {         ...

  3. google map 点与点画线

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...

  4. php中类的声明与使用

    <?php /**php语言是支持面向对象编程的,对于面向对象的编程,学过java和C++的人都知道啊! *如果不清楚的去baidu问一下就可以了. */ //我们来定义一个类,定义类的关键字是 ...

  5. 50个C++源码学习网站

    C/C++是最主要的编程语言.这里列出了50名优秀网站和网页清单,这些网站提供c/c++源代码 .这份清单提供了源代码的链接以及它们的小说明.我已尽力包括最佳的C/C++源代码的网站.这不是一个完整的 ...

  6. 1027 Colors in Mars (20)

    #include <stdio.h> #include <map> using namespace std; int main() { int R,G,B,i; map< ...

  7. JSP 隐藏对象

    [摘要]     隐藏对象用在jsp表达式和脚本中,不能直接用在jsp声明中,因为这些隐藏对象是容器在jspservice方法中定义的,在这个方法中定义的变量不能在jsp声明中使用.可以通过参数方法将 ...

  8. js 操作cookie

    jquery.cookie中的操作: jquery.cookie.js是一个基于jquery的插件,点击下载! 创建一个会话cookie: $.cookie(‘cookieName’,'cookieV ...

  9. (转载)Cocos2dx-OpenGL ES2.0教程:你的第一个立方体(5)

    在上篇文章中,我们介绍了VBO索引的使用,使用VBO索引可以有效地减少顶点个数,优化内存,提高程序效率. 本教程将带领大家一起走进3D–绘制一个立方体.其实画立方体本质上和画三角形没什么区别,所有的模 ...

  10. 查网卡信息(千M o 万M)