ABAP Keyword Documentation → ABAP − Short Reference
meth( ... ) - Short 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
-
meth
- Methodmeth
of the same class. -
oref->meth
- Instance methodmeth
of the object referenced byoref
. -
super->meth
- Methodmeth
with the same name in the direct superclass. -
class=>meth
- Static methodmeth
of the classclass
.
Specify the parameter
-
( )
Calls a method without passing a parameter. -
(a)
Calls a method while passing a single parametera
. -
( p1 = a1 p2 = a2 ... )
Calls a method while passing multiple parametersa1
,a2
, ... -
EXPORTING p1 = a1 p2 = a2 ...
Passes actual parametersa1
,a2
, ... to input parametersp1
,p2
, ... -
IMPORTING p1 = a1 p2 = a2 ...
Inherits output parametersp1
,p2
, ... in actual parametersa1
,a2
, ... -
CHANGING p1 = a1 p2 = a2 ...
Assigns actual parametersa1
,a2
, ... to input/output parametersp1
,p2
, ... -
RECEIVING r = a
Assigns the return valuer
to the actual parametera
.
Specify the exceptions
-
EXCEPTIONS
Enables the handling of non-class-based exceptions:
exc1 = n1 exc2 = n2 ...
- Assigns numbersn1
,n2
, ... to the classic exceptionsexc1
,exc2
, ... for the return codesy-subrc
.
OTHERS = n_others
- Assigns a numbern_others
for the return codesy-subrc
to all exceptions not named explicitly.
This translation does not reflect the current version of the documentation.