Closed Thread
Results 1 to 3 of 3

Thread: ABAP: sy-subrc

  1. #1
    Saint is offline Learning Programmer
    Join Date
    Aug 2006
    Posts
    63
    Rep Power
    0

    ABAP: sy-subrc

    I see code like this all over my ABAP:

    Code:
    IF sy-subrc <> 0.
    and I figure it is some error checking because it has below it

    Code:
    *   error handling
    What are the other codes? Is this an error handling method?
    I'm assuming *'s mean comment but you can't use them in the middle of a line like

    Code:
    do code ... * my code
    Hi >> Saint

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Jordan Guest
    Yes, this is an error handling code. If it is 0 you have no errors. Double click on it for more info.

    * are comments, only from the start of the line.

  4. #3
    smith is offline Programmer
    Join Date
    Jun 2006
    Posts
    153
    Rep Power
    0
    sy-subrc is a system field which is the return code. ABAP programs will set this to 0 if execution is successfull or != (<>, not equal) 0 if otherwise.
    Code:
    for (int i;;) {
       cout << "Smith";
    }

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 4 users browsing this thread. (0 members and 4 guests)

Similar Threads

  1. Anyone here do ABAP Programming?
    By Jordan in forum Database & Database Programming
    Replies: 3
    Last Post: 04-27-2009, 04:37 PM
  2. ABAP help required
    By suhail in forum Database & Database Programming
    Replies: 0
    Last Post: 02-05-2009, 11:21 AM
  3. ABAP: Changing
    By Saint in forum Database & Database Programming
    Replies: 2
    Last Post: 08-08-2006, 06:23 PM
  4. ABAP Programming and Tutorials
    By smith in forum Database & Database Programming
    Replies: 2
    Last Post: 08-02-2006, 03:37 PM
  5. What is ABAP?
    By Jordan in forum Database & Database Programming
    Replies: 1
    Last Post: 07-21-2006, 02:32 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts