‎2008 Jul 04 1:25 AM
hi gurus i use this method to get the selected rows from an alv
CALL METHOD g_grid->get_selected_rows
IMPORTING
et_row_no = sel_rows.
when i do it for the first time everything is ok, but if i pres the back button and i want to select any set of rows again it doesnt work the method g_grid->get_selected_rows get 0 rows , what should i do.
thanks
‎2008 Jul 04 2:06 AM
Snapshot of your coding would help here but I am assuming you are calling a second ALV screen after selecting a row in the first ALV.
Check if you are using a different instance of g_grid i.e. g_grid1 & g_grid2 this will enable you to select the rows back again when you go back to the first ALV.
Regards,
Harish
‎2008 Jul 04 4:24 AM
use this
REFRESH: selected_rows.
CALL METHOD grid->get_selected_rows
IMPORTING
et_index_rows = selected_rows.
this will solve your problem
tnx
‎2008 Aug 04 4:07 PM