12-04-2007 1:25 PM
WHEN i PRESSED BACK IN A PERTICULAR SECONDARY LIST i HAVE TO MOVE TO THE SPECIFIED SECONDARY LIST PLS PROVIDE FULL CODE
12-04-2007 1:28 PM
Hi
When you want to move from 5th list to 1st list.. subract sy-lsind accordingly.
sy-lsind = sylsind - 5.
value = sy-index - 5
leave to screen value
12-04-2007 1:43 PM
With one ABAP program, you can maintain one basic list and up to 20 detail lists. If the user creates a list on the next level (that is, SY-LSIND increases), the system stores the previous list and displays the new one. The user can interact with whichever list is currently displayed.
REPORT demo_list_interactive.
START-OF-SELECTION.
WRITE: 'Basic List, sy-lsind =', sy-lsind.
AT LINE-SELECTION.
IF sy-lsind = 3.
sy-lsind = 0.
ENDIF.
WRITE: 'Secondary List, sy-lsind =', sy-lsind.
When you run the program, the basic list appears:
Basic List, sy-lsind = 0
Have a look at below link.
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba2eb35c111d1829f0000e829fbfe/content.htm
<b>OR</b>
at line selection.
case sy-lsind.
when 1.
...
when 2.
....
when 3.
......
when 4.
...
when 5.
sy-lsind = 3.
when others.
....
endcase.