SAP CALL METHOD METH IDENT STAT ABAP Statements Get Example source ABAP code based on a different SAP table
ABAP Statement
meth( ... )>, Static Method Specification Short Reference > ABAP_SYNTAX ... meth> $| oref->meth> $| class=>meth> $| super->meth> ...> ABAP_ALTERNATIVES: 1 ... meth ...> 2 ... oref->meth ...> 3 ... class=>meth ...> What does it do? These names are used for to specify methods statically, where meth > is a valid name for the method in the current context. A special case of specifying methods statically is the specification after the pseudo reference super>> in methods of subclasses. Latest notes: The name of a method can be the name of the method declared in METHODS>>, a name composed using the interface component selector>, or an alias name>. NON_V5_HINTS ABAP_HINT_END ABAP Alternative 1 ... meth ...> What does it do? Can be specified in method implementations for any method meth> of the same class. In instance methods, meth> is a short form of me->meth>, where me> is the self-reference>. ABAP_EXAMPLE_VX5 Call of method meth2> from another method meth1>. ABEXA 00064 ABAP_EXAMPLE_END ABAP Alternative 2 ... oref->meth ...> What does it do? Can be specified in processing blocks in which any method meth> is visible. Here, oref> contains an object reference to an object that contains the method as a component. The following can be specified for oref>: A reference variable A single or chained table expression> whose result is a reference variable A constructor expression> with a constructor operator> NEW>> or CAST>> This applies to both standalone method calls> and functional method calls>. ABAP_EXAMPLE_VX5 Call of the instance method meth> via a temporary reference variable created using the NEW >> operator. ABEXA 00065 ABAP_EXAMPLE_END ABAP Alternative 3 ... class=>meth ...> What does it do? Can be specified in processing blocks in which a static method> meth> is visible, where class> is one of the classes allowed by the package check that contains the method as a static component>. ABAP_EXAMPLE_VX5 Call of the static method meth> using the name of the class. ABEXA 00066 ABAP_EXAMPLE_END Return to menu