System fields III
-
Program code
-
-
REPORT ZBCTCB90 NO STANDARD PAGE HEADING
-
LINE-COUNT 20 LINE-SIZE 255.
-
TABLES: T000.
-
DETAIL.
-
DO 5 TIMES.
-
SELECT * FROM T000.
-
WRITE: / T000-MANDT, T000-MTEXT.
-
ENDSELECT.
-
NEW-PAGE.
-
ENDDO.
-
TOP-OF-PAGE.
-
WRITE: / 'Page', SY-PAGNO.
-
AT LINE-SELECTION.
-
DETAIL.
-
* SY-LSIND is the index of the current list
-
WRITE: / 'SY-LSIND:', SY-LSIND LEFT-JUSTIFIED.
-
* SY-LISTI is the index of the previous list
-
WRITE: / 'SY-LISTI:', SY-LISTI LEFT-JUSTIFIED.
-
* SY-LILLI is the number of the selected line
in the absolute list
-
WRITE: / 'SY-LILLI:', SY-LILLI LEFT-JUSTIFIED.
-
* SY-CUROW is the position of the selected line
on the screen
-
WRITE: / 'SY-CUROW:', SY-CUROW LEFT-JUSTIFIED.
-
* SY-CUCOL is the position of the cursor in the
window
-
WRITE: / 'SY-CUCOL:', SY-CUCOL LEFT-JUSTIFIED.
-
SKIP.
-
WRITE: / 'SY-CPAGE and SY-STAR0 do not depend on the cursor position'.
-
SKIP.
-
* SY-CPAGE is the currently displayed page of
the list
-
WRITE: / 'SY-CPAGE:', SY-CPAGE LEFT-JUSTIFIED.
-
* SY-STARO is the number of the topmost actual
list line displayed
-
* on the current page.
-
WRITE: / 'SY-STARO:', SY-STARO LEFT-JUSTIFIED.
-
SKIP.
-
* SY-STACO is the number of the first displayed
column on the
-
* screen. Scroll the list right with the scrollbar
to test it
-
WRITE: / 'SY-STACO:', SY-STACO LEFT-JUSTIFIED.
-
SKIP.
-
* contents of the selected line
-
WRITE: / 'SY-LISEL:', SY-LISEL.
Bence Toth