‘SUBRC’ and all other system fields can be found in the structure ‘SYST’. To address them in an ABAP program, You should use the following form: SY-<fieldname>. Here are some examples of the values of SY-SUBRC on different ABAP statements: ‘CALL FUNCTION’ in function modules sets...
使用INSERT语句,向表中插入一行,必须注意INSERT的顺序与表中字段的顺序一致: SY-SUBRC = 0: 插入成功,SY-DBCNT包含了插入的行数,0或1。 SY-SUBRC = 4: 由于有相同的KEY存在,所以插入失败。 使用LOOP语句来遍历一个内表: SY-SUBRC = 0: 循环至少被执行一次。 SY-SUBRC = 4: 循环没有被执行,可能是没有...
Solved: y shouldnt v give SY-SUBRC with in select statement.. if yes y? wat z the use?? if no y??? wat z the use??
The use of these methods can replace the evaluation of the corresponding system fields in all cases where it is important that a system field has not been mistakenly overwritten in the program. In the case of sy-dbsys, it is recommended that the class CL_DB_SYS is used." NB: the ...
If you want to edit the output of the call transaction method and in that case use sy-subrc events to check some codings. But in session method you cant able to edit the output so there you can debug and check sy-subrc at various points of time in session method. it depends on the...
SY-SUBRC = 2: An entry was read. SY-TABIX is set to the index of the entry. This return code can only occur when you use the COMPARING addition. For further detauls, refer to the COMPARING section of the additions SY-SUBRC = 4: No entry was read. The value of SY-TABIX ...
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
Solved: hi, in my select statement giving sy-subrc = 4. please tell me why? i am fetchind data from a view. Types:begin of zv_mast_stko, matnr type zv_mast_stko-matnr,
Depending on how you want to use it. MattG. Reply Former Member 2008 Jun 03 5:12 PM 1 Kudo 16,233 SAP Managed Tags: ABAP Testing and Analysis Hi malay gal You have to familiar with ABAP programing to understand all of SY-SUBRC and below is information for you, Enjoy!
IF sy-subrc <> 0. pls xplain me the above line... whats the use of semicolon??? Reply All forum topics Previous Topic Next Topic 9 REPLIES Former Member 2007 Sep 30 2:29 PM 0 Kudos 4,456 SAP Managed Tags: ABAP Development sorry ... i say a syntax that...