SAP CALL METHOD METH IDENT STAT ABAP Statements

Get Example source ABAP code based on a different SAP table
  



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.

Return to menu