cancel
Showing results for 
Search instead for 
Did you mean: 

Freeing space of internal table during runtime ?

Former Member
0 Kudos

Hi all,

i have a table let's say with 5.000.000 records, now i loop over all records and before endloop i delete the processed row from the table so on the end the table will be empty.

Does the abap processor keep still the reserved initial size for this table until i make a free table on it ?

Or does the reserved size shrik if i delete an amaount out of this internal table ?

Thx!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

Deleting or refreshing from internal tables will not free memory.

The only command that does the job is the FREE command.

Extract from the SAP help :

For internal tables, FREE has the same effect as the REFRESH statement, though the entire memory area occupied by the table rows is released, and the initial memory area remains unoccupied. If dobj is a structure with table-like components, the memory of each table-like component is released.

Success.

Wim