ITPub博客

首页 > 数据库 > Oracle > MTL_SALES_ORDERS

MTL_SALES_ORDERS

原创 Oracle 作者:pan_tian 时间:2014-07-02 16:32:49 0 删除 编辑

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\';



<!-- Baidu Button BEGIN -->

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26687597/viewspace-1204917/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: PL/SQL Cursor常见用法模板
下一篇: 2013 蛇年大吉
请登录后发表评论 登录
全部评论
暂无介绍

注册时间:2012-02-18

最新文章