cancel
Showing results for 
Search instead for 
Did you mean: 

Set row in ALV selected

Former Member
0 Kudos

Hi,

i try to set a row from a WDA ALV selected if a user choose one entry from another ALV in the view.

For this i tried the code :


  obj_node->set_lead_selection_index( lv_lead ).
  obj_element = obj_node->get_element( ).
  obj_element->set_selected( abap_true ).

In the debugger is can see on the OBJ_NODE element, that the lead selection is set correct and the selection table is also filled with the correct element.

But on the view in the ALV is no row selected.

Regards,

Anton

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Anton,

could you please tell me how you solved your problem? Which Method did you use?

Maybe I can also use your solution in my application.

thanks a lot

Kind regards

Haleh

Former Member
0 Kudos

Hi Haleh,

use my coding form the beginning:


  obj_node->set_lead_selection_index( lv_lead ).
  obj_element = obj_node->get_element( ).
  obj_element->set_selected( abap_true ).

If the selection is not set correct, check OSS Notes 1135390 and 1137854.

After implementing this notes in our crm system the coding works fine.

Best regards,

Anton

Former Member
0 Kudos

Hi Anton,

I feel some other method is overriding the the selected method.

may be there is another method being called the combination for which doesn't work with set_selected( abap_true ).

regards,

kinshuk