"定義內表:gt_datadata:begin of wa_data, werks type afpo-werks, aufnr type afpo-aufnr, vornr type afru-vornr, auart type aufk-auart, end of wa_data, gt_data like table of wa_data.SELECT A~dwerk as werks a~aufnr "工單號碼 b~vornr "作業 c~auart "訂單型別 FROM afpo as a INNER JOIN afru as b ON a~aufnr = b~aufnr inner join AUFK as c on a~aufnr = c~aufnr INTO CORRESPONDING FIELDS OF TABLE gt_data WHERE a~dwerk = "工廠" .
"定義內表:gt_datadata:begin of wa_data, werks type afpo-werks, aufnr type afpo-aufnr, vornr type afru-vornr, auart type aufk-auart, end of wa_data, gt_data like table of wa_data.SELECT A~dwerk as werks a~aufnr "工單號碼 b~vornr "作業 c~auart "訂單型別 FROM afpo as a INNER JOIN afru as b ON a~aufnr = b~aufnr inner join AUFK as c on a~aufnr = c~aufnr INTO CORRESPONDING FIELDS OF TABLE gt_data WHERE a~dwerk = "工廠" .