CLEAR - WITH NULL
Short Reference
ABAP Syntax(Obsolete) CLEAR dobj WITH NULL.
What does it do? This variant of the statement CLEAR
, 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.
Latest notes: The addition 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.
Bad example
CLEAR f WITH NULL.
Good example
CONSTANTS hex TYPE x LENGTH VALUE IS INITIAL.
CLEAR f with hex.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved