Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ALV OO: how to handle events from two alv_grids ?

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

Former Member
Former Member replied

using the sender addition you can differentiate.

double_click         for event double_click
                         of cl_gui_alv_grid
                         importing e_row
                                   e_column
                                   es_row_no
                                   sender,    "<====This can be used

sender hold the Current Grid reference , based on that you can differentiate.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question