SAP 工序获取函数
CALL FUNCTION 'CARO_ROUTING_READ'
EXPORTING
PLNTY = 'N' "keko-plnty
PLNNR = IT_RESULT-PLNNR "keko-plnnr
PLNAL = IT_RESULT-PLNAL "keko-plnal
MATNR = IT_RESULT-MATNR "keko-matnr
DATE_FROM = SY-DATUM
TABLES
TSK_TAB = T_TSK_TAB "
SEQ_TAB = T_SEQ_TAB " 参加结构CAPP_SEQ定义
OPR_TAB = T_OPR_TAB
COM_TAB = T_COM_TAB
EXCEPTIONS
NOT_FOUND = 1
REF_NOT_EXP = 2
NOT_VALID = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
-
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
-
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF.