2007 Oct 04 10:46 AM
Hi ,
I have a program which is prepared ALV with funciton modules.
Now i have to get selected rows(more than one).
Can i use method CL_GUI_ALV_GRID -> get_selected_rows.
or any other way to get selected rows.
thanks,
shyla
2007 Oct 04 12:55 PM
Under the callback subroutine ( u have passed them in I_CALLBACK_USER_COMMAND of ur function module) - u do like this -
DATA : ref1 TYPE REF TO cl_gui_alv_grid,
t_selcted_rows type LVC_T_ROID.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING e_grid = ref1.
call method ref1->get_selected_rows
importing ET_ROW_NO = t_selected_rows.
Hope this solves ur problem.