Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SY-LSIND

Former Member
0 Kudos

WHEN i PRESSED BACK IN A PERTICULAR SECONDARY LIST i HAVE TO MOVE TO THE SPECIFIED SECONDARY LIST PLS PROVIDE FULL CODE

2 REPLIES 2

Former Member
0 Kudos

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

Former Member
0 Kudos

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.