Skip to Content
0
Former Member
Jul 29, 2005 at 01:35 PM

sy-lsind / sy-listi and sy-lsind = 0

364 Views

First of all I would like to know the difference between sy-lsind and sy-listi.

Below is one code snippet wherein my requirement is that when I click on list number 5 it should take me to basic list.

But when I click on list number 5, it takes me to list number 1.

How should I go about this to come from top level list to basic one again ?

REPORT Test.

AT LINE-SELECTION.

WRITE : 'Current Index', sy-lsind.

WRITE : 'Current List',sy-listi.

IF sy-lsind = 5.

sy-lsind = 0.

ENDIF.

START-OF-SELECTION.

Write : 'This is Basic List'.

WRITE : 'Current Index', sy-lsind.

WRITE : 'Current List', sy-listi.