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

ALV Enevts

Former Member
0 Likes
623

Hi

I have one double click event defination and event implementation. But two event handler one for top alv and one for bottom alv on a single report. Now from the event implementation I want to know which (top or bottom alv) alv is double clicked(top or bottom).

Hi

I have one double click event defination and event implementation. But two event handler one for top alv and one for bottom alv on a single report. Now from the event implementation I want to know which (top or bottom alv) alv is double clicked(top or bottom).

4 REPLIES 4
Read only

Former Member
0 Likes
572

Well what about going to the implementation part of your "bottom"-dblclck event, and implementing some flag, which will tell you later on that the bottom-dblclck event has been raised.

Read only

Former Member
0 Likes
572

Hi ,

You can have an attribute(GRIDNAME) in the definition of event receiver class.

Have 2 object of the same class.In the constructor of the event receiver assign the GRIDNAME in the constructor.

events_grid1 TYPE REF TO lcl_application,

events_grid2 TYPE REF TO lcl_application,

CLASS lcl_application DEFINITION.

PUBLIC SECTION.

*Attributes

DATA : myname TYPE char10.

*Methods

METHODS:

constructor IMPORTING myname_p TYPE char10,

................

ENDCLASS. "lcl_application DEFINITION

CLASS lcl_application IMPLEMENTATION.

  • CONSTRUCTOR

METHOD constructor.

myname = myname_p.

ENDMETHOD. "constructor

*HANDLE_DOUBLE_CLICK

METHOD handle_node_double_click.

IF me->myname EQ 'GRID1'.

....

elseif me->myname EQ 'GRID2'.

,,..

endif.

ENDCLASS. "lcl_application IMPLEMENTATION

SET HANDLER events_GRID1->handle_node_double_click FOR GRID1.

............

SET HANDLER events_GRID2->handle_node_double_click FOR GRID2.

..........

Hope this helps.

Regards

Immanuel D

Read only

0 Likes
572

Hi

What is 'me' here.

Read only

0 Likes
572

Hi,

'me' represents object that uses it....

It is a self pointer

Regards

Immanuel D