SELECT MAPL~MATNR
MAKT~MAKTX
MAPL~WERKS
CRHD~ARBPL"工作中心
PLKO~KTEXT"細項說明
PLPO~VORNR"作業
PLPO~VGW01"整備
PLPO~VGE01"整備單位
PLPO~VGW02"機器
PLPO~VGE02"機器單位
PLPO~VGW03"人工
PLPO~VGE03"人工單位
PLPO~ANZMA"人员数量
PLPO~USR01"8H產量
PLPO~VPLTY"參考任務清單類型
PLPO~VPLNR"參考群組 Z03395A
PLPO~VPLAL"參考群組計數器 1
PLPO~USR00"单个产品总工时
PLPO~LTXA1"工序短文本
PLPO~VINTV "作业增量
PLKO~PLNNR
PLKO~PLNAL
PLKO~ZAEHL
FROM MAPL INNER JOIN PLKO ON MAPL~PLNTY = PLKO~PLNTY
AND MAPL~PLNNR = PLKO~PLNNR
AND MAPL~PLNAL = PLKO~PLNAL
"AND MAPL~ZAEHL = PLKO~ZAEHL
INNER JOIN PLAS ON PLKO~PLNTY = PLAS~PLNTY "任務清單類型
AND PLKO~PLNNR = PLAS~PLNNR "組
AND PLAS~PLNAL = PLKO~PLNAL
AND PLAS~LOEKZ <> 'X'
INNER JOIN PLPO ON PLPO~PLNTY = PLAS~PLNTY "任務清單類型
AND PLPO~PLNNR = PLAS~PLNNR "組
AND PLPO~PLNKN = PLAS~PLNKN "組計數器
AND PLPO~ZAEHL = PLAS~ZAEHL "節點計數器
LEFT JOIN CRHD ON PLPO~ARBID = CRHD~OBJID
AND CRHD~OBJTY = 'A'
"AND CRHD~ARBPL BETWEEN ARBPL-LOW AND ARBPL-HIGH
INNER JOIN MAKT ON MAPL~MATNR = MAKT~MATNR
AND MAKT~SPRAS = SY-LANGU
WHERE MAPL~MATNR = '158-00013-002-046'
AND MAPL~WERKS = '3012'
AND MAPL~LOEKZ NE 'X'
AND MAPL~PLNTY IN ('N','S')
"AND CRHD~ARBPL IN ARBPL