What does it do? The statement block INTERFACE - ENDINTERFACE> defines an interface> intf>. Naming conventions> apply to the name intf>. The components>> of the interface are declared between INTERFACE> and ENDINTERFACE >. An interface defined using INTERFACE> can be implemented in classes and included in other interfaces using the statement INTERFACES>>.
Latest notes: The definition of an interface can only be specified in the context described under INTERFACE>>. NON_V5_HINTS ABAP_HINT_END
ABAP Addition
What does it do? The addition PUBLIC> makes the interface intf> a global interface> of the class library. The addition PUBLIC> can only be used for the global interface of an interface pool> BEGIN_SECTION VERSION 5 OUT and is created by the Class Builder> when a global interface is created END_SECTION VERSION 5 OUT .
Latest notes: A global interface is a global object type > and is in the same namespace as all global types> of an AS ABAP. NON_V5_HINTS ABAP_HINT_END
ABAP_EXAMPLE_VX5 In this example, an interface i1> is declared using three interface components a1>, m1>, and e1>. The class c1> implements the interface and the interface components therefore become public> components of the class, which can be addressed using the interface component selector ( ~>). ABEXA 00358 ABAP_EXAMPLE_END