Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Return Values

Former Member
0 Likes
612

Hi.,

Where the sy-subrc values get stored?

can anyone explain me??

thanks & regards,

arsgh.

5 REPLIES 5
Read only

Former Member
0 Likes
580

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.

Read only

Former Member
0 Likes
580

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

Read only

Former Member
0 Likes
580

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.

Read only

Former Member
0 Likes
580

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.

Read only

0 Likes
580

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