Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  Declarations →  Declaration Statements →  Classes and Interfaces →  ABAP Objects - Overview →  Classes →  Components of Classes 

Class 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 statement EVENTS. They can only be triggered in instance methods.

Static events

Static events are declared using the statement CLASS-EVENTS. All methods (instance methods and static methods) can trigger static events. Static events, however, are the only events that can be triggered in static methods.