04-09-2009 8:50 PM
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.........
04-09-2009 8:56 PM
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?
04-09-2009 9:01 PM
FREE MEMORY deletes all the data clusters from the ABAP memory.(same as DELETE from MEMORY)
Regards,
Sagar
04-09-2009 9:47 PM
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.
04-10-2009 3:41 AM
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