Skip to content

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 ASSIGNED

Other versions: 7.31 | 7.40 | 7.54

Syntax


... <fs> IS [NOT] ASSIGNED ...

Effect

The logical 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. For <fs>, a field symbol specified with FIELD-SYMBOLS must be declared .

With the addition NOT, the expression is true if no memory area is assigned to the field symbol.


Example

Assignment of 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. 

...