Skip to Content

Return Code

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 09:44 AM

    Hi,

    check

    sy-subrc

    value, no?

    rgs 😉

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 21, 2007 at 09:48 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 21, 2007 at 09:49 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.