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: 

Interactive report

Former Member
0 Kudos

Hi Friends,

In an interactive report, after going to 5th list, can you come back to 2nd list? how?

TIA.

Regards,

Mark K

1 ACCEPTED SOLUTION

former_member188829
Active Contributor
0 Kudos

Hi,

Yes,You Can Come Directly From 5th List to 1st List.

At Line-Selection.

Case sy-lsind.

When 1.

..........

When 2.

...............

When 3.

.............

When 4.

...............

When 5.

sy-lsind = 2.

Endcase.

8 REPLIES 8

former_member188829
Active Contributor
0 Kudos

Hi,

Yes,You Can Come Directly From 5th List to 1st List.

At Line-Selection.

Case sy-lsind.

When 1.

..........

When 2.

...............

When 3.

.............

When 4.

...............

When 5.

sy-lsind = 2.

Endcase.

Former Member
0 Kudos

Hi Mark,

You can manipulate the system field SY-LSIND I think - debug through and watch it will increment as you drill down. I think if you change this it will jump back to your chosen list.

(I think!)

Gareth.

Former Member
0 Kudos

Hi Mark,

try the below code:


AT LINE-SELECTION.
IF sy-lsind EQ 5.
  sy-lsind = 2.
ENDIF.

WHERE sy-lsind is the Counter which stores the Number of Current List.

Best Regards,

Sunil.

Former Member
0 Kudos

Hi Tia,

you have use the system field sy-lsind. like:

SY-LSIND ; it contains the index of the list that is being created and it can be changed in your ABAP program to navigate between detail list.

AT LINE-SELECTION.

IF SY-LSIND = 5.

  SY-LSIND = 2.
ENDIF.

With luck,

Pritam.

Former Member
0 Kudos

Hi,

by using sy_lsind we can chang the list number

Regards,

Jagadeesh.

bpawanchand
Active Contributor
0 Kudos

Hi

use the below instruction

SY-LSIND = 2.

Regards

pavan

Former Member
0 Kudos

Hi,

You Can return to the Second List number.But The comtent will be same.

For that ,

Case sy-lsind.

.

.

.

when 5.

sy-lsind = 2.

Endcase.

Regards,

Sujit