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
- FREE itab
- FREE MEMORY ID(<key>).
- FREE OBJECT <obj>.
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.
This statement is used for deleting a data cluster in memory.
This statement is used for deleting the OLE2_OBJECT type objects.
Also Read : View Other ABAP Keywords & Syntax -> ABAP Transaction codes