ABAP Keyword Documentation → ABAP - Reference → Obsolete Language Elements → Obsolete Processing of Internal Data → Obsolete Assignments
CLEAR - WITH NULL
Other versions: 7.31 | 7.40 | 7.54
CLEAR dobj WITH NULL.
This variant of the statement
which is not allowed in ABAP Objects, replaces all bytes in
dobj with the value hexadecimal 0. In this case, the data object
dobj must be flat.
WITH NULL should only be used for byte-like data objects and
should therefore be replaced by the addition
CLEAR WITH val, which offers a higher degree of security in this context.
CLEAR f WITH NULL.
CONSTANTS hex TYPE x LENGTH VALUE IS INITIAL.
CLEAR f with hex.