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: 

To get selected rows from alv output which is prepared with funciton module

Former Member
0 Kudos
77

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

1 REPLY 1

Former Member
0 Kudos
38

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.