ABAP FREE statement – Release space in memory

FREE statement in ABAP programming is sued for releasing the space in memory occupied by internal tables, objects etc.

See the usage and syntax of FREE statement

Syntax

  1. FREE itab
  2. This statement will initialize the internal table by deleting all the body contents and memory occupied by that table. Remember one thing that after this statement the Internal table can still access and it occupies the memory for its header.

  3. FREE MEMORY ID(<key>).
  4. This statement is used for deleting a data cluster in memory.

  5. FREE OBJECT <obj>.
  6. This statement is used for deleting the OLE2_OBJECT type objects.

Also Read : View Other ABAP Keywords & Syntax -> ABAP Transaction codes