ABAP Keyword Documentation → ABAP - Reference → Program Flow Logic → Expressions and Functions for Conditions → log_exp - Logical Expressions → rel_exp - Predicates → rel_exp - Predicate Expressions
rel_exp - IS ASSIGNED
Other versions: 7.31 | 7.40 | 7.54
Syntax
... <fs> IS [NOT] ASSIGNED ...
Effect
This predicate expression checks whether a memory area is assigned to a field symbol <fs>
.
The expression is true if the field symbol points to a memory area. <fs>
expects a field symbol declared using
FIELD-SYMBOLS or declared inline using FIELD-SYMBOL(
).
If the addition NOT
is used, the expression is true if no memory area is assigned to the field symbol.
Example
Assigns a data object to a field symbol if no memory area has been assigned yet.
FIELD-SYMBOLS <fs> TYPE c.
...
IF <fs> IS NOT ASSIGNED.
ASSIGN 'Standard Text' TO <fs>.
ENDIF.
...