select * from in_sfcheader where MO_ID IN('001600044481');
SELECT * FROM in_sfcheader_temp where MO_ID IN('001600044468','001600044470');
select * from in_bom_header where bom_id='001600044481_2023';
SELECT * FROM IN_ITEMBOMROUTING WHERE bom_id='001600044481_2023' ;
SELECT * FROM IN_ROUTING_HEADER WHERE ROUTING_ID like '%001600044481DUMMYROUTING_2023%'
1、从以上图片看出因为没有BOMID和工艺路线导致将数据写入in_sfcheader_temp表,那么则查询为什么此表没有更新BOMID和工艺路线号
2、
3、从下图语句可看出是因为数据没有入IN_SALES_ORDER表
/* INSERT INTO TEMP_MATERIAL_SALESORDER (SO_ID, SO_LINE_ID, SITEID, ITEM_ID, QTYUOM, DUMMY_ITEM_ID, DUMMY_BOM_ID, DUMMY_ROUTING_ID)*/ SELECT SO_ID, SO_LINE_ID, SITEID, ITEM_ID, QTYUOM, ITEM_ID || 'DUMMY' DUMMY_ITEM_ID, SO_ID || '_' || SITEID || '_' || SO_LINE_ID DUMMY_BOM_ID, 'DUMMYROUTING' || '_' || SITEID DUMMY_ROUTING_ID FROM (SELECT SO_ID, SUBSTR (SO_LINE_ID, 1, INSTR (SO_LINE_ID, '_') - 1) SO_LINE_ID, SITEID, ITEM_ID, QTYUOM, ROW_NUMBER () OVER ( PARTITION BY SO_ID, SUBSTR (SO_LINE_ID, 1, INSTR (SO_LINE_ID, '_') - 1) ORDER BY SO_LINE_ID) RN FROM IN_SALES_ORDER WHERE UDF_MATERIAL_SO = '1' AND BOMID IS NULL) WHERE RN = 1;
3、通过查看写入IN_SALES_ORDER数据发现,因为数据没有入IN_PO_STO表
4、没进IN_PO
5、没进SAP_EKKO
采购订单被删除掉了