Get Example source ABAP code based on a different SAP table
ID CLEAR-WITH-NULL • WITH NULL CLEAR (obsolete)
CLEAR>, WITH NULL> Short Reference >
ABAP_SYNTAX_OBS 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. ABAP_HINT_END
ABAP_EXAMPLE_BAD CLEAR f WITH NULL.> ABAP_EXAMPLE_END
ABAP_EXAMPLE_GOOD CONSTANTS hex TYPE x LENGTH VALUE IS INITIAL. CLEAR f WITH hex.> ABAP_EXAMPLE_END