ABAP Keyword Documentation → ABAP - Reference → Declarations → Declaration Statements → Classes and Interfaces → INTERFACE → INTERFACE intf
INTERFACE - components
The following declaration statements are possible for components
:
TYPES
,DATA
,CLASS-DATA
,CONSTANTS
for data types and data objects
METHODS
,CLASS-METHODS
,EVENTS
,CLASS-EVENTS
for methods and events
INTERFACES
for the inclusion of component interfaces, andALIASES
for alias names for components of interfaces
The only interface components that can be addressed without implementation of the interface in classes are data types and constants. These can be addressed using the name of the interface and the
class component selector (=>
).
Other versions: 7.31 | 7.40 | 7.54
Note
All components of an interfaces are in one namespace. Within an interface, the name of a component must
be unique, regardless of its type (data type, attribute, method, event , or alias name). The components
of an included interface are identified by the prefix intf~
(name of the interface with interface component selector).