saketpratap || 18 May 2018 2:48 pm ||
The names of the SY variables can be found in the table SYST.
SY-DATUM System date
SY-ULINE Horizontal lines in list
SY-VLINE Vertical lines in a list ( You kan use | instead )
SY-UCOMM Returns the code for the GUI status button pushed (Only only used in lists. In dialog programs use OKCODE)
Example of usage
SY-LSIND This field contains the number of the current list in the list hierarchy
( Se also How to use sy-lsind to determine the current list level )
SY-REPID Program navn
SY-PAGENO Side nr.
SY-TITLE Title of program
SY-DYNNR Dynpro number of active screen
SY-PFKEY Name of the current pf status
SY-LANGU Logon language
System Fields for Secondary Lists
With each interactive event, the system automatically sets the following system fields:
SY-LSIND Index of the list created during the current event (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
SY-LISEL Contents of the line from which the event was triggered
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 Page number of the first displayed page of the list from which the event was triggered
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). Possibly, a page header occupies this line.
SY-STACO Number of the first column displayed in the list from which the event was triggered (counting starts with 1)
SY-PFKEY Status of the displayed list
The system fields SY-UCOMM and SY-PFKEY are important if you use self-defined list interfaces (see Defining Individual User Interfaces).
You can use the information contained in the system fields listed above to structure the secondary lists. For more information and an example, see Passing Data Automatically.
Neither this documentation nor any part of it may be copied or reproduced in any form or by any means or translated into another language, without the prior consent of SAP AG.