Show TOC

EventsLocate this document in the navigation structure

Use

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 more information, see Event Handling .

Event

Use/Meaning

CONTEXT_MENU

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

For more information, see Context Menu .

CONTEXT_MENU_SELECTED

Item selection in the context menu.

For more information, see 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 more information, see Drag and Drop

Example

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