Skip to content

ABAP Keyword Documentation →  ABAP - Quick Reference 

CLEAR - Quick 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 the type-dependent initial value.

Additions

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