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: 

How to find the instance which raised the event?

Former Member
0 Kudos

Hi all,

I am coding program using cl_gui_alv_grid, with drill down. I am trying to capture the double_click event. I know can do it by setting diff handlers for each alv object. But is there any way I can set one handler for all the list and in the event receiver method I can find which instance (alv list) raised the double_click event?

Ravi

1 ACCEPTED SOLUTION

former_member182670
Contributor
0 Kudos

In your event handler you can specify 'sender' parameter:

METHOD  handle_double_click
FOR EVENT double_click OF cl_gui_alv_grid
IMPORTING e_row e_column sender.

Then in your method implementation you have access to sender object (alv instance)

2 REPLIES 2

former_member182670
Contributor
0 Kudos

In your event handler you can specify 'sender' parameter:

METHOD  handle_double_click
FOR EVENT double_click OF cl_gui_alv_grid
IMPORTING e_row e_column sender.

Then in your method implementation you have access to sender object (alv instance)

0 Kudos

Ravi: is the problem solved? if yes please reward points and close topic.