sapdev logo background
sapdev logo sapdev logo
Comments

ABAP CLASS-EVENTS Statement syntax, information and example SAP source code



Return to Statement index



CLASS-EVENTS

Short Reference

ABAP Syntax CLASS-EVENTS evt [EXPORTING parameters ] .

ABAP_ADDITION:
... EXPORTING parameters

What does it do? 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.
Latest notes: 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 s
pecified.

ABAP_ADDITION ... EXPORTING parameters

What does it do? 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.

Latest notes: Static events have no implicit formal parameter sender
.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




CLASS-DATA
CLASS-METHODS




comments powered by Disqus