Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  Calling and leaving program units →  Calling Processing Blocks →  Calling Procedures →  Method Calls →  Static Method Calls →  meth( ... ) - Standalone Method Call 

meth( ... ) - Specifying the Method

Short Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


... meth 
  | oref->meth
  | class=>meth
  | super->meth ...

Alternatives

1. ... meth ...

2. ... oref->meth ...

3. ... class=>meth ...

Effect

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.


Note

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.

Alternative 1

... meth ...

Effect

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.

Alternative 2

... oref->meth ...

Effect

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.

Alternative 3

... class=>meth ...

Effect

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.