citytoTYPEspfli-cityto,ENDOFty_spfli.*声明结构体变量DATAm_spfliTYPEty_spfli.*写数据库语句, CORRESPONDING FIELDS OF可以将一样类型进行赋值SELECTSINGLE*FROMspfliINTOCORRESPONDINGFIELDSOFm_spfliWHEREcarrid ='AC'ANDconnid ='8888'.*sy_subrc为上一条语句的执行结果,如果为0,则表示执行成功IFsy-subrc =0...
citytoTYPEspfli-cityto,ENDOFty_spfli.*声明结构体变量DATAm_spfliTYPEty_spfli.*写数据库语句, CORRESPONDING FIELDS OF可以将一样类型进行赋值SELECTSINGLE*FROMspfliINTOCORRESPONDINGFIELDSOFm_spfliWHEREcarrid ='AC'ANDconnid ='8888'.*sy_subrc为上一条语句的执行结果,如果为0,则表示执行成功IFsy-subrc =0...
IF sy-subrc <> 0. c_msg = '读取HTTP失败,检查连接'. l_sysubrc = sy-subrc. * 返回错误连接文本 CALL METHOD lv_http_client->get_last_error IMPORTING code = l_sysubrc message = l_error_text. ENDIF. * 获取数据 JSON格式 CALL METHOD lv_http_client->response->if_http_entity~get_cdata...
if sy-subrc = 0. endif. -This statement checks the above condition and even if sy-subrc fails, the code will be executed further. OR check sy-subrc = 0. - This statement checks for the condition and if it is true, the further code will be executed. If not, the execution will stop...
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).
如果是一个内表的话, IT_TAB, 那么假设这个字段是 ZIDUAN.sort IT_TAB by ZIDUAN.read IT_TAB with key ZIDUAN = 'bianliang' binary research.if sy-subrc = 0.则存在。endif。DELETE
check the SY_SUBRC And then u will know whether the record exists in DB table ... award points if useful thanks Reply Lakshmant1 Active Contributor 2008 May 07 11:59 AM 0 Kudos 937 SAP Managed Tags: ABAP Development Hi Ivo, Check FM TABLECOUNT. Thanks Lakshman Reply ...
If this fails, it will return sy-subrc 4 which will show that file exists or not. ashish Reply JozsefSzikszai Active Contributor 2007 Oct 30 2:58 PM 0 Kudos 3,044 SAP Managed Tags: ABAP Development hi John, try the method DIRECTORY_EXIST of class CL_GUI_FRONTEND_SERVICES. ...
采购申请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'. ...
IF sy-subrc = 0. Where's the READ gone? 2) You say you've cracked it, and it's working fine. But that's only half the story. You (and us) still don't understand why it wasn't working before. If don't get that understanding, then you are programming by coincidence, which, ...