CLASS-DATA attr [options].
The statement CLASS-DATA can only be used in the declaration part of a class or an interface. The statement declares a static attribute attr whose validity is not associated with instances of a class but with the class itself. All instances of the class and its subclasses access the same static attribute.
The naming conventions apply to the name
attr. The syntax of the additions options is
identical to the statement DATA
for instance attributes (the addition WITH HEADER LINE must not be used).
When using the class components, you can access static attributes declared with CLASS-DATA only by using class names, not interface names.
In this example, the static attribute text of the class c1 is accessed using the class component selector without having created an instance of the class.
CLASS c1 DEFINITION.
CLASS-DATA text TYPE string VALUE `Static data`.