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.
Add a comment