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 reporting

Former Member
0 Kudos

Hi

In interactive reporting, suppose i go to N'th list from basic list(primary data) & i wanna come back directly to basic list. So how can i achieve this....

1 ACCEPTED SOLUTION

GauthamV
Active Contributor
0 Kudos

hi,

u can code like this.

if sy-lsind = n.

sy-lsind = 0.

endif.

6 REPLIES 6

Former Member
0 Kudos

hi,

i think it is not possible

by,

raghul

athavanraja
Active Contributor
0 Kudos

you can set sy-lsind to 0 to get back to the basic list

GauthamV
Active Contributor
0 Kudos

hi,

u can code like this.

if sy-lsind = n.

sy-lsind = 0.

endif.

Former Member
0 Kudos

Hi Vijaya,

Yes, you can definitely achieve.

This can be done as follows.

If you are in 'n'th list.

if sy-lsind = n.
   
   sy-lsind = 0.

endif.

where sy-lsind is the system field which represents the current list index which has been displayed.

sy-lsind = 0 -


represents basic list.

sy-lsind = 1-19 -


represents the secondary lists.

So, we can move through the lists using this system field.

Hope this helps you.

Any queries, get back to me.

Regards,

Chandra Sekhar

Edited by: Chandrasekhar Gandla on Jun 29, 2008 6:24 PM

Edited by: Chandrasekhar Gandla on Jun 29, 2008 6:26 PM

Former Member
0 Kudos

Hi,

SY-LSIND = 0 is the basic list..

So when interaction is done sy-lsind will be 1.

So if you want to get back to the basic list directly from nth list..

Before writing the contents on the nth list.. specify a simple abap statement..

SY-LSIND = 1.

This will print in the next list of the basic list and if you press back from the list you will be into BASIC LIST.

Make sure that your N value is not greater than 20.

For your information give N as 21 and see what happens...

It will give you a runtime error....

So with this information you can come to a conclusion about SY-LSIND.

Hope this information would be helpful..

Regards

Narin Nandivada.

Edited by: Narin Nandivada on Jun 29, 2008 10:10 PM

Former Member
0 Kudos

Hi,

You can go back to the Basic list but not inbetween. You can achive it with the code mentioned earlier.

Regards

Kiran