Application Development and Automation 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: 
Read only

Interactive Report

Former Member
0 Likes
858

Hi SAP-Guru's

i created a interactive report with 10 secondary lists. can i jump from 1st basic list to 5th sec list & can i come back from 5th -2nd and 10 - 4th list like that is ti possible .if possible plz help me with an example

points compulsory

sai

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
759

Hi,

u just set the sy-lsind value in ur program.

case sy-lsind.

when '2'.

sy-lsind = 5.

when '5'.

sy-lsind = 10.

endcase.

rgds,

bharat.

6 REPLIES 6
Read only

Former Member
0 Likes
760

Hi,

u just set the sy-lsind value in ur program.

case sy-lsind.

when '2'.

sy-lsind = 5.

when '5'.

sy-lsind = 10.

endcase.

rgds,

bharat.

Read only

Former Member
0 Likes
759

Hi

Yes its possible..Se the value of SY-LSIND..Thats all.

For Eg: If sy-lsind = 5.

Sy-lsind =1.

In this case thereport will come to first list from the fifth list..

Reward All Helpfull Answers.......

Read only

Former Member
0 Likes
759

Hi

Yes, You can JUMP from one list to other by handling the value of the field

SY-LSIND in the code

example to go from 4th to 8th list

write

if sy-lsind = 4.

sy-lsind = 8.

endif.

Reward points if useful

Regards

Anji

Read only

Former Member
0 Likes
759

Hi sai,

SY-LSIND is the variable that stores the list no.. so change your sy-lsind according to your requirement.

if sy-lsind =5.

sy-lsind = 2.

endif.

Regards,

Vidya.

Read only

Former Member
Read only

Former Member
0 Likes
759

yes ,

U can jump from one list to another list ......... using system field sy-lsind.

form basic list 1 to secoundary list 5th U can jump. but U can not jump 10th list to 1st list.

example program for U.

REPORT Z_TEST111.

write 'hi'.

at line-selection.

if sy-lsind = 1.

write : 'hello1'.

endif.

if sy-lsind = 2.

write : 'hello2'.

endif.

if sy-lsind = 3.

write : 'hello3'.

endif.

if sy-lsind = 4.

write : 'hello4'.

endif.

if sy-lsind = 5.

write : 'hello5'.

endif.

if sy-lsind = 5.

sy-lsind = 3.

endif.