Skip to Content
0
Former Member
May 18, 2010 at 11:28 AM

Row Selection in ALV Grid created using CL_GUI_ALV_GRID

150 Views

Hi,

I have ALV grid using cl_gui_alv_grid. I want to capture the row selection and display the selected rows in 2nd ALV grid (using cl_gui_alv_grid).

Method CALL METHOD Grid->get_selected_rows giving right no. of selected records first time and process these records by POST button and hence shows these records in next alv grid. but when i came back to 1st ALV by pressing BACK button on 2nd ALV then if I again select records on the same 1st ALV grid the same Method CALL METHOD Grid->get_selected_rows fires again. but this times it wouldn't give the selected records. I mean first time this gives me correct no. of selected records but 2nd time wouldn't.

how do I capture the row selection.?

Kindly suggest me. helpful answer will be appreciated.

Thanx in Advance.

Robin