Ansicht
Dokumentation

ABENCLASS_TYPES_CONSTANTS - CLASS TYPES CONSTANTS

ABENCLASS_TYPES_CONSTANTS - CLASS TYPES CONSTANTS

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

- Data Types and Constants of Classes

Data Types

Standalone Types

The TYPES statement can be used to declare any number of self-defined ABAP data types within a class. Types are instance-independent and only exist once for all the objects of a class.

In particular, it is possible to define data types in the public visibility section of global classes, which makes the use of type pools in this context obsolete.

Bound Data Types

Bound data types that occur as properties of instance or static attributes also belong to the static properties of a class. After a LIKE addition, the class name can be used to access the properties of instance attributes (exceptions to this rule are the statements ASSIGN ... CASTING and SELECT-OPTIONS ... FOR). In addition, a reference variable can be used with an object component selector without first creating the object.

Constants

Constants are special static attributes, whose values are specified when they are declared, and which cannot be changed. Constants are declared using the statement CONSTANTS. Constants are instance-independent and exist only once for all the objects of a class.

In particular, it is possible to declare constants in the public visibility section of global classes, which makes use of type pools in this context obsolete.






General Material Data   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 1959 Date: 20240419 Time: 160024     sap01-206 ( 21 ms )