ABAP objects can indicate that their state has changed by triggering a method. Events can be defined in classes or interfaces. Methods can trigger events with the RAISE EVENT statement. Each class (or interface) that is going to handle the corresponding event must implement a relevant handler method, and register it using the SET HANDLER statement. When an event occurs, the system calls all handler methods registered for that event.
Like method definitions, events have a parameter interface. The only difference is that events may only have EXPORTING parameters.
The class or interface already exists.
Option | Description |
---|---|
Event |
Defines a unique name for the event |
Type |
The declaration type of an event sets whether the event is an instance event (for more information, see the ABAP Keyword documentation under EVENTS) or a static event (for more information, see the ABAP Keyword documentation under CLASS-EVENTS). |
Visibility |
Defines the visibility of the element using the Public, Protected, Package and Private options |
Description |
Short description of the event |
See also:
Creating Event Handler Methods