64 Flares Twitter 0 Facebook 64 Google+ 0 LinkedIn 0 Email -- 64 Flares ×

System Fields in ABAP:

Some of the data objects are already available with SAP. System Fields are one of them.

In runtime system fills them with values, depending on the context of the program, and you can query their values to find out about the state of the system. Although they are variables, you should only read from them. If you change them, you may overwrite information that is important for the next stage of running the program.

List of System Fields in ABAP:

SY-MANDT – Client Number For SAP Log On

SY-DATUM – System Date

SY-SUBRC – Return Value after specific ABAP Statement

SY-UCOMM – Function code that triggered the event

SY-ABCD – It is a constant, it contains ABC…Z

SY-ULINE – Horizontal Line (Length of line is 255)

SY-VLINE- Vertical Line

SY-INDEX – Number of Loop passes

SY-MSGID -Message ID

SY-MSGTY – Message Type

SY-MSGNO – Message Number

SY-MSGV1 – Message Variable1

SY-MSGV2 – Message Variable2

SY-MSGV3 – Message Variable3

SY-MSGV4 – Message Variable4

SY-OPSYS – Operating System

SY-HOST – Application server

SY-PAART – Print Format

SY-PAGCT – Page Size of List in Report Program

SY-PAGNO – Current Page in the List

SY-PDEST – Print Output Device

SY-LSIND -Index of the list for current event for basic list = 0.

SY-LISTI – Index of the list level from which the event was triggered

SY-LILLI -Absolute number of the line from which the event was triggered i.e Number Of Current List Line

SY-LANGU- SAP Log on Language Key

SY-LINCT – Number Of List Lines

SY-LINNO – Current Line for List Creation

SY-LINSZ – Line Size of List

SY-LISEL – Contents of the Selected Line For Interactive List

SY-CUROW -Position of the line in the window from which the event was triggered (counting starts with 1)

SY-CUCOL  – Position of the column in the window from which the event was triggered (counting starts with 2)

SY-CPAGE – Holds Current Page Number

SY-STARO -Number of the first line of the first page displayed of the list from which the event was triggered (counting starts with 1).

SY-STACO -Number of the first column displayed in the list from which the event was triggered (counting starts with 1)

SY-UNAME -Session : SAP user from Log On

SY-PFKEY – Status of the list currently being displayed.

SY-REPID – Report Name in ABAP

SY-SAPRL – SAP Release

SY-SYSID – SAP system ID

SY-TABIX – Current line of Internal Table

SY-TCODE – Current Transaction Code

SY-TIMLO – Local Time of User

SY-TFILL – Current No.of lines in Internal Table

SY-TLENG – Line Length

SY-STEPL- Table Control Loop Information

SY-LOOPC-Table Control Loop Information

SY-FDPOS-Off set for found strinf

SY-DBSYS-Database system

SY-TITLE  – Title of ABAP Program

SY-TMAXL – Maximum entries in a Internal Table

SY-TNAME  – Name Of Internal Table after first Access

SY-CPROG – Contains Program Name

SY-CUCOL – Cursor Position ( Column)

SY-CUROW – Cursor Position (Line)

SY-DATLO  –  Local Date for User

SY-DATUD – Global Date Related To UTC ( GMT )

SY-DBCNT – Number of entries read by DB Operation

SY-DBNAM- Logical DB for ABAP/4 Program

SY-DBSYS – System DB System

SY-DYNNR- Number of Current Screen

SY-SLSET – Variant used to fill the selection screen.

SY-BATCH – X if the ABAP program is running in the background, otherwise space

SY-BINPT – X while a batch input session is running and when an ABAP program is called using CALL TRANSACTION USING, otherwise space.

SY-DBCNT – It contains the number of table entries processed

Note: SYST is a standard structure in SAP which contains all the system fields.

Also Read:

Blocked ALV in SAP ABAP.

Converting and downloading Internal Table data into HTML format.

How to Create Transaction Code for Table Maintenance Generator in SAP.

64 Flares Twitter 0 Facebook 64 Google+ 0 LinkedIn 0 Email -- 64 Flares ×