ABAP Keyword Documentation → ABAP - Reference → Declarative statemnts → Classes and Interfaces → ABAP Objects - Overview → Classes → Components of Classes
Events
In ABAP Objects, events are declared as components of classes. SAP makes a distinction between instance events and static events. Triggers and handlers can be objects and classes, depending on whether they are instance events, static events, or event handlers.
Other versions: 7.31 | 7.40 | 7.54
Instance events
Instance events are declared using the EVENTS
statement. They can only be triggered in instance methods.
Static events
Static events are declared using the CLASS-EVENTS
statement. All methods (instance or static) can trigger them, but only static events can be triggered by static methods.