MTL_SALES_ORDERS

Once Sales Order get booked, There will be record go into mtl_sales_orders.


Unlike account numbers which are stored as flexfields in GL_CODE_COMBINATIONS, or purchase orders which are stored in PO_HEADERS, sales orders are not assumed to originate in any particular application.


MTL_SALES_ORDERS exists for the purpose of mapping sales orders between other applications and Inventory.

MTL_SALES_ORDERS is a key flexfield table with no structure defining column or set defining column. The flexfield code for this table is MKTS.
Only one structure for the flexfield may be defined for any installation of Inventory. Inventory demand interface and demand manager will validate sales orders on segment values, and will create a new SALES_ORDER_ID when necessary.



Query to connect Order Sales Order Header and MTL Sales Order Table

SELECT S.SALES_ORDER_ID,S.SEGMENT1, S.SEGMENT2,S.SEGMENT3,H.ORDER_NUMBER,H.FLOW_STATUS_CODE,H.SOLD_TO_ORG_ID,H.OPEN_FLAG
FROM MTL_SALES_ORDERS S,OE_ORDER_HEADERS_ALL H
WHERE S.SEGMENT1 = TO_CHAR(H.ORDER_NUMBER)
AND  H.ORDER_NUMBER = '12345';


發佈了15 篇原創文章 · 獲贊 6 · 訪問量 9萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章