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: 

List Index in Interactive reporting using ALV GRID

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

Hi,

Yes these are used in Reports only and not in ALV.

Thanks,

Ruthra

0 Kudos

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!

0 Kudos

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