Application Development 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: 

Return Code

former_member621510
Participant
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

Hi,

check

sy-subrc

value, no?

rgs

matt
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.