Skip to content

ABAP Keyword Documentation →  ABAP − Short Reference 

CLEAR - Short Reference

Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


 CLEAR dobj [ {WITH val [IN {CHARACTER|BYTE} MODE]} 
           | {WITH NULL} ].

Effect

Initializes a data object dobj by assigning an appropriately typed initial value.

Additions

  • WITH val
    Fills the data object with the val specified in characters or bytes.
  • IN {CHARACTER|BYTE} MODE
    Specifies either character or byte processing
  • WITH NULL
    Obsolete: Replaces all the bytes in dobj with the hexadecimal value 0.