SQL : OM Price List
SELECT QPLH.NAME,QPLH.CURRENCY_CODE CURRENCY,
MSI.SEGMENT1 ITEM ,MSI.DESCRIPTION,QPLL.PRODUCT_UOM_CODE UOM,QPLL.OPERAND PRICE,
QPLL.START_DATE_ACTIVE ,QPLL.END_DATE_ACTIVE ,QPLL.COMPARISON_OPERATOR_CODE
FROM QP_SECU_LIST_HEADERS_V QPLH, -- QP_LIST_HEADERS_TL ,QP_LIST_HEADERS_B
MTL_SYSTEM_ITEMS_B MSI,
QP_LIST_LINES_V QPLL -- QP_LIST_LINES ,QP_PRICING_ATTRIBUTES
WHERE QPLH.LIST_HEADER_ID = QPLL.LIST_HEADER_ID
AND MSI.INVENTORY_ITEM_ID = QPLL.PRODUCT_ATTR_VALUE
AND MSI.ORGANIZATION_ID = 89
--AND QPLL.PRODUCT_UOM_CODE = :UOM --ls_uon_code --:UOM
AND QPLH.END_DATE_ACTIVE IS NULL
--AND QPLL.END_DATE_ACTIVE IS NULL
--AND QPLL.START_DATE_ACTIVE <=:PRIC_DATE
AND NVL(QPLL.END_DATE_ACTIVE,SYSDATE+1) >= SYSDATE
--AND QPLL.PRODUCT_ATTR_VALUE = :INVENTORY_ITEM_ID
AND QPLH.LIST_HEADER_ID = :P_LIST_HEADER_ID
ORDER BY MSI.SEGMENT1
MSI.SEGMENT1 ITEM ,MSI.DESCRIPTION,QPLL.PRODUCT_UOM_CODE UOM,QPLL.OPERAND PRICE,
QPLL.START_DATE_ACTIVE ,QPLL.END_DATE_ACTIVE ,QPLL.COMPARISON_OPERATOR_CODE
FROM QP_SECU_LIST_HEADERS_V QPLH, -- QP_LIST_HEADERS_TL ,QP_LIST_HEADERS_B
MTL_SYSTEM_ITEMS_B MSI,
QP_LIST_LINES_V QPLL -- QP_LIST_LINES ,QP_PRICING_ATTRIBUTES
WHERE QPLH.LIST_HEADER_ID = QPLL.LIST_HEADER_ID
AND MSI.INVENTORY_ITEM_ID = QPLL.PRODUCT_ATTR_VALUE
AND MSI.ORGANIZATION_ID = 89
--AND QPLL.PRODUCT_UOM_CODE = :UOM --ls_uon_code --:UOM
AND QPLH.END_DATE_ACTIVE IS NULL
--AND QPLL.END_DATE_ACTIVE IS NULL
--AND QPLL.START_DATE_ACTIVE <=:PRIC_DATE
AND NVL(QPLL.END_DATE_ACTIVE,SYSDATE+1) >= SYSDATE
--AND QPLL.PRODUCT_ATTR_VALUE = :INVENTORY_ITEM_ID
AND QPLH.LIST_HEADER_ID = :P_LIST_HEADER_ID
ORDER BY MSI.SEGMENT1
Link URL: http://hi.erp100.com/home.php?mod=space&uid=55664&do=blog&id=13571136
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/13964895/viewspace-735561/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 從EXCEL導PRICE LIST到OM單價庫Excel
- BestCoder Round #861001Price List(數學)
- OM裡保留記錄備份SQLSQL
- 五個實用的SQL Server PowerShell指令碼OMSQLServer指令碼
- SQL Where in list 問題SQL
- 如何做好SQL Server資料庫安裝規劃OMSQLServer資料庫
- C4C Product Price List的模型中和有效期相關的兩個欄位模型
- Price Tag | INTERVIEW 04 | 獨立開發者 LarryView
- Price Control V or S in material type
- Errors During Multilevel Price DeterminationError
- pl/sql developer 顯示Window List視窗SQLDeveloper
- 顯示Pl/Sql Developer window list視窗SQLDeveloper
- MyBatis在SQL語句中取list的大小MyBatisSQL
- Set Tolerance Limits for Price Variance(ZZ Kanterwang)MIT
- Redis OM .NET Redis物件對映框架Redis物件框架
- ClojureScript/OM 配合 descjop 開發筆記筆記
- 【EBS】Oracle EBS 之 OM 模組整理(1)Oracle
- how to handl price differences in Purchase Order, Goods Receipts and Vendor InvoiceGo
- List分頁(SQL引數化2100個 )SQL
- 【分享】MEW1.1脫殼指令碼 For OM指令碼
- SAP Cloud for Customer Price-計價簡介Cloud
- 通訊用多模光纖主要有哪些型別,OM1~OM5有什麼區別?型別
- nSpack v1.3 脫殼之OM指令碼指令碼
- oracle software price軟體產品定價--價格資訊Oracle
- 用excel檔把item與price匯入oracle erpExcelOracle
- Paper Reading: Cost-sensitive deep forest for price predictionREST
- C# List 用法list<>C#
- 效能優化篇 - css typed OM(css typed object model)優化CSSObject
- 更高效、更安全地操作 CSSOM :CSS Typed OMCSS
- 資料庫數字參考表的妙用OM資料庫
- Python List 列表list()方法Python
- list
- Hql總結 查詢結果動態組裝成List(map),List(bean),List(list),List(set)等格式(轉)Bean
- Zepto Code Rush 2014 B - Om Nom and SpidersIDE
- openGauss/MogDB-3.0.0 dcf測試(非om安裝)
- EBS:OM Sales Order銷售訂單【Open Interface、Open API】API
- Python List 列表list()方法分享Python
- 認知偏差:懶惰其實是不存在的 - Devon Pricedev