06-29-2008 6:22 AM
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....
06-29-2008 1:39 PM
06-29-2008 6:24 AM
06-29-2008 8:12 AM
06-29-2008 1:39 PM
06-29-2008 5:24 PM
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
06-29-2008 5:40 PM
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
06-29-2008 8:28 PM
Hi,
You can go back to the Basic list but not inbetween. You can achive it with the code mentioned earlier.
Regards
Kiran