下表列出了在ABAP程序中可以使用的系统字段。所有sy结构的其他组件则或者在ABAP运行时环境内部使用或者已经废弃。 With the exception of sy-repid, the data types of the system fields are defined in the ABAP Dictionary in the structure SYST (as of release 6.10), and are instantiated in ABAP programs ...
In almost every ABAP program the system field SUBRC is used, because it’s meaning is connected with the successful execution of a statement. It contains return value, set by ABAP statements. It is an integer value like 0, 4, 8 or other. This value is used to determine the status of ...
SAP Managed Tags: ABAP Development Hi IF SY-SUBRC = 0 means the command has worked fine, if SY-SUBRC <> 0, it means it has failed. The value of SY-SUBRC is always in order last command, but some stataments don't have any influence on SY-SUBRC, because they always work fine. ...
0 Kudos 1,664 SAP Managed Tags: ABAP Development Hi, What do you mean by in SELECT statement? Are you talking between SELECT and ENDSELECT? Between SELECT and END SELECT sy-subrc is always 0. Because if your code between SELECT ... ENDSELECT is being executed, that means that the...
Return value set by the following ABAP statements. In general, a content of 0 means that the statement was executed without problems. · ASSIGNsets SY-SUBRC to 0 if assignment to field symbol is possible, otherwise 4. · ASSIGN dref->* sets SY-SUBRC to 0 if dereferencing is possible, ...
sy-subrc = 8 means your criteria is wrong thanks Sachin Former Member In response toFormer Member 2009 Feb 246:30 AM 0Kudos 3,303 SAP Managed Tags: ABAP Development sorry, my q was incomplete. record is there ,i have written logic for sy-subrc = 0 as well as for 4 also. ...
0 Kudos 934 SAP Managed Tags: ABAP Development Hi Something is wrong in your code, if SY-SUBRC is equal to 4 it means the matching is fails and so: - or there isn't the record you're searching - or the keys used for reading are wrong - or the way you're using to read th...
0 Kudos 2,361 SAP Managed Tags: ABAP Development Hello, Looking at you select query it seems as if you are using parameters from a selection screen. Now your select query is written in the initialization event, that means it is being triggered before the user inputs anything on the ...
if the index is greater than the number of lines in the table, SY-SUBRC is set to 4. Regards, Vidya. Reply Former Member 2007 May 28 7:28 AM 0 Kudos 3,988 SAP Managed Tags: ABAP Development Hi, it means no rceord has been read from body gt_final to work area gw_...
My problem is that when I execute the SET PROPERTY OF sentence is giving sy-subrc = 2. This means "Error in function call in the SAP GUI" according to the ABAP help. Does anyone know how to resolve this? Thanks in advance and regards!