sapdev logo background
sapdev logo sapdev logo
Comments

ABAP CALL METHOD METH IDENT STAT Statement syntax, information and example SAP source code



Return to Statement index



meth( ... ) - Specifying the Method

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 the 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 when they are specified 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 .

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_ALTERNATIVE_2 ... oref- meth ... .

What does it do? Can be specified in processing blocks in which a method meth is visible, where oref contains an object reference to an object that contains the method as a component. oref can be specified as an existing reference variable or (in suitable operand positions) a constructor expression with a constructor operator NEW or CAST . The latter is particularly applicable for standalone method calls .

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, which contains the method as a static component .
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




CALL_METHOD_METH_IDENT_DYNA
CALL_METHOD_METH_SUPER




comments powered by Disqus