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

System Defined Objects

What are System Defined Objects?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Apr 30, 2012 at 03:25 PM

    Hi,

    When you start an ABAP program, some data objects are available automatically and do not need to be declared. System-defined data objects include:

    • SPACE
    The data object SPACE is a constant with type C. It is one character long, and contains a space character. Since SPACE is a constant, it cannot be changed.
    • System fields

    All system fields are named according to the following convention: SY-<name>, where <name> is the name of the individual field. To display a list of available system fields in the ABAP Editor, type SHOW SY in the command line (choose Edit ®More functions ® Command input). The list also includes the data types of the system fields.The following are examples of system fields:

      • SY-SUBRC: return code value (zero, if an operation was successful)
        • SY-UNAME: logon name of the user
          • SY-DATUM: current date
            • SY-UZEIT: current time
              • SY-TCODE: current transaction

              System fields are variables and can be changed by the program. However, SAP does not recommend that you do so, because you will lose the information stored in these fields when the execution of your program continues.

              Regards,

              Aravind.

              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.