Start of Content Area

Function documentationEvents  Locate the document in its SAP Library structure

To react to an event in your ABAP program, you must have registered it. To register events, use the methods REGISTER_EVENT_CONTEXT_MENU, REGISTER_EVENT_DBLCKICK, REGISTER_EVENT_F1, REGISTER_EVENT_F4, and REGISTER_EVENT_FILEDROP. Events that are triggered but for which you are not registered are filtered by the presentation server, and not passed to the application server. For further information, refer to Event Handling

Event

Description / Use

CONTEXT_MENU

Calls the context menu using the right-hand mouse button.

For further information, refer to Context Menu.

CONTEXT_MENU_SELECTED

Item selection in the context menu.

For further information, refer to Context Menu.

DBLCLICK

Double click

F1

Function key F1 pressed

F4

Function key F4 pressed

FILEDROP

ON_DRAG

ON_DROP

ON_DROP_COMPLETE

ON_GET_FLAVOR

Drag and drop events.

For further information, refer to Drag and Drop

ExampleFor an example of event handling, refer to the demonstration program SAPTEXTEDIT_TEST_EVENTS in development class SAPTEXTEDIT.