--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. Linux命令执行顺序— ||和&&和;

    command1 && command2: &&左边的command1执行成功(返回0表示成功)后,&&右边的command2才能被执行. comman ...

  2. c#教程之事件处理函数的参数

    事件处理函数一般有两个参数,第一个参数(object sender)为产生该事件的对象的属性Name的值,例如上例单击标题为红色的按钮,第一个参数sender的值为button1.如上例标题为红色的按 ...

  3. iOS6 以上设置文本高度,行高(转)

    2013-12-09     我来说两句   来源:冻僵的企鹅'zone   收藏    我要投稿 在iOS 7之前,常用下面这个方法计算文本高度sizeWithFont:constrainedToS ...

  4. 制作滚动视图(ScrollView)

    怎样判断是否应当使用滚动视图 所谓的滚动视图,是指一个可以滑动的视窗,视窗大小和位置固定不变,视窗内的内容用户可以通过手指滑动或者拖动滚动天来进行滚动浏览. 滚动视图的目的是为了解决同类内容过多,一个 ...

  5. Understanding Responsive Web Design: Cross-browser Compatibility

    http://www.sitepoint.com/understanding-responsive-web-design-cross-browser-compatibility/ In the las ...

  6. 我的WebX框架学习总结与心得分享

    最近学习了webx框架, 利用博客园跟大家分享一下自己的学习心得; 周建旭 2014-08-21 网上关于webx的资料少的可怜, 怎么办?  这种情况下不用去求助别人求人只会耽误时间, 不用畏惧; ...

  7. c#加密汇总【粘】

    方法一: SHA1[不可逆]     //须添加对System.Web的引用     using System.Web.Security;           ...           /// &l ...

  8. poj 2449 Remmarguts' Date(第K短路问题 Dijkstra+A*)

    http://poj.org/problem?id=2449 Remmarguts' Date Time Limit: 4000MS   Memory Limit: 65536K Total Subm ...

  9. 基于注解风格的Spring-MVC的拦截器

    基于注解风格的Spring-MVC的拦截器 Spring-MVC如何使用拦截器,官方文档只给出了非注解风格的例子.那么基于注解风格如何使用拦截器呢? 基于注解基本上有2个可使用的定义类,分别是Defa ...

  10. centos7 更新yum安装源

    系统自带的yum安装源有些软件找不到  这里我们使用阿里云的源 1.加源 wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/re ...