Application Development and Automation 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: 
Read only

FREE MEMORY Vs DELETE MEMORY????

Former Member
0 Likes
4,126

Hi Experts,

I hv 3 statemets,

1) DELETE FROM MEMORY ID key

2) - FREE OBJECT obj

3) - FREE OBJECT.

Actually, I am using,

IMPORT flag FROM MEMORY ID 'ZP1'.

So,

1) Which one from 1, 2 or appropriate?

2) May I know the difference pls. I guess, 1 & 2 r almost similar in functionality!(sorry, if am wrong)

thanq.

1 ACCEPTED SOLUTION
Read only

Former Member
1,167

Hi,

IMPORT flag FROM MEMORY ID 'ZP1'.

So,

1) Which one from 1, 2 or appropriate?

Perhaps you want to use FREE MEMORY ID 'ZP1' instead.

2) May I know the difference pls. I guess, 1 & 2 r almost similar in functionality!(sorry, if am wrong)

DELETE FROM MEMORY ID key

This syntax does not exits.

FREE OBJECT <obj>.

This will release the storage space required for the object obj. The object can then no longer be processed.

Regards,

Ferry Lianto

5 REPLIES 5
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,167

You want number 1 if using the IMPORT/EXPORT statement.

Regards,

Rich Heilman

Read only

Former Member
1,168

Hi,

IMPORT flag FROM MEMORY ID 'ZP1'.

So,

1) Which one from 1, 2 or appropriate?

Perhaps you want to use FREE MEMORY ID 'ZP1' instead.

2) May I know the difference pls. I guess, 1 & 2 r almost similar in functionality!(sorry, if am wrong)

DELETE FROM MEMORY ID key

This syntax does not exits.

FREE OBJECT <obj>.

This will release the storage space required for the object obj. The object can then no longer be processed.

Regards,

Ferry Lianto

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,167

2 and 3 referr to OLE programming, such as when manipulating excel spreadsheet.

Regards,

RIch HEilman

Read only

Former Member
0 Likes
1,167

Delete from memory:-

Release an area in the ABAP/4 memory .

Free Object :

Release the memory occupied by an external object This is more for OLE objects like Excel.

From the look of it you need to use Delete Memory.

Hope this helps.

Read only

0 Likes
1,167

I actually can not find the document for DELETE MEMORY. I think Ferry is right about using the FREE MEMORY and not DELETE MEMORY. Unless you are talking about the shared buffer, for this there is a DELETE statement.

<i>Delete a data cluster from the cross-transaction application buffer

- DELETE FROM SHARED BUFFER dbtab(ar) ...ID key.</i>

Regards,

RIch Heilman