ABAP Keyword Documentation → ABAP - Reference → Program Flow → Expressions and Functions for Logical Expressions → log_exp - Logical Expressions → log_exp - Predicates → log_exp - IS
log_exp - IS SUPPLIED
Other versions: 7.31 | 7.40 | 7.54
Syntax
... para IS [NOT] SUPPLIED ...
Effect
The logical expression checks whether a formal parameter para
of a
procedure is filled or requested. The expression is true if at the call an actual parameter was assigned to the formal parameter.
This logical expression is possible only in function modules and methods. For para
, you can specify all optional formal parameters.
With addition NOT
, the expression is true if at the call no actual parameter was assigned to the formal parameter.
For function modules called with Remote Function Call, the application servers of the calling and called program must have at least release 4.6.
Notes
- The logical expression
IS SUPPLIED
is not evaluated in function modules that are called using
- from an external RFC interface.
IS SUPPLIED
always returns the value true.
- The logical expression
IS SUPPLIED
includes the obsolete expressionIS REQUESTED
.
Example
The logical expression of the first IF
statement in method m1
is true if at the call, an actual parameter is assigned to formal parameter p1
.
A check for the initial value would not be sufficient in this context, because this is the value of
the replacement parameter specified with DEFAULT
. The logical expression
of the second IF
statement is true if at the call no actual parameter is assigned to formal parameter p2
.
CLASS c1 DEFINITION.
PUBLIC SECTION.
CLASS-METHODS m1 IMPORTING p1 TYPE i DEFAULT 0
EXPORTING p2 TYPE i.
ENDCLASS.
CLASS c1 IMPLEMENTATION.
METHOD m1.
IF p1 IS SUPPLIED.
...
ELSE.
...
ENDIF.
IF p2 IS NOT SUPPLIED.
RETURN.
ELSE.
...
ENDIF.
ENDMETHOD.
ENDCLASS.
This translation does not reflect the current version of the documentation.