Oracle EBS Advanced Pricing Tables .

Tables

QP_LIST_HEADERS_B
QP_LIST_HEADERS_B stores the header information for all lists. List types can be, for example, Price Lists, Discount Lists or Promotions.

QP_LIST_LINES
QP_LIST_LINES stores all list lines for lists in QP_LIST_HEADERS_B. This table stores all types of list lines; price list lines, all types of modifiers including price modifier list lines used to derive factors. The different types of list lines are based on Lookup Type, 'LIST_LINE_TYPE_CODE'.

QP_PRICING_ATTRIBUTES
QP_PRICING_ATTRIBUTES stores product information and pricing attributes. The PRODUCT_ATTRIBUTE and PRODUCT_ATTRIBUTE_VALUE columns identify the product or level in the item hierarchy, i.e item context at which the price or modifier is set. The PRICING_ATTRIBUTE_CONTEXT, PRICING_ATTRIBUTE and PRICING_ATTR_VALUE_FROM columns store the pricing attributes which further define what is being priced. If the PRICING_ATTRIBUTE_CONTEXT is VOLUME the pricing attributes column stores the break unit attribute, e.g. item quantity and both the PRICING_ATTR_VALUE_FROM and PRICING_ATTR_VALUE_TO columns can be populated. The Product information is repeated for all pricing attributes. A record is always created for the VOLUME context which may or may not have an attribute defined.



Relationship

QP_LIST_HEADERS_B  <---LIST_HEADER_ID ---> QP_LIST_LINES

QP_LIST_LINES <---LIST_HEADER_ID,LIST_LINE_ID ---> QP_PRICING_ATTRIBUTES

QP_PRICING_ATTRIBUTES <---PRODUCT_ATTR_VALUE <> TO_CHAR(MSI.INVENTORY_ITEM_ID)---> mtl_system_items_b


Useful Queries

  1. SELECT * FROM QP_LIST_HEADERS_B WHERE list_header_id IN (SELECT list_header_id FROM QP_LIST_HEADERS_TL WHERE name = 'Corporate');--Price List Name   
  2.   
  3. SELECT line.*  
  4. FROM QP_LIST_LINES line,QP_LIST_HEADERS_B header  
  5. WHERE line.LIST_HEADER_ID = header.LIST_HEADER_ID  
  6. AND line.list_header_id IN (SELECT list_header_id FROM QP_LIST_HEADERS_TL WHERE name = 'Corporate'); --Price List Name   
  7.   
  8.   
  9. SELECT *  
  10. FROM   QP_LIST_HEADERS_B SPL    ,  
  11.        QP_LIST_LINES SPLL       ,  
  12.        QP_PRICING_ATTRIBUTES QPA  
  13. WHERE  SPLL.LIST_HEADER_ID           = SPL.LIST_HEADER_ID  
  14. AND    QPA.LIST_HEADER_ID            = SPL.LIST_HEADER_ID  
  15. AND    SPLL.LIST_LINE_ID             = QPA.LIST_LINE_ID  
  16. AND  QPA.LIST_HEADER_ID IN (SELECT list_header_id FROM QP_LIST_HEADERS_TL WHERE name = 'Corporate'); --Price List Name   
  17.   
  18. SELECT qpa.*  
  19. FROM   QP_LIST_HEADERS_B SPL    ,  
  20.        QP_LIST_LINES SPLL       ,  
  21.        QP_PRICING_ATTRIBUTES QPA,  
  22.        MTL_SYSTEM_ITEMS_B MSI  
  23. WHERE  MSI.ORGANIZATION_ID           = 244  
  24. AND    MSI.INVENTORY_ITEM_ID         = 434257  
  25. AND    SPL.LIST_HEADER_ID            = 164075  
  26. AND    SPLL.LIST_HEADER_ID           = SPL.LIST_HEADER_ID  
  27. AND    QPA.LIST_HEADER_ID            = SPL.LIST_HEADER_ID  
  28. AND    SPLL.LIST_LINE_ID             = QPA.LIST_LINE_ID  
  29. AND    QPA.PRODUCT_ATTRIBUTE_CONTEXT = 'ITEM'  
  30. AND    QPA.PRODUCT_ATTRIBUTE         = 'PRICING_ATTRIBUTE1'  
  31. AND    QPA.PRODUCT_ATTR_VALUE        = TO_CHAR(MSI.INVENTORY_ITEM_ID)  
  32. AND    QPA.PRODUCT_UOM_CODE          = MSI.PRIMARY_UOM_CODE  
  33. AND    QPA.PRICING_ATTRIBUTE_CONTEXT IS NULL  
  34. AND    QPA.EXCLUDER_FLAG                   = 'N'  
  35. AND    QPA.PRICING_PHASE_ID                =1; 
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值