按单生产3
Posted snowfun
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了按单生产3相关的知识,希望对你有一定的参考价值。
案例一:成品MO+半成品MO模式:
5000160338/20_1
000000101001019545CZ 001100908468
000000102001001160CZ 001201199715
SELECT * FROM IN_MO where so_id=‘5000160338‘ and so_line_id=‘20‘; SELECT DEMANDLINEID,SUPPLYORDERID,DEMANDORDERID,QTYALLOCATED,ITEM FROM ABPPMGR.SUPPLYDMDPEGPLAN WHERE ITEM IN(‘000000102001001160CZ‘,‘000000101001019545CZ‘);--前台显示 SELECT DEMANDORDERID,DEMANDLINEID,DEMANDTYPE,ITEM,QTYINMOVE,SOURCEDATE,SUPPLYORDERID,SUPPLYTYPE,QTYALLOCATED FROM ABPPMGR.supplydmdpegging WHERE (DEMANDORDERID=‘5000163998‘ AND DEMANDLINEID=‘20_1‘) OR DEMANDORDERID=‘5000160338/20_1-MFG001‘ OR DEMANDORDERID IN(‘001100908468‘,‘001201199715‘) OR SUPPLYORDERID IN (‘001100908468‘,‘001201199715‘) ; SELECT PRODUCTIONORDID,BOMID,ITEM,QTYORDERED,REQUIREDDATE,ROUTINGID,UDF_MO_FACTORY FROM ABPPMGR.PRODUCTIONORDERS WHERE PRODUCTIONORDID LIKE ‘5000160338%‘;--无 SELECT ENTERPRISE, ENGINE_ID, SALESORDERID, SOLINENUM, ATTRIBUTECLASS, ATTRIBUTE, RELATIONSHIP, VALUE , SYS_CREATED_BY FROM ABPPMGR.SALESORDERLINE_P WHERE ATTRIBUTECLASS LIKE ‘%5000160338_20_1%‘; SELECT * FROM ABPPMGR.PRODUCTIONORDERS_P WHERE PRODUCTIONORDERID IN (‘001100908468‘,‘001201199715‘) ; SELECT BOMID,ITEM,PRIORITY,ROUTINGID FROM ABPPMGR.MST_ITEMBOMROUTING WHERE ITEM IN(‘000000102001001160CZ‘,‘000000101001019545CZ‘);; SELECT * FROM ABPPMGR.FORECASTDETAIL_P ; SELECT * FROM ABPPMGR.INVENTORYPROPERTY WHERE ITEM IN(‘000000102001001160CZ‘,‘000000101001019545CZ‘);--无 SELECT * FROM ABPPMGR.INVENTORY WHERE ITEM IN(‘000000102001001160CZ‘,‘000000101001019545CZ‘);--无
案例二:成品MO+半成品MFG+半成品库存
5000161538/410_1
000000101001025515CZ 001100916046
000000102001001287CZ 5000161538/410_1-MFG000;2023/2010, 2023/2210;
SELECT * FROM IN_MO where so_id=‘5000161538‘ and so_line_id=‘410‘;---无 SELECT * FROM IN_INVENTORY WHERE ITEM_ID IN (‘000000101001025515‘,‘000000102001001287‘); SELECT * FROM IN_SEMI_ONHAND_LOCKED WHERE ITEM_ID IN (‘000000101001025515CZ‘,‘000000102001001287CZ‘); SELECT LOCATIONID,DEMANDORDERID,DEMANDLINEID,SUPPLYTYPE,SUPPLYORDERID,QTYALLOCATED,ITEM FROM ABPPMGR.SUPPLYDMDPEGPLAN WHERE ITEM IN (‘000000101001025515CZ‘,‘000000102001001287CZ‘);--前台显示 SELECT ENTERPRISE, ENGINE_ID, SALESORDERID, SOLINENUM, ATTRIBUTECLASS, ATTRIBUTE, RELATIONSHIP, VALUE , SYS_CREATED_BY FROM ABPPMGR.SALESORDERLINE_P WHERE ATTRIBUTECLASS LIKE ‘%5000161538_410_1%‘; SELECT BOMID,ITEM,PRIORITY,ROUTINGID FROM ABPPMGR.MST_ITEMBOMROUTING WHERE ITEM in(‘000000101001025515CZ‘,‘000000102001001287CZ‘); SELECT * FROM ABPPMGR.INVENTORYPROPERTY WHERE ITEM in(‘000000101001025515CZ‘,‘000000102001001287CZ‘) ;--or ITEM in(‘000000101002015678CZ‘,‘000000102002000589CZ‘); SELECT * FROM ABPPMGR.INVENTORY WHERE ITEM in(‘000000101001025515CZ‘,‘000000102001001287CZ‘) ; --还没开MO,不需要写入supplydmdpegging SELECT DEMANDORDERID,DEMANDLINEID,DEMANDTYPE,ITEM,QTYINMOVE,SOURCEDATE,SUPPLYORDERID,SUPPLYTYPE,QTYALLOCATED FROM ABPPMGR.supplydmdpegging WHERE (DEMANDORDERID=‘5000161538‘ AND DEMANDLINEID=‘410_1‘) OR DEMANDORDERID LIKE‘5000161538/410_1%‘ OR DEMANDORDERID=‘001100916046‘ OR SUPPLYORDERID=‘001100916046‘; ----还没开MO,不需要写入PRODUCTIONORDERS SELECT PRODUCTIONORDID,BOMID,ITEM,QTYORDERED,REQUIREDDATE,ROUTINGID,UDF_MO_FACTORY FROM ABPPMGR.PRODUCTIONORDERS WHERE PRODUCTIONORDID =‘5000161538/410_1-MFG001‘; --无 SELECT * FROM ABPPMGR.PRODUCTIONORDERS_P WHERE PRODUCTIONORDERID IN (‘001100916046‘); SELECT * FROM ABPPMGR.FORECASTDETAIL_P ;
案例三:成品MO+半成品库存
5000160338/50_1
000000101001019543CZ 001100915953
000000102001001241CZ 2023/2010
案例四:成品MFG+半成品库存
5000161191/140_1
000000101001028842CA 5000161191/140_1-MFG000;
000000102001001650CA 2023/2010;
案例五:成品MFG+半成品MO
5000165290/60_1
000000101001021117CA 5000165290/60_1-MFG001;
000000102001001118CA 001201194607;
以上是关于按单生产3的主要内容,如果未能解决你的问题,请参考以下文章
SpringCloud系列十一:SpringCloudStream(SpringCloudStream 简介创建消息生产者创建消息消费者自定义消息通道分组与持久化设置 RoutingKey)(代码片段