09-17-2008 3:24 AM
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.
09-17-2008 4:05 AM
09-17-2008 4:05 AM
09-17-2008 4:24 AM
09-17-2008 4:31 AM
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
09-17-2008 4:53 AM