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: 

Events in the class cl_gui_alv_grid

Former Member
0 Kudos

Hi all

i am going through a thread and the declaration goes like this


CLASS lcl_eventhandler DEFINITION.
 
  PUBLIC SECTION.
    CLASS-METHODS:
      handle_double_click FOR EVENT double_click OF cl_gui_alv_grid
        IMPORTING
          e_row
          e_column
          es_row_no
          sender.
 
 
ENDCLASS.

And when i see the particlular event under the events tab in the respective class(cl_gui_alv_grid) i am able to see only the the following parameters E_ROW,E_COLUMN,ES_ROW_NO .

So my question is can we add one more parameter like sender over the above definition part which is not in the standard event??

can any one please explain this?/

Thanks,

JAJ.

1 ACCEPTED SOLUTION

former_member188685
Active Contributor
0 Kudos

yes you can add sender. what exactly you want to do.

4 REPLIES 4

former_member188685
Active Contributor
0 Kudos

yes you can add sender. what exactly you want to do.

0 Kudos

Hi Vijay,

My doubt is can we addd one more parameter like this??does it have any impact??

What all the steps we have to follow in case we are going for a additional import parameter..

FYI:

Here is the thread where i have seen the above implementation..

Thanks

JAJ

uwe_schieferstein
Active Contributor
0 Kudos

Hello Arun

The optional IMPORTING parameter SENDER corresponds to the control that raised the event. It is the only optional parameter you can add to declaration of event handler methods.

You will add this parameter to the declaration if you have multiple controls (e.g. ALV grids) which can raise the same event (e.g. double-click) and you need to distinguish between the control because you want to react differently.

For an example have a look at

Regards

Uwe

0 Kudos

Hello Uwe,

Thanks for your suggestion.

Thanks

JAJ.