* mögliche Events sind:
* SET HANDLER gr_events->on_user_command FOR o_alv->get_event( ).
* SET HANDLER gr_events->on_before_user_command FOR o_alv->get_event( ).
* SET HANDLER gr_events->on_after_user_command FOR o_alv->get_event( ).
* SET HANDLER gr_events->on_double_click FOR o_alv->get_event( ).
* SET HANDLER gr_events->on_top_of_page FOR o_alv->get_event( ).
* SET HANDLER gr_events->on_end_of_page FOR o_alv->get_event( ).
* Klasse für Eventhandling definieren
CLASS lcl_events DEFINITION.
PUBLIC SECTION.
* Doppelklick
CLASS-METHODS: on_double_click FOR EVENT double_click OF cl_salv_events_table
IMPORTING
row
column
sender.
* Link-Klick
CLASS-METHODS: on_link_click FOR EVENT link_click OF cl_salv_events_table
IMPORTING
row
column
sender.
ENDCLASS.
CLASS lcl_events IMPLEMENTATION.
METHOD on_double_click.
MESSAGE | { row } , { column } | TYPE 'I'.
ENDMETHOD.
METHOD on_link_click.
MESSAGE | { row } , { column } | TYPE 'I'.
ENDMETHOD.
ENDCLASS.
DATA: o_salv TYPE REF TO cl_salv_table.
...
* Handler registrieren
SET HANDLER lcl_events=>on_double_click FOR o_salv->get_event( ).
SET HANDLER lcl_events=>on_link_click FOR o_salv->get_event( ).