Skip to Content
0
Former Member
Sep 23, 2008 at 12:07 PM

ALV OO: how to handle events from two alv_grids ?

59 Views

Hi guys!

hope someone can help me out.

In my program i have three dynpros with differt alv of cl_gui_alv_grid.

In each of these grids i want to implement a "handle_double_click" event.

How can i do this?

acually i have my class lcl_event_receiver and there i have implemented the handle_double_click method.

but how can i figure out which grid triggered the event?

in each dynpro i have

SET HANDLER event_receiver->handle_double_click FOR grid1.

SET HANDLER event_receiver->handle_double_click FOR grid2.

SET HANDLER event_receiver->handle_double_click FOR grid3.

now in the class implementation i need something like

if grid 1 X

if grid 2 Y