Ansicht
Dokumentation

ABAPCALL_METHOD_METH_IDENT_STAT - CALL METHOD METH IDENT STAT

ABAPCALL_METHOD_METH_IDENT_STAT - CALL METHOD METH IDENT STAT

PERFORM Short Reference   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

meth( ... ), Static Method Specification

Short Reference



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

Alternatives:

1. ... meth ...

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

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

Effect

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.

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.

Call of method meth2 from another method meth1.

Alternative 2

... oref->meth ...


Effect

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

This applies to both standalone method calls and functional method calls.

Example

Call of the instance method meth via a temporary reference variable created using the NEW operator.

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 that contains the method as a static component.

Example

Call of the static method meth using the name of the class.






SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 4422 Date: 20240419 Time: 105400     sap01-206 ( 47 ms )