SAP CLASS EVENTS



Get Example source ABAP code based on a different SAP table
  



ABAP_OBJ - Class Events
In ABAP Objects, events are declared as components of classes. There is a distinction between instance events and static events. Triggers and handlers can be objects and classes, depending on whether they are instance or static events, or event handlers.

Instance Events
Instance events are declared using the statement EVENTS. They can only be raised in instance methods.

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