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 Code

Former Member
0 Likes
479

By which Function modules we can find the return code of a statement in ABAP programs?

3 REPLIES 3
Read only

Former Member
0 Likes
455

Hi,

check

sy-subrc

value, no?

rgs

Read only

matt
Active Contributor
0 Likes
455

You may need to clarify your question. Currently it makes little sense to me.

Some statements in ABAP, like READ, set the system variable sy-subrc according to the result of their actions.

You read sy-subrc directly to see what happened. You don't call a function module to find this value.

If you want to know which return codes to expect, read the ABAP help.

matt

Read only

Former Member
0 Likes
455

Hi,

After the statement, u can give a code like

CHECK SY-SUBRC.

This will give u the sy-subrc value .when u debug ur program u will know the value of sy-subrc whether it is 0 or nonzero value.

Regrds,

Vani.