To check whether a field is assigned to a field symbol, use the following logical expression:
... <FS> IS ASSIGNED.
The expression is false if the
field symbol <fs> is not explicitly assigned to a field, that is, in the following cases:
FIELD-SYMBOLS <FS>.
DATA TEXT(10) TYPE C VALUE 'Assigned!'.
ASSIGN TEXT TO <FS>.
IF <FS> IS ASSIGNED.
WRITE <FS>.
ENDIF.
The output is:
Assigned!
since the logical expression in the IF statement is true.