‎2008 Aug 07 9:22 AM
can u came back to list number 2 from list number 10 ??
can this b possible??
‎2008 Aug 07 10:58 AM
Hi,
Try like this:
case sy-lsind.
when '10'.
write:/ 'This is 10th secondary list'.
sy-lsind = '1'.
endcase.
Because, if you want to go list no 2 from list no 10, you can set sy-lsind = 1 in list no 10 ( if list no 10 has display some content ).
Regards,
Bhaskar
‎2008 Aug 07 9:24 AM
report .
start-of-selection .
write:/ 'this is basic'.
at line-selection.
case:sy-lsind.
when 1.
write:/ 'this is 1 screen'.
when 2.
write:/ 'this is 2 screen'.
when 3.
write:/ 'this is 3 screen'.
when 4.
write:/ 'this is 4 screen'.
when 5.
write:/ 'this is 5 screen'.
when 6.
write:/ 'this is 6 screen'.
when 7.
write:/ 'this is 7 screen'.
when 8.
write:/ 'this is 8 screen'.
when 9.
write:/ 'this is 9 screen'.
when 10.
write:/ 'this is 10 screen'.
sy-lsind = 2.
endcase.
‎2008 Aug 07 9:30 AM
By setting the SY-LSIND to 1.
For basic list 0
for secondary list it is 1.
if you set the SY-LSIND to 1 then it will go to second list.
SY-LSIND = 1.
‎2008 Aug 07 9:30 AM
Hi Ankesh Jindal,
Please refer the following links
https://forums.sdn.sap.com/click.jspa?searchID=14937693&messageID=5693170
https://forums.sdn.sap.com/click.jspa?searchID=14937693&messageID=5542687
https://forums.sdn.sap.com/click.jspa?searchID=14937693&messageID=5784182
Regards ,
Sreekar.Kadiri.
‎2008 Aug 07 9:34 AM
‎2008 Aug 07 10:00 AM
Hi Ankesh,
We can do it with assigning sy-lsind = 2.
Try the following:
AT LINE-SELECTION.
IF sy-lsind = 10.
sy-lsind = 2.
ENDIF.
Regards,
Chandra Sekhar
‎2008 Aug 07 10:07 AM
Hi,
Set the SY-LSIND value to 1.
If you want to go to 1st secondary list.
At line-selection.
Case sy-lsind.
when '10'.
sy-lsind = 1."if first secondary list.
sy-lsind = 2. " if Second secondary list
endcase.
Regards,
Sujit
‎2008 Aug 07 10:08 AM
Hi Ankesh,
This is ofcourse possible,
At line selection.
If sy-lsind = 10.
sy-lsind = 1. " Second List
endif.Regards,
Swapna.
‎2008 Aug 07 10:08 AM
As also said by others use the system field SY-LSIND
it can be changed in your program to navigate between different lists.
If sy-lsind = 10.
sy-lsind = 2.
endif.With luck,
Pritam.
‎2008 Aug 07 10:12 AM
hiii
use like below code in at line selection event for interactive list 10.
AT LINE-SELECTION.
IF sy-lsind = 10.
sy-lsind = 2.
ENDIF.regards
twinkal
‎2008 Aug 07 10:15 AM
‎2008 Aug 07 10:58 AM
Hi,
Try like this:
case sy-lsind.
when '10'.
write:/ 'This is 10th secondary list'.
sy-lsind = '1'.
endcase.
Because, if you want to go list no 2 from list no 10, you can set sy-lsind = 1 in list no 10 ( if list no 10 has display some content ).
Regards,
Bhaskar
‎2008 Aug 07 11:00 AM