...ELSE. ...ENDIF.IFSY-SUBRCISNOTINITIAL. ...ENDIF."NOT 可以前置IFNOTSY-SUBRCISINITIAL. ...ENDIF. 内表的分类(ANY TABLE) 索引表(INDEX TABLE) 标准表(STANDARD TABLE) - 系统索引 DATAITABTYPESTANDARDTABLEOFSTRU_TYPE . " 默认字符型字段为关键字(可以指定)DATAITABTYPESTANDARDTABLEOFTAB_NAME ...
IF sy-subrc <> 0. c_msg = '发送HTTP失败,检查连接'. ENDIF. IF c_msg IS INITIAL. * 读取远程服务返回的处理过结果。 CALL METHOD lv_http_client->receive EXCEPTIONS http_communication_failure = 1 http_invalid_state = 2 http_processing_failed = 3 OTHERS = 4. IF sy-subrc <> 0. c_msg...
NOT_FOUND = 1 INTERNAL_ERROR = 2 OTHERS = 3. case sy-subrc. when 0. when 1. message e009 with p_tabname p_fieldname. when others. message e010 with 'DDIF_FIELDINFO_GET'. endcase. if not l_dfies_wa is initial. append l_dfies_wa to p_dfies. endif. Please reward if useful...
if YVBPA[] is initial. select single * from vbpa where vbeln = vbak-vbeln and parvw = 'WE'. if sy-subrc = 0. partner_before_change = vbpa-kunnr. endif. else. READ TABLE yvbpa WITH KEY parvw = 'WE' . if sy-subrc = 0. partner_before_change = yvbpa-kunnr. endif. ...
return_code = return_code"返回 sy-subrc EXCEPTIONS factory_calendar_not_found =1 holiday_calendar_not_found =2 month_not_found =3 OTHERS =4. IFreturn_code =0. p_year = selected_month+0(4). p_month = selected_month+4(2).
A internal table will multiple rows, so which row you want to check whether data is there or not. If you don't want even a single row, then you could do this. loop at itab where x is initial or y is initial. endloop. if sy-subrc = 0. message error endif. Regards, Ravi Reply...
IF sy-subrc = 0. CALL FUNCTION ‘NUMBER_GET_NEXT’ EXPORTING nr_range_nr = ’01’ object = ‘ZRECAUDIT’ IMPORTING number = last_id quantity = quant returncode = code EXCEPTIONS interval_not_found = 1 number_range_not_intern = 2 ...
* error, if logical system of order is not filled IF P_AUFK-LOGSYSTEM IS INITIAL OR P_AUFK-LOGSYSTEM = L_CURRENT_LOGSYSTEM. P_SUBRC = 1. WRITE P_AUFK-AUFNR TO SY-MSGV1. PERFORM APPEND_RETURN TABLES PT_RETURN USING 'E' '2075ALE' '011' SY-MSGV1 SPACE SPACE SPACE. * message...
采购申请pr新增行 | pritemx = lt_pritemx extensionin = lt_exts . loop at lt_return into ls_return where type = 'E' or type = 'A'. exit. endloop. if sy-subrc ne 0. call function 'BAPI_TRANSACTION_COMMIT' exporting wait = 'X'. ...