‎2010 Jan 05 3:56 AM
Hi.,
Where the sy-subrc values get stored?
can anyone explain me??
thanks & regards,
arsgh.
‎2010 Jan 05 4:06 AM
Hi ,
sy-subrc is the variable which have the return value and we use directly in our program.
Search SDN on system variables.
Also , check SYST database table.
Hope this helps you.
‎2010 Jan 05 4:06 AM
Hi ,
I want to know what is the meaning when sy-subrc = 4, 8 ,16,etc....
and where i can get???
You can check SAP help document , to know the sy-subrc values a keyword it returns.
For success , it is 0.
Hope this resolves your issue.
Edited by: Harsh Bhalla on Jan 5, 2010 9:51 AM
‎2010 Jan 05 4:07 AM
After each statement, ABAP returns a Return Code that is stored in global variable SY-SUBRC. If it equals zero, then the statement was succesful; otherwise, an error occured.
This is a very important thing in ABAP programming; you should always check SY-SUBRC to make sure that there were no errors during the execution of statement
chk this wiki.
http://wiki.sdn.sap.com/wiki/display/ABAP/DifferentRETURN(sy-subrc)+values.
‎2010 Jan 05 4:15 AM
Hi,
Thanks for the replies.
I want to know what is the meaning when sy-subrc = 4, 8 ,16,etc....
and where i can get???
SYST is not table its a structure....
Thanks & regards,
arsgh.
‎2010 Jan 05 4:20 AM
Hello,
They are not stored in any database table. The sy-subrc values are populated in the runtime in the structure SYST and if you want to know the meaning of what each value of sy-subrc of a particular statement, hit F1 and check the help.
Vikranth