cancel
Showing results for 
Search instead for 
Did you mean: 

Select All, deselect all events in ALV

Former Member
0 Kudos

Hi experts,

I created ALV using SALV_WD_ALV component and i am using the standard select all and deselect all. I want to know which event is called on select_all and also when i do a multiple select using shift/control keys.

I know that ON_LEAD_SELECTION is called when i select a single row with row selected index and also when i deselect all with index 0. but this is not getting called/triggered when i click on select_all or select multiple rows (using shift button)..

Please help me on the above issue.

Thanks in advance.

Regards

Divakar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

SET_SELECTED method of IF_WD_CONTEXT_NODE is used for setting the row selected

here is one example for you create a new button then write this code then all the rows will be selected .

data lo_nd_node1 type ref to if_wd_context_node.

data lo_el_node1 type ref to if_wd_context_element.

data ls_node1 type wd_this->element_node1.

data line_count type i.

  • navigate from <CONTEXT> to <NODE1> via lead selection

lo_nd_node1 = wd_context->get_child_node( name = wd_this->wdctx_node1 ).

*if lo_nd_node1 is not initial.

call method lo_nd_node1->get_element_count

receiving

count = line_count.

do line_count times.

lo_nd_node1->set_selected( index = sy-index ). enddo.

Regards,

Shaik Shadulla

Answers (0)