Skip to Content
author's profile photo Former Member
Former Member

SY-LSIND

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 01: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 01: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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.