INCLUDE
ARTICLE
Cannot Use CLEAR WITH NULL
The statement CLEAR WITH NULL is not permitted in ABAP Objects.
Error message in ABAP Objects if the following syntax is used:
CLEAR f WITH NULL.
Correct syntax:
CONSTANTS hex(1) TYPE x VALUE IS INITIAL.
CLEAR f with hex.
Reason:
Initialization with an incompatible type must be avoided. If required,
the statement CLEAR WITH NULL can be replaced by the above
sequence of statements.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved