Hi,
By setting the sy-lsind you can get back to the list corresponding to that index.
You can manipulate the sy-lsind field.
Regards,
Sesh
hi,
Set sy-lsind = 5.
or Try this.
DATA: l TYPE i, t(1) TYPE c.
DO 100 TIMES.
WRITE: / 'Loop Pass:', sy-index.
ENDDO.
TOP-OF-PAGE.
WRITE: 'Basic List, Page', sy-pagno.
ULINE.
TOP-OF-PAGE DURING LINE-SELECTION.
WRITE 'Secondary List'.
ULINE.
AT LINE-SELECTION.
DESCRIBE FIELD sy-lisel LENGTH l IN CHARACTER MODE
TYPE t.
WRITE: 'SY-LSIND:', sy-lsind,
/ 'SY-LISTI:', sy-listi,
/ 'SY-LILLI:', sy-lilli,
/ 'SY-CUROW:', sy-curow,
/ 'SY-CUCOL:', sy-cucol,
/ 'SY-CPAGE:', sy-cpage,
/ 'SY-STARO:', sy-staro,
/ 'SY-LISEL:', 'Length =', l, 'Type =', t,
/ sy-lisel.
IF SY-LSIND = 15.
SY-LSIND = 5.
ENDIF.
WRITE: 'SY-LSIND:', sy-lsind,
/ 'SY-LISTI:', sy-listi,
/ 'SY-LILLI:', sy-lilli,
/ 'SY-CUROW:', sy-curow,
/ 'SY-CUCOL:', sy-cucol,
/ 'SY-CPAGE:', sy-cpage,
/ 'SY-STARO:', sy-staro,
/ 'SY-LISEL:', 'Length =', l, 'Type =', t,
/ sy-lisel.
_______________________
try Sy-LSIND to 5.
____________________________________________
In the logic
case sy-lsind
when lsind = 15
Code
sy-lsind = 5.
endcase.
pls : award points
sri
Add a comment