cancel
Showing results for 
Search instead for 
Did you mean: 

ALV - Lead Selection ist lost when ALV is sorted

achim_pellen
Explorer
0 Kudos

Hi all,

I am using ALV having a lead selection when it comes to display.

But when I am sorting that ALV or having a incoming view personalized (with sorting) then the lead selection is lost.

What can I do for not loosing the lead selection on the ALV?

Thanks very much.

Achim

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I think it's not lost, but due to sorting may be it went down in order. To get the leadselection for first row. You can try setleadselection index method (I am away from sap system, may be the method name is wrong, you can search from context class). And set the index '1' on wddomodifyview() method.

achim_pellen
Explorer
0 Kudos

Hi WD_ABAP,

when setting the lead selection at time of WDDOMODIFYVIEW then all other is overridden e.G. selecting a row by myself after 1st display of ALV.

So I don't think that is the right time of setting lead selection.

Do you have another clue ?

Thanks.

Achim