SY-SUBRC = 4: 循环没有被执行,可能是没有数据,也可能是没有符合条件的记录。 使用DELETE语句来删除一条记录: SY-SUBRC = 0: 找到一行并删除之,如果该表有不唯一主键,也就是有多条重复的记录,则只删除第一条记录。 SY-SUBRC = 4: 没有找到符合条件的记录,也没有删除。 使用UPDATE语句来更新一条记录: ...
CORRESPONDING FIELDS OF可以将一样类型进行赋值SELECTSINGLE*FROMspfliINTOCORRESPONDINGFIELDSOFm_spfliWHEREcarrid ='AC'ANDconnid ='8888'.*sy_subrc为上一条语句的执行结果,如果为0,则表示执行成功IFsy-subrc =0.WRITE: m_spfli-carrid, m_spfli-connid, m_spfli-countryfr, m_spfli-cityfrom,m_...
SY-SUBRC = 0: The result table contains at least one record. SY-SUBRC = 4: The result table is empty. SY-SUBRC = 8: Applies only to SELECT SINGLE FOR UPDATE: You did not specify all of the primary key fields in the WHERE condition. The result table is empty. Note The S...
sy-subrc = 2 getting in the FM : SSFCOMP_TABLE_ROW_BEGIN in smartforms former_member251513 Discoverer 2016 Dec 165:48 AM 0Kudos 1,272 SAP Managed Tags: ABAP Development getting the no more main window error after this FM :SSFCOMP_TABLE_ROW_BEGIN calls : ...
so you can use the sy-subrc to check weather the select statement has retrieved any data from the data base or not. see the following example. parameters g_matnt type mara-matnr. select single matnr from mara into g_matnr where matnr = g_matnr. at selection-screen. if sy-subrc ne 0...
以下是关键词“sy-subrc”的搜索结果 BAPI:会计凭证生成与冲销(F-02/F-08) 小白记录一次开发.按开发要求,需提供一个重分类会计凭证生成与冲销的功能(本月与次月同时生成),于是找到BAPI:BAPI_ACC_DOCUMENT_POST(生成凭证)、BAPI: BAPI_ACC_DOCUMENT_REV_POST)(冲 ... ...
DEBUG中断消息号,查看上下文可以找到 方法 test_join_validity . debug 修改返回值sy-subrc = 0. 系统报另外一个错误 AQQIS_CNTRL 022 进一步跟踪报错消息 可以看到上下文 修改l_valid 值内容 = ‘X’. 成功建立了字段连接 生成的SQL及执行结果也时正确的. ...
Solved: hi guys i am confusing with sy-subrc, whay we need it every time with abap command/statements sometimes it happen that sy-subrc=0 sy-subrc=4 and it print 0. so
a function module is returning 1 as sy-subrc value. does that mean that it couldnt execute properly because the values imported to the FM were not correct? Exceptions 1,2,3 exist in this FM. Does the sy-subrc value represent this exception value ? thanks Reply 1 ACCEPTED SOLUTION Go...
(这是修改的窗口)4,输入 LSKEYF00,然后点”CHANGE”, 这时回停在断点上,在CALL GET_DEVELOPER_KEY ID NAME FIELD ABCDEFGHIJKLID CUSTIDFIELD 1234567890ID KEY FIELDDUMMY_KEY.注意了:现在的画面是ABAP_DEBUGGER.模式.中间显示的是灰色的.下面有FILED NAME .FILED VALUE两排输入框输入”SY-SUBRC”,然后回车....