Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  Declarative statemnts →  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 triggeres in a static method of a superclass, it is not handled, even if the method call takes place in a subclass or 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.