‎2007 May 29 11:01 AM
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
‎2007 May 29 11:03 AM
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.
‎2007 May 29 11:03 AM
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.
‎2007 May 29 11:04 AM
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.......
‎2007 May 29 11:04 AM
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
‎2007 May 29 11:05 AM
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.
‎2007 May 29 11:06 AM
‎2007 May 29 12:02 PM
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.