‎2007 Feb 27 7:16 AM
In an interactive report, after going to 5th list, can you come back to 2nd list? How?
‎2007 Feb 27 7:35 AM
hi murali,
AT LINE-SELECTION.
case sy-lsind.
when 5.
sy-lsind = 2.
endcase.
regards,
priya.
‎2007 Feb 27 7:20 AM
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
‎2007 Feb 27 7:33 AM
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
‎2007 Feb 27 7:35 AM
hi murali,
AT LINE-SELECTION.
case sy-lsind.
when 5.
sy-lsind = 2.
endcase.
regards,
priya.
‎2007 Feb 27 7:41 AM
Hi Priya,
Supoose can i put back button in each list,Means it will go the previous list.In that button whcih event i have to write the code.
‎2007 Feb 27 7:46 AM
hi murali,
if u have created a button then write the logic under AT USER-COMMAND.
data: v_ucomm type sy-ucomm.
v_ucomm = sy-ucomm.
AT USER-COMMAND.
CASE V_UCOMM.
when 'BACK'.
-
-
ENDCASE.
do reward if it helps,
priya.
‎2007 Feb 27 7:58 AM