DYN_CALL_METH_PARREF_INITIALCX_SY_DYN_CALL_PARAM_MISSING DYN_CALL_METH_PARAM_NOT_FOUNDCX_SY_DYN_CALL_PARAM_NOT_FOUND DYN_CALL_METH_REF_IS_INITIALCX_SY_REF_IS_INITIAL The following keywords are assigned to this exception group: CALL METHOD Exception group: FILE_ACCESS_ERRORS (Associated sup...
25、SY_CREATE_ERROR)This group contains runtime errors that mayoccur during the creation of objects.CREATE_OBJECT_CLASS_NOT_FOUND CX_SY_CREATE_OBJECT_ERRORCREATE_OBJECT_CLASS_ABSTRACT CX_SY_CREATE_OBJECT_ERRORCREATE_OBJECT_CREATE_PRIVATE CX_SY_CREATE_OBJECT_ERRORCREATE_OBJECT_CREATE_PROTECTED CX_...
DYN_CALL_METH_CLASS_ABSTRACT CX_SY_DYN_CALL_ILLEGAL_CLASS DYN_CALL_METH_CLASS_NOT_FOUND CX_SY_DYN_CALL_ILLEGAL_CLASS DYN_CALL_METH_CLASSCONSTRUCTOR CX_SY_DYN_CALL_ILLEGAL_METHOD DYN_CALL_METH_CONSTRUCTOR CX_SY_DYN_CALL_ILLEGAL_METHOD DYN_CALL_METH_NOT_FOUND CX_SY_DYN_CALL_ILLEGAL_METHOD...
| | | | | |–CX_SY_DYN_CALL_EXCP_NOT_FOUND | | | | | |–CX_SY_DYN_CALL_ILLEGAL_TYPE | | | | | |–CX_SY_DYN_CALL_PARAM_MISSING | | | | | |–CX_SY_DYN_CALL_PARAM_NOT_FOUND | | | |–CX_SY_FILE_ACCESS_ERROR | | | | | |–CX_SY_FILE_AUTHORITY | | | | | ...
not_found = 4 object = 5 referenc_check = 6 wrong_access_to_archive = 7 OTHERS = 8.IF sy-subrc <> 0.MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.ELSE.loop at flines.endloop.ENDIF.READ TABLE flines I...
| | |--CX_SY_ITAB_LINE_NOT_FOUND | | | |--CX_SY_MATCHER | | | | | |--CX_SY_REGEX_TOO_COMPLEX | | | | | |--CX_SY_INVALID_REGEX_FORMAT | | | |--CX_SY_MOVE_CAST_ERROR | | | |--CX_SY_PROGRAM_NOT_FOUND
not_found = 1 OTHERS = 2. LOOP AT it_messages WHERE msgtyp = 'E'. WRITE : / 'Message :'(001) ,gv_mesg. CLEAR it_messages. ENDLOOP. ENDFORM. " ERROR_MESSAGES &--- *& Form BDC_PROCESS &--- Open bdc session if call transaction fails --...
由此可见新语法比较简洁,能少写3行代码。但是这样有一个缺陷,在新语法下如果it_data内表内不存在object_ext的值为cl_crm_prodil_bo_names=>gc_prod_root的记录,就会终止程序执行,抛出异常CX_SY_ITAB_LINE_NOT_FOUND. 针对这种情况,ABAP也有对应的解决方案。
*使用新语法,如果没找到则会抛出异常CX_SY_ITAB_LINE_NOT_FOUND"Read Table index "beforeREADTABLEitabINDEXidxINTOwa."740wa=itab[idx]."Read Table using key "beforeREADTABLEitabINDEXidxUSINGKEYkeyINTOwa."740wa=itab[KEYkeyINDEXidx]."Read Tablewithkey ...
実パラメータ carrier および jtab は、汎用モジュール内の対応するインクルードパラメータと同じデータ型を持ちます。例外 NOT_FOUND はプログラム内で処理されます。汎用モジュールがエラーを処理した場合に表示されるのと同じメッセージが表示されます。