Skip to Content
author's profile photo Former Member
Former Member

sy-subrc usage in new generation abap

Hi All,

after going thru few technlogies like c++, java, and then abap, rather abap-objects.

in abap, i saw that sy-subrc is used extensively. eg. if sy-subrc <> 0, etc, after read stmts, select stmts, find stmts etc.

got few queries:

is it possible to implement abap coding without using sy-subrc.

is it recommended to use sy-subrc in the new generation abap objects.

thanks,

Ganesh

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Aug 28, 2012 at 09:19 PM

    It's not a question of recommendation or old/new generation...SY-SUBRC is set by many ABAP commands, so for proper programming logic you will need to check its value time and again.

    Please read ABAP online documentation before posting further.


    Thomas

    P.S. un-marked as question

    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.