Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SALV: Get_Selected_Rows Problems with Container Display

AlexGiguere
Contributor
0 Kudos

Hi guys, I need to know which rows have been selected on my report.

I'm using the new class CL_SALV_TABLE to display my report, my report is display on a gui container on a dynpro.

If I used the fullscreen display, it seems to work! This probelm seems only to occur using the display in the container.

Setting the selection

selections = lr_table->get_selections( ).
  selections->set_selection_mode( if_salv_c_selection_mode=>multiple ).

Getting the selected rows

lt_rows = selections->get_selected_rows( ).

My internal table lt_rows is always empty, but if I go in debug and I change the rows_rec to true (first if statment of the method) ... it will works

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Call the get_meta_data method to get the rows selected..

Check this link for a sample code..

Thanks

Naren

1 REPLY 1

Former Member
0 Kudos

Hi,

Call the get_meta_data method to get the rows selected..

Check this link for a sample code..

Thanks

Naren