Application Development and Automation 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: 
Read only

What Grid object call event method??

Former Member
0 Likes
571

Hello~~.

I make a dynnr which have Two grid control.

and I make one event handle class and i register the class to grid.

when double click, i can debug event local object.

But i don't know where the event occurs.

Help me plz~~~~~~

1 ACCEPTED SOLUTION
Read only

naimesh_patel
Active Contributor
0 Likes
540

Hello,

You can find the active control by

data: ACT_ALV type ref to cl_gui_control.

CALL METHOD cl_gui_control=>get_focus

IMPORTING control = ACT_ALV

EXCEPTIONS cntl_error = 1 cntl_system_error = 2.

regards,

Naimesh

3 REPLIES 3
Read only

naimesh_patel
Active Contributor
0 Likes
541

Hello,

You can find the active control by

data: ACT_ALV type ref to cl_gui_control.

CALL METHOD cl_gui_control=>get_focus

IMPORTING control = ACT_ALV

EXCEPTIONS cntl_error = 1 cntl_system_error = 2.

regards,

Naimesh

Read only

0 Likes
540

Hello,

Naimesh

Thank you~~

You answer is very helpful.

regards,

Mahnkwi

Message was edited by: Choi Mahnkwi

Read only

andreas_mann3
Active Contributor
0 Likes
540

hi,

if you use method:

handle_dclick for event double_click OF cl_gui_alv_grid importing ES_ROW_NO.

-> you can derive which row and which internal table was selected

A.