Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  Declarations →  Declaration Statements →  Classes and Interfaces →  Components in Classes and Interfaces →  Events 

CLASS-EVENTS

Short Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


CLASS-EVENTS evt [EXPORTING parameters] . 

Addition

... EXPORTING parameters

Effect

This statement declares a static event evt in a class or interface. The Naming conventions apply to the name evt. The static event evt can be triggered in all methods of the same class, or a class that implements the interface, and in the methods of subclasses - if it is visible there - using the RAISE EVENT statement.


Note

An event handler for which a subclass is declared for a static event, which is inherited from a superclass, can only react to this if the event is triggered by a method of the subclass or one of its subclasses. If the event is triggered in a static method of a superclass, it is not handled, even if the method is called in a subclass or if the name of the subclass is specified.

Addition

... EXPORTING parameters

Effect

The EXPORTING addition defines the parameter interface of the event evt. The syntax and meaning of the parameters additions correspond with definition of instance events using the EVENTS statement.


Note

Static events have no implicit formal parameter sender.