Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

FREE MEMORY

Former Member
0 Kudos

Hi,

I have 1,00,000 records in a internal table. I am taking 1000 records at a time in a LOOP and processing continues.

Now, when the program processes a set of 1000 records in a LOOP, I want the BUFFER MEMORY AREA allocated to the program to be freed.

Does ABAP Staement FREE MEMORY(no extension) statement solve my issue?

What does FREE MEMORY does actually? When used in a Program, does it free all the memory area allocated for the program during its run time?

Thanks,

Shivaa.........

4 REPLIES 4

Former Member
0 Kudos

Ok, I found this information ......

      • FREE MEMORY deletes the entire ABAP memory .

Entire ABAP memory in the sense, the ABAP memory allocated to the program or something else?

0 Kudos

FREE MEMORY deletes all the data clusters from the ABAP memory.(same as DELETE from MEMORY)

Regards,

Sagar

former_member156446
Active Contributor
0 Kudos

when I read the sap help of Free memory it say to use the addition ID else it recommanded to use DELETE FROM { {MEMORY ID id} write these statments in ABAP editor and hit F1 by placing cursor on this words and it will guide you better,, who else can guide you better than SAP help.

Former Member
0 Kudos

Hi Shiva,

ABAP Memory

The EXPORT ... TO MEMORY statement copies any number of ABAP data

objects with their current values to a data cluster in the ABAP memory. The ID

addition (maximum 60 characters long) enables you to identify different clusters.

If you use a new EXPORT TO MEMORY statement for an existing data cluster, the

new one overwrites the old one. The IMPORT ... FROM MEMORY ID ...

statement allows you to copy data from ABAP memory into the corresponding

fields of your ABAP program.

You can also restrict the selection to a part of the data cluster in the IMPORT

statement. The variables into which you want to read data from the cluster in

ABAP memory must have the same types in both the exporting and the importing

programs.

You use the FREE MEMORY ID ... statement to release a data cluster

explicitly.

Along with that We have a similar post here and check this thread for a reference,

Thanks & regards,

Dileep .C