Ansicht
Dokumentation
ABENCLASS_COMPONENT - CLASS COMPONENT
ABAP Short Reference BAL_S_LOG - Application Log: Log header dataThis documentation is copyright by SAP AG.
CLASS, components
The components of the classes are defined in the visibility sections. The following declaration statements are possible for components:
- TYPES, DATA, CLASS-DATA, and CONSTANTS for data types and data objects
- METHODS, CLASS-METHODS, EVENTS, and CLASS-EVENTS for methods and events
- INTERFACES for implementing interfaces and ALIASES for alias names for interface components
Note
All the components in a class are in the same namespace. Within a class, the name of a component must be unique, regardless of its type (data type, attribute, method, event, or alias name). The components of an implemented interface are marked with the prefix intf~ (the name of the interface with interface component selector).
Example
Declaration of various components in the public and private visibility section of a class.
INTERFACE intf.
...
ENDINTERFACE.
CLASS cls DEFINITION.
PUBLIC SECTION.
INTERFACES intf.
TYPES:
type ...
CLASS-METHODS:
factory RETURNING VALUE(ref) TYPE REF TO cls.
METHODS:
constructor ...,
meth ...
PRIVATE SECTION.
DATA:
attr TYPE ...
ENDCLASS.
General Data in Customer Master TXBHW - Original Tax Base Amount in Local Currency
This documentation is copyright by SAP AG.
Length: 2461 Date: 20240426 Time: 150420 sap01-206 ( 35 ms )