What does it do? This special form of a static method specification> can be used in methods of subclasses to call the implementation of an identically named method in the direct superclass. The superclass is addressed using the pseudo reference> super>.
ABAP Alternative 1 ... super->meth ...>
What does it do? Can be specified in the redefinition> of the method meth> in the implementation in a subclass and calls the implementation of the method meth> in the direct superclass. A method call super->meth> can be used in the same operand positions and in the same syntax forms as oref->meth>>, and the same rules apply to the parameter passing.
ABAP_EXAMPLE_VX5 Call of the implementation of the method meth> in superclass cls1> in the redefinition of the method in the subclass cls2 >. ABEXA 00067 ABAP_EXAMPLE_END
ABAP Alternative 2 ... super->constructor ...>
What does it do? Must be specified in an instance constructor implemented in a subclass to call the instance constructor of the direct superclasses. The following restrictions apply before the superclass constructor is called:
The instance constructor does not have access to the instance components of its class. The self-reference me->>> cannot be used. The static components of its class can be accessed, but not with me->>.
Before the superclass constructor is called, an instance constructor cannot be exited using statements such as RETURN> or CHECK>. After the superclass constructor is called, the self-reference me-> > can be used and instance components can be accessed. The superclass constructor can only be called using super->constructor> as a standalone statement>.
Latest notes:
During the execution of a superclass constructor called using super->constructor>, meth> and me->meth> do not address the method implementations of the subclass, but those of the superclass instead.
The instance constructor of the superclass must be called, even if it is not declared explicitly.
See also Inheritance and Constructors >. NON_V5_HINTS ABAP_HINT_END
ABAP_EXAMPLE_VX5 Call of the superclass constructor in instance constructor of a subclass. Without this call, a syntax error occurs. ABEXA 00068 ABAP_EXAMPLE_END