03-27-2007 4:44 PM
03-27-2007 4:47 PM
Hi,
SY-LINCT total line count of a list
SY-LINNO current line no where cursor is placed.
SY-LSIND Index of the list currently 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-UCOMM Function code that triggered the event
SY-PFKEY Always contains the status of the current list.
Regards,
Ferry Lianto
03-27-2007 4:47 PM
Hi,
SY-LINCT total line count of a list
SY-LINNO current line no where cursor is placed.
SY-LSIND Index of the list currently 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-UCOMM Function code that triggered the event
SY-PFKEY Always contains the status of the current list.
Regards,
Ferry Lianto
03-27-2007 4:47 PM
Hi,
I believe there are more than one field for interactive report..
SY-LSIND - List processing, details list index
SY-LISTI - List processing, index of current list
SY-LILLI - List processing, current list line
SY-LISEL - List processing, contents of selected line
Thanks,
Naren
03-27-2007 4:48 PM
See the dmeo report program demo_list_system_fields in se38.
Regards,
Ravi
03-27-2007 4:59 PM
hi Sunil,
SY-PAGNO List creation, current page
SY-COLNO List creation, current column of list
SY-LINCT List processing, page length of list
SY-LINNO List creation, current line
SY-LINSZ List creation, width of list
SY-LILLI List processing, current list line
SY-LSIND List processing, details list index
SY-LISTI List processing, index of current list
SY-SROWS Screens, numbers of lines
SY-SCOLS Screens, number of columns
SY-LOOPC Screens, number of lines visible in table
SY-WTITL List creation, flag for standard page header
SY-CPAGE List processing, current page number
SY-PFKEY Screens, current GUI status
SY-UCOMM Screens, function code triggered by PAI
SY-SLSET Selection screens, name of variant
SY-REPID ABAP program, current main program
SY-LSTAT List processing, list level IDs
SY-MSGLI Messages, message line
SY-TITLE Screens, title text
SY-LISEL List processing, contents of selected line
SY-ULINE Constants, horizontal line with length 255
SY-VLINE Constants, vertical bar
SY-STACO List processing, initial column displayed
SY-STARO List processing, first line displayed at top
Hope this helps,
Sajan Joseph.
03-27-2007 6:22 PM
these are system fields in interactive reports.
System Fields After List Events
System Field Meaning
sy-lsind List level of the current list; (basic list: 0, first secondary list: 1, ..., 20th secondary list: 20). sy-lsind can be set in the program to replace the current list with the list of the set level.
sy-lilli Absolute number of a selected row in the displayed list. Counting starts at 1.
sy-listi List level of the displayed list.
sy-lisel Content of the selected row.
sy-curow Number of the row in the window, on which the cursor of the displayed list was positioned. Counting starts at 1.
sy-cucol Number of the column in the window, on which the cursor was positioned on the displayed list. Counting starts at 2.
sy-cpage Number of the first displayed page of the displayed list. Counting starts at 1.
sy-staro Number of the first row on the first displayed page of the displayed list. Counting starts at 1, the rows of the page header are included.
sy-staco Number of the first displayed column of the displayed list. Counting starts at 1.
sy-ucomm Function code that triggered the event on the displayed list.
sy-pfkey GUI status of the displayed list.
Note
Program SHOWLISY displays the current values of the above system fields. You can monitor changes to the values due to scrolling, changing the window size, selecting a list row, and so on.
this is the example program.
REPORT SHOWLISY LINE-SIZE 80 NO STANDARD PAGE HEADING.
SET PF-STATUS 'STATUS_1'.
PERFORM WRITE_SYSTEM_FIELDS.
TOP-OF-PAGE.
PERFORM WRITE_TOP_OF_PAGE.
TOP-OF-PAGE DURING LINE-SELECTION.
PERFORM WRITE_TOP_OF_PAGE.
AT USER-COMMAND.
CASE SY-UCOMM.
WHEN 'NEXT'.
SET TITLEBAR 'V-TITLE' WITH SY-LSIND.
PERFORM WRITE_SYSTEM_FIELDS.
SCROLL LIST INDEX SY-LSIND TO: PAGE SY-CPAGE LINE SY-STARO,
COLUMN SY-STACO.
ENDCASE.
AT LINE-SELECTION.
SET TITLEBAR 'V-TITLE' WITH SY-LSIND.
PERFORM WRITE_SYSTEM_FIELDS.
SCROLL LIST INDEX SY-LSIND TO: PAGE SY-CPAGE LINE SY-STARO,
COLUMN SY-STACO.
*----
*
FORM WRITE_SYSTEM_FIELDS *
*----
*
FORM WRITE_SYSTEM_FIELDS.
FORMAT COLOR COL_NORMAL.
PERFORM WRITE_LINE USING 'SY-PAGNO'.
PERFORM WRITE_LINE USING 'SY-LINNO'.
PERFORM WRITE_LINE USING 'SY-COLNO'.
PERFORM WRITE_LINE USING ' '.
PERFORM WRITE_LINE USING 'SY-LINCT'.
PERFORM WRITE_LINE USING 'SY-LINSZ'.
PERFORM WRITE_LINE USING ' '.
PERFORM WRITE_LINE USING 'SY-TITLE'.
PERFORM WRITE_LINE USING 'SY-SROWS'.
PERFORM WRITE_LINE USING 'SY-SCOLS'.
ULINE.
NEW-PAGE.
PERFORM WRITE_LINE USING 'SY-LSIND'.
PERFORM WRITE_LINE USING ' '.
PERFORM WRITE_LINE USING 'SY-LILLI'.
PERFORM WRITE_LINE USING 'SY-LISTI'.
PERFORM WRITE_LINE USING 'SY-LISEL'.
PERFORM WRITE_LINE USING ' '.
PERFORM WRITE_LINE USING 'SY-CUROW'.
PERFORM WRITE_LINE USING 'SY-CUCOL'.
PERFORM WRITE_LINE USING ' '.
PERFORM WRITE_LINE USING 'SY-CPAGE'.
PERFORM WRITE_LINE USING 'SY-STARO'.
PERFORM WRITE_LINE USING 'SY-STACO'.
PERFORM WRITE_LINE USING ' '.
PERFORM WRITE_LINE USING 'SY-UCOMM'.
PERFORM WRITE_LINE USING 'SY-PFKEY'.
ULINE.
ENDFORM.
*&----
*
*& Form WRITE_TOP_OF_PAGE
*&----
*
FORM WRITE_TOP_OF_PAGE.
FORMAT COLOR COL_NORMAL.
CASE SY-PAGNO.
WHEN '1'.
WRITE: /(80) 'Systemfelder für das Erstellen einer Liste:'(001).
WHEN '2'.
WRITE: /(80) 'Systemfelder für interaktives Reporting:'(002).
ENDCASE.
WRITE: 80(1) SY-PAGNO.
FORMAT COLOR COL_HEADING.
ULINE.
WRITE: / SY-VLINE, 'SY-LINNO',
12 SY-VLINE, 'Name '(003),
24 SY-VLINE, 'Wert '(004),
80 SY-VLINE.
ULINE.
ENDFORM.
*&----
*
*& Form WRITE_ZEILE
*&----
*
*----
*
FORM WRITE_LINE USING SYFIELD.
FIELD-SYMBOLS: LEFT-JUSTIFIED, 80 SY-VLINE.
ENDFORM. " WRITE_LINE
please reward helpful answers
Message was edited by:
sunil kumar
03-27-2007 6:28 PM
hi
sy-lsind List level of the current list; (basic list: 0, first secondary list: 1, ..., 20th secondary list: 20). sy-lsind can be set in the program to replace the current list with the list of the set level.
sy-lilli Absolute number of a selected row in the displayed list. Counting starts at 1.
sy-listi List level of the displayed list.
sy-lisel Content of the selected row.
sy-curow Number of the row in the window, on which the cursor of the displayed list was positioned. Counting starts at 1.
sy-cucol Number of the column in the window, on which the cursor was positioned on the displayed list. Counting starts at 2.
sy-cpage Number of the first displayed page of the displayed list. Counting starts at 1.
sy-staro Number of the first row on the first displayed page of the displayed list. Counting starts at 1, the rows of the page header are included.
sy-staco Number of the first displayed column of the displayed list. Counting starts at 1.
sy-ucomm Function code that triggered the event on the displayed list.
sy-pfkey GUI status of the displayed list.
regards,
ananth