生产订单信息系统事务码:COOIS
表:AFKO AFPO AFVC RESB CRHD
预定/相关需求表RESB中AUFPL、APLZL,关联表AFVC,CRHD
SELECT A~AUFNR B~KDAUF B~KDPOS E~ARBPL C~MATNR C~BDMNG
FROM AFKO AS A
INNER JOIN AFPO AS B ON A~AUFNR = B~AUFNR
INNER JOIN RESB AS C ON C~AUFNR = A~AUFNR
INNER JOIN AFVC AS D ON C~AUFPL = D~AUFPL AND C~APLZL = D~APLZL
INNER JOIN CRHD AS E ON D~ARBID = E~OBJID