ABAP System Fields - ABAP Development - SCN Wiki
ABAP System Fields - ABAP Development - SCN Wiki
system fields ABAP Development SCN Wiki
ABAP Development / ABAP Development
ABAP system fields
Created by Hareesh Menon, last modified by Pinaki Mukherjee on Feb 17, 2009
#System fields for SCREENS.
#System Fields.
#System Fields for Date and Time.
#System Fields in Lists
System fields for SCREENS.
System fields are set at the PAI (Process After Input) event for every screen.
These can be also used for interactive list processing, except for SYDATAR, SYLOOPC, and SYSTEPL.
SYCUCOL
Horizontal cursor position Counting starts at column 2
SYCUROW
Vertical cursor position Counting starts at row 1
SYDATAR
Set to X at time of PAI if at least one screen input field was changed by the user or other data transfer, otherwise empty.
SYLOOPC
Number of rows currently displayed in a screen table (table control).
SYSCOLS
Number of columns in current screen.
SYSROWS
Number of rows in current screen.
SYSTEPL
Index of current row in a screen table (table control). Is set at every loop pass. Outside a loop, for example during the POV(Process On Value Request) event for a table row, SYSTEPL is not set
appropriately.
SYTITLE
Text that appears in the title bar of the screen. For selection screens and lists this is the program name, otherwise SAP R/3. Can be set during PBO (Process Before Output) using SET TITLEBAR.
SYUCOMM
Function code that triggered the event PAI. Every user action that triggers PAI is assigned a unique function code, with one exception: Choosing Enter triggers PAI and different function codes can be
transferred to SYUCOMM:
• If there is an entry in the command field of the standard toolbar, this is transferred to SYUCOMM as the function code.
• If there is no entry in the command field and a function code is assigned to the ENTER key, this function code is transferred to SYUCOMM.
• If the command field does not contain an entry and no function code is assigned to the ENTER key, it is empty and the content of SYUCOMM is not affected.
Selection Screens
SYSLSET
Variant used to fill the selection screen.
System Fields.
SYSUBRC : RETURN VALUE AFTER ABAP STATEMENTS
SYINDEX : LOOPS,CURRENT LOOP PASS
SYTABIX : INTERNAL TABLE,CURRENT LINE INDEX
SYTFILL : INTERNAL TABLE,CURRENT NO. OF LINES
SYLILLI : LIST PROCESSING,CURRENT LIST LINE
SYLSIND : LIST PROCESSING , DETAILS LIST INDEX
SYDBCNT : DB OPERATIONS,NO. OF TABLE LINES PROCESSED
SYCPROG : ABAP PROGRAM,CALLER IN EXTERNAL PROCEDURES
SYDATUM : DISPLAYS CURRENT DATE
SYDYNNR : ABAP PROGRAM,NO. OF CURRENT SCREEN
SYTLENG : LINE LENGTH
SYSTEPL : LOOP INFORMATION IN TABLE CONTROL
SYLOOPC : LOOP INFORMATION IN TABLE CONTROL
http://wiki.scn.sap.com/wiki/display/ABAP/ABAP+system+fields 1/2
25/02/2016 ABAP system fields ABAP Development SCN Wiki
SYFDPOS : CONTAINS OFF SETS FOR THE FOUND STRING
SYDBSYS : Database system
SYDYNGR : Screen group of current screen
SYDYNNR : Number of current screen
SYMSGID : Message ID
SYMSGNO : Message number
SYMSGTY : Message type (E,I.W,...)
SYMSGV1 : Message variable
SYMSGV2 : Message variable
SYMSGV3 : Message variable
SYMSGV4 : Message variable
SYPAGNO : Runtime: Current page in list
SYPFKEY : Current GUI Status
SYCOLNO : Current List Column
SYLINCT : Page Length of List
SYLINNO : Current Line in List
SYLINSZ : Line width of list
SYMACOL : Number of Columns on Left Margin of Print List
SYBINPT : Program Running Under Batch Input
SYMODNO : Index of External Session
System Fields for Date and Time.
The following system fields are always set automatically. If necessary, the GET TIME statement synchronizes the application server time with that of the database server and writes it to the system field
SYUZEIT. SYDATUM and the system fields for the local time zone, that is SYTIMLO, SYDATLO, and SYZONLO are also reset.
SYDATLO
Local date of user, for example 19981129, 19990628.
SYDATUM
Current (application server) date, for example 19981130, 19990627.
SYDAYST
During daylight saving time X, otherwise empty.
SYFDAYW
Factory calendar weekday, Sunday 0 ... Saturday 6.
SYTIMLO
Local time of user, for example 154353, 225312.
SYTZONE
Time difference to Greenwich Mean Time (UTC) in seconds, for example 3600, 10800.
SYUZEIT
Current (application server) time, for example 164353, 215312.
SYZONLO
Time zone of user, for example CET, UTC.
System Fields in Lists
SYLSIND :Index of the list for current event for basic list = 0.
SYLISTI :Index of the list level from which the event was triggered
SYLILLI :Absolute number of the line from which the event was triggered
SYLISEL :Contents of the line from which the event was triggered
SYCUROW :Position of the line in the window from which the event was triggered (counting starts with 1)
SYCUCOL :Position of the column in the window from which the event was triggered (counting starts with 2)
SYCPAGE :Page number of the first displayed page of the list from which the event was triggered
SYSTARO :Number of the first line of the first page displayed of the list from which the event was triggered (counting starts with 1). This line may contain the page header.
SYSTACO :Number of the first column displayed in the list from which the event was triggered (counting starts with 1)
SYUCOMM :Function code that triggered the event
SYPFKEY :Status of the list currently being displayed.
No labels
Contact Us SAP Help Portal
Privacy Terms of Use Legal Disclosure Copyright Follow SCN
http://wiki.scn.sap.com/wiki/display/ABAP/ABAP+system+fields 2/2