cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Row Select in ALV

Former Member
0 Kudos

Hi All.

I am trying to set multiple selection on in ALV using the method SET_SELECTION_MODE of IF_WD_SELECT_OPTIONS. (if_salv_wd_table_settings)

But it is always resulting in a dump saying that :

Selection type Multi is not allowed in combination with the selection Single of the data node

Now how can we change the context of the ALV?

What am i doing wrong here?

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Aishi.

You have to set the selection mode of the node that you reverse map to the ALV data node to 0..n or 1..n.

Cheers,

Sascha

Former Member
0 Kudos

Thanks Sascha. But I am mapping the DATA node of the ALV to the comp controller's node which is already 0...n cardinality.

What else I have to do?

Former Member
0 Kudos

Hi this works fine here:


 data: lr_table_settings type ref to if_salv_wd_table_settings.

lr_table_settings->set_read_only( abap_false ).
lr_table_settings->set_enabled( abap_true ).
lr_table_settings->set_selection_mode( CL_WD_TABLE=>e_selection_mode-multi ).

The node i bound to the ALV has selection 0..n.

Cheers,

Sascha

kutjohn
Active Participant
0 Kudos

HI,

You have to set both cardinality and selection to 0-n.