10-12-2005 12:24 PM
Hi All,
I am working with ALV interactive reporting using "REUSE_ALV_GRID_DISPLAY" FM.
In this case how I will know on which list I am presently.
I tried to use the variable SY-LSIND. But that is always carrying 0.
Please let me know which system variable holds the list index.
Thanks,
Ramesh
10-12-2005 12:45 PM
Hi,
<b> SY-LSIND</b> is the index of the current list
WRITE: / 'SY-LSIND:', SY-LSIND LEFT-JUSTIFIED.
For Basic List,SY-LSIND is always '0'
For Detail List,the Value of SY-LSIND is from '1' to '20'
<b>SY-LISTI</b> is the index of the previous list
WRITE: / 'SY-LISTI:', SY-LISTI LEFT-JUSTIFIED.
<b>SY-LILLI</b> is the number of the selected line in the absolute list
WRITE: / 'SY-LILLI:', SY-LILLI LEFT-JUSTIFIED.
Thanks,
Ruthra
10-12-2005 12:57 PM
Hi Ruthra,
As I told before I am not able see any list indexes in sy-lsind variable.It seems They are useful in LIST display only.
Ramesh
10-12-2005 12:59 PM
Hi,
Yes these are used in Reports only and not in ALV.
Thanks,
Ruthra
10-12-2005 1:17 PM
Hi,
For my knowledge it does not exists as standard, but why don't you handle and INDEX BY YOUSERLF in ABAP.
data : l_index type sylsind.
then increment and decrement the index by yourself.
That is what I wxould do.
If I did help you don't forget to reward me!
:à
10-12-2005 1:35 PM
Hi Stephan,
I am trying to find if there is any standard variable is there or not. Currently I am handling thru my program variable only..any way I gave U points..
Thanks,
Ramesh