ABAP Keyword Documentation → ABAP - Reference → Declarations → Declaration Statements → Classes and Interfaces → ABAP Objects - Overview → Classes → Components of Classes → Methods of Classes
Interface Parameters in Methods
Interface parameters in methods are input parameters
(IMPORTING
, CHANGING
parameters) and output parameters
(EXPORTING
, CHANGING
, RETURNING
parameters). In declarations with the statements
the following attributes are determined:
Other versions: 7.31 | 7.40 | 7.54
Passing parameters by reference or by value
VALUE(p)REFERENCE(p)
Typing parameters
TYPELIKETYPE
Optional parameters
All input parameters (IMPORTING
, CHANGING
parameters)
can be defined in the declaration as optional parameters using the additions OPTIONAL
or DEFAULT
. These parameters must not necessarily be transfered when the
method is called. With the addition OPTIONAL
your parameter remains initialized according to type, while the addition DEFAULT
allows you to enter a start value.