FREE - Release memory occupied by an internal table

Basic form

FREE itab.

Effect

Releases the memory space needed to process the internal table itab.

Example

Release internal table ITAB after processing:

DATA : BEGIN OF ITAB OCCURS 10,
         NAME(10) TYPE C,
       END   OF ITAB.
ITAB-NAME = 'James'.  APPEND ITAB.
...
LOOP AT ITAB.
  WRITE ITAB-NAME.
ENDLOOP.
FREE ITAB.

Note

Performance:

The runtime needed to execute the FREE statement is approx. 5 msn (standardized microseconds).