Skip to content

ABAP Keyword Documentation →  ABAP − Short Reference 

meth( ... ) - Short Reference

Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


{meth 
| oref->meth
| super->meth
|class=>meth}( { }
             | { a }
             | { p1 = a1 p2 = a2 ... }
             | { [EXPORTING p1 = a1 p2 = a2 ...]
                 [IMPORTING  p1 = a1 p2 = a2 ...]
                 [CHANGING   p1 = a1 p2 = a2 ...]
                 [RECEIVING r  = a ]
                 [EXCEPTIONS [exc1 = n1 exc2 = n2 ...]
                             [OTHERS = n_others]] } ).

Effect

Static method call.

Specify the method

Specify the parameter

Specify the exceptions

  • EXCEPTIONS
    Enables the handling of non-class-based exceptions:

    exc1 = n1 exc2 = n2 ... - Assigns numbers n1, n2, ... to the classic exceptions exc1, exc2, ... for the return code sy-subrc.

    OTHERS = n_others - Assigns a number n_others for the return code sy-subrc to all exceptions not named explicitly.


This translation does not reflect the current version of the documentation.