‎2008 Jan 31 2:57 AM
HI,
What are the system fields that are used for list processing.
‎2008 Jan 31 3:01 AM
List Processing System Fields
At each interactive list event and for READ-LINE, the system automatically fills the following system fields:
SY-CPAGE
Page number of the first displayed page of the list from which the event was triggered. Counting starts at 1
SY-LILLI
Line from which the event was triggered Counting begins at 1 and includes the page header.
SY-LISEL
Contents of the line from which the event was triggered
SY-LISTI
Index of the list from which the event was triggered
SY-LSIND
Index of the list that is being created (basic list: 0, detail list > 0). Each time an interactive list event occurs, the system automatically increases SY-LSIND by 1. SY-LSIND can be changed in the ABAP program to navigate between detail lists. Changes to SY-LSIND are not taken into account until the end of the list event. Therefore, any manipulation of SY-LISND should be done using the last command of the processing block.
SY-LSTAT
ID for list levels within the program. SY-LSTAT can be filled with values during list creation in the ABAP program. The value valid when the list is completed is saved with the list. In the case of an interactive list event, SY-LSTAT is set to the value it was assigned during the creation of the list from which the event takes place. SY-LSTAT is no longer maintained and should therefore no longer be used.
SY-STACO
Number of the first displayed column of the list from which the event was triggered. Counting starts at 1.
SY-STARO
Number of the upper-most displayed row of the upper-most page of the list, from which the event was triggered. Counting begins at 1. This does not include the page header.
Printing Lists
When printing lists, the spool and runtime systems require certain internal information, which is available in the following system fields and is set during print activation.
SY-CALLR
Contains a value that displays where printing was started, for example NEW-PAGE for program-controlled printing or RSDBRUNT for printing from the selection screen.
SY-PRDSN
Contains the name of the spool file during printing.
SY-SPONO
Contains the name of the spool number during printing.
SY-MAROW, SY-MACOL
The SET MARGIN statement fills the system fields SY-MAROW and SY-MACOL, which determine the number of lines on the upper margin and the number of columns on the left margin when printing.
Plzz reward if it is useful,
Mahi.
‎2008 Jan 31 3:01 AM
List Processing System Fields
At each interactive list event and for READ-LINE, the system automatically fills the following system fields:
SY-CPAGE
Page number of the first displayed page of the list from which the event was triggered. Counting starts at 1
SY-LILLI
Line from which the event was triggered Counting begins at 1 and includes the page header.
SY-LISEL
Contents of the line from which the event was triggered
SY-LISTI
Index of the list from which the event was triggered
SY-LSIND
Index of the list that is being created (basic list: 0, detail list > 0). Each time an interactive list event occurs, the system automatically increases SY-LSIND by 1. SY-LSIND can be changed in the ABAP program to navigate between detail lists. Changes to SY-LSIND are not taken into account until the end of the list event. Therefore, any manipulation of SY-LISND should be done using the last command of the processing block.
SY-LSTAT
ID for list levels within the program. SY-LSTAT can be filled with values during list creation in the ABAP program. The value valid when the list is completed is saved with the list. In the case of an interactive list event, SY-LSTAT is set to the value it was assigned during the creation of the list from which the event takes place. SY-LSTAT is no longer maintained and should therefore no longer be used.
SY-STACO
Number of the first displayed column of the list from which the event was triggered. Counting starts at 1.
SY-STARO
Number of the upper-most displayed row of the upper-most page of the list, from which the event was triggered. Counting begins at 1. This does not include the page header.
Printing Lists
When printing lists, the spool and runtime systems require certain internal information, which is available in the following system fields and is set during print activation.
SY-CALLR
Contains a value that displays where printing was started, for example NEW-PAGE for program-controlled printing or RSDBRUNT for printing from the selection screen.
SY-PRDSN
Contains the name of the spool file during printing.
SY-SPONO
Contains the name of the spool number during printing.
SY-MAROW, SY-MACOL
The SET MARGIN statement fills the system fields SY-MAROW and SY-MACOL, which determine the number of lines on the upper margin and the number of columns on the left margin when printing.
Plzz reward if it is useful,
Mahi.
‎2008 Jan 31 3:03 AM
Hi,
System Fields for Details Lists
After each user action on a list, the following ABAP system fields will be set in the corresponding event block:
System field
Information
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). This line may contain the page header.
SY-STACO
Number of the first column displayed in the list from which the event was triggered (counting starts with 1)
SY-UCOMM
Function code that triggered the event
SY-PFKEY
Status of the list currently being displayed.
Regards