cancel
Showing results for 
Search instead for 
Did you mean: 

ALV: how to handle event for multi (lead) row selection ?

christian_taut
Explorer
0 Kudos

Hi,

I use editable ALV and configure it for multi (lead) selection. Works fine.

But I could not find any event handler for reading the selected lines.

There is only the Event handler ON_LEAD_SELECT: this works only for 1 line

(the lead line). But I could not read multi lines. Who can help?

Thanks in advance, Christian

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Christian,

did you try a custom button?

Try a call

node->GET_SELECTED_ELEMENTS

I cant remember if ALV sends event when multi-selection is on for each row selection.

ie as each row is selected, do you get control ?

If so, then you should still be able to call node->GET_SELECTED_ELEMENTS .

regards

Phil.

former_member215843
Active Participant
0 Kudos

Hi Christian, hi Phil,

As there is no action for multiple selection, the ALV component is also not able to provide a handler for this.

Therefore you have to add a button, which the user can press when he/she is ready.

You can register on this and get the elements as Phil explained.

Regards, Regina

Answers (2)

Answers (2)

christian_taut
Explorer
0 Kudos

THanks again -> it works !!

christian_taut
Explorer
0 Kudos

THanks you both.

I am just trying this .....