SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
Cannot Use CLEAR WITH NULL
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.