‎2008 Feb 27 3:10 AM
hi,
what is the sysytem variable to fine the current list line in list processing
‎2008 Feb 27 3:15 AM
Sivara,
SY-LISEL : Contents of the line from which the event was triggered
For you use see the below other....
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.
‎2008 Feb 27 3:15 AM
‎2008 Feb 27 3:17 AM
Hi,
SY-LILLI
Line from which the event was triggered Counting begins at 1 and includes the page header.
‎2008 Feb 27 3:18 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.
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
Plzz reward if it is useful,
‎2008 Feb 27 5:52 AM
‎2008 Feb 27 5:55 AM
Hi,
SY-LILLI gives current line from which the event was triggered counting begins at 1 and includes the page header.
regards,
rahul
‎2008 Feb 27 5:57 AM
‎2008 Feb 27 6:01 AM
hi,
There are 176 system variables available within every ABAP/4 program. You do not have to define them; they are automatically defined and are always available.
To display a list of system variables, display DDIC structure syst. You can display it by using the Dictionary. The alias for syst is sy (pronounced sigh). In your code, you can use either name. For example, you can code either sy-datum or syst-datum; they are equivalent. Most programmers use sy.
Name Description
sy-datum Current date
sy-uzeit Current time
sy-uname Current user id
sy-subrc Last return code
sy-mandt Logon client
sy-pagno Current output page number
sy-colno Current output column number
sy-linno Current output list line number
sy-vline Vertical line
sy-uline Horizontal line
sy-repid Current report name
sy-cprog Main program name
sy-tcode Current transaction code
sy-dbcnt Within a select, contains the current iteration counter. After the endselect, contains number of rows that match the where clause.
SY-PAGNO - Number of current page of current list;
counting begins at 1;
SY-LINNO - Number of current line on current page;
counting begins at 1;
SY-COLNO - Number of column where cursor is positioned in current list;
counting begins at 1;
SY-LINCT - Number of lines per page in current list, if specified by LINE-COUNT in the REPORT statement or by NEW-PAGE ; otherwise, SY-LINCT has the value zero and the length of the page is determined by its contents alone;
SY-LINSZ - Line width of current list;
Can be manipulated by LINE-SIZE in the REPORT statement or by NEW-PAGE;
the maximum line width is 1023 characters. However, you should not set the list width wider than you need. This makes the list easier to read, easier to print, and improves system performance.
SY-TITLE - Title that appears in the title bar of the display window;
can be manipulated by maintaining the text elements of the report or by SET TITLEBAR ; maximum length: 70 characters;
SY-SROWS - Current number of lines in display window;
counting begins at 1;
SY-SCOLS - Current number of columns in display window;
counting begins at 1;
After each interactive event, the following system fields are set automatically:
SY-LSIND - Index of current list; (basic list: 0, first details list: 1, ..., twentieth details list: 20);
if you reduce the value of SY-LSIND (to n), the list at level n is replaced by the current list when this list has been generated. (For this reason, any modifications to SY-LSIND should always be made at the end of the relevant processing block.)
*SY-LILLI - Absolute number of a selected line in displayed list;
the addition CURRENT LINE of READ LINE or MODIFY LINE always refers to the line SY-LILLI in the list SY-LISTI;
counting begins at 1*
SY-LISTI - Index of displayed list after line selection (normally, SY-LISTI = SY-LSIND - 1);
modifications should only be made by READ LINE;
SY-LISEL - Contents of a selected line;
SY-CUROW - Number of line in window on which the cursor was last positioned in the displayed list;
modifications should only be made by SET CURSOR for the next screen change;
counting begins at 1;
SY-CUCOL - Number of column in window on which the cursor was last positioned in the displayed list;
to determined tbe absolute position of the cursor, you can use GET CURSOR instead;
modifications should only be made by SET CURSOR;
counting begins at 2;
SY-CPAGE - Number of top displayed page in displayed list;
modifications should only be made by SCROLL LIST TO...PAGE... or through interactive scrolling;
counting begins at 1;
SY-STARO - Number of top line on top displayed page (SY-CPAGE) of the displayed list;
modifications should only be made by SCROLL LIST TO...PAGE...LINE... or through interactive scrolling;
counting begins at 1 and lines of the page header are included;
SY-STACO - Number of first displayed column in the displayed list;
modifications should only be made by SCROLL LIST LEFT/RIGHT/To COLUMN or through interactive scrolling;
counting begins at 1;
reward if its useful
Edited by: p541399 on Feb 27, 2008 11:33 AM