最小齐套回写MO工单组件数量错误 SQL

Posted Snowfun

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了最小齐套回写MO工单组件数量错误 SQL相关的知识,希望对你有一定的参考价值。

SELECT * FROM OUT_MO_RES WHERE PEGGED_ID=‘001201271060‘; --5000175080/160_1-MFG0011

SELECT * FROM V_OUT_MO;

select * from V_OUT_MO_ITEM_1 out_mo_item
left join sap_marc on substr(out_mo_item.loc_ID, 0, 4)=sap_marc.werks and out_mo_item.item=sap_marc.matnr
WHERE PRODUCTIONORDID=‘5000175080/160_1-MFG0011‘ ;

SELECT * FROM OUT_MO WHERE PRODUCTIONORDID=‘5000175080/160_1-MFG0011‘;
SELECT * FROM OUT_MO_ITEM WHERE PRODUCTIONORDID=‘5000175080/160_1-MFG0011‘;
SELECT * FROM TEMP_MO_SPLIT WHERE COMBINE_MO LIKE ‘5000175080/160%‘;
SELECT * FROM TB_MO_SHORT WHERE DEMANDORDERID LIKE ‘%5000175080/160_1-MFG%‘; --5000175080/160_1-MFG000 5000175360/140_1-MFG001

select * from TEMP_SDPP WHERE DEMANDORDERID=‘5000175080/160_1-MFG001‘;
SELECT * FROM TEMP_MO_ITEM WHERE ROOTID=‘5000175080/160_1-MFG001‘;


SELECT * FROM IN_BOM_HEADER WHERE PRODUCT_ID=‘000000102001001625‘;
SELECT * FROM IN_BOM_DETAILS WHERE BOM_ID=‘00367552_2023_01 ‘ AND ITEM_ID LIKE‘000000105%‘;


SELECT DISTINCT
SP.MO_ID,
SP.SPLITSEQ,
MIN (
MS.MO_ID || MS.SPLITSEQ)
OVER (
PARTITION BY MO.SO_ID,
MO.SO_LINE_ID,
MS.SITEID,
MM.MIXITEMMARK,
MS.ITEM_ID,
MS.LINE_ID,
MS.PLAN_START_DATE)
COMBINE_MO
FROM TEMP_MO_SCHEDULING MS,
TEMP_MO_SPLIT SP,
TEMP_MO MO,
TEMP_MO_MIXMARK MM
WHERE SP.MO_ID = MS.MO_ID
AND MO.MO_ID = MS.MO_ID
AND MM.ROOTID = MS.MO_ID
AND SP.SPLITSEQ = MS.SPLITSEQ AND SP.COMBINE_MO LIKE ‘5000175080/160%‘;

以上是关于最小齐套回写MO工单组件数量错误 SQL的主要内容,如果未能解决你的问题,请参考以下文章

工单没回写

CRTD模拟MGF工单进行绑定

工单进入IN_MO后在FP_PREPROCESS被过滤

多产生半成品工单的问题 修改带SO的半成品工单无法分配给SO的问题的

修复材料工单分配材料订单重复占料问题的开发

[易飞]工单展开需领数量小数点问题