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

Deleting SAP memory

Former Member
0 Likes
898

Hi,

I am using SAP memory. In a particular stage in my program I want to delete the same SAP memory and then want to go further.

I have tried by using statment FREE MEMORY ID <id> and DELETE FROM MEMORY ID <id>. But it is not working. When I logged off SAP then only it is deleting.

Please advice how can I delete/free the SAP memory without loging off from SAP.

Regards,

Nrusingha

Hi,

I am using SAP memory. In a particular stage in my program I want to delete the same SAP memory and then want to go further.

I have tried by using statment FREE MEMORY ID <id> and DELETE FROM MEMORY ID <id>. But it is not working. When I logged off SAP then only it is deleting.

Please advice how can I delete/free the SAP memory without loging off from SAP.

Regards,

Nrusingha

5 REPLIES 5
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
852

try with FREE MEMORY.

Read only

Former Member
0 Likes
852

Hi,

Free Memory will erase all memory, which might not exactly the thing to do.

Instead take a variable, initialize it and assign it to the SAP memory ID.

Hope it works,

RAJ

Read only

Former Member
0 Likes
852

hi

is this free memory id before commit work....check this

and did u try through debugging if control is going over this statement.

Regards

Sajid

Read only

0 Likes
852

Hi,

I am not using any commit statement in my program. Since I am using memory id it is storring in buffer and at the PBO module it is cpaturing even though I am clearing the memory.

Read only

0 Likes
852

Dear Nrusingha

1. have u written this free memory in pai?

2. what is sy-subrc value after the execution of this free memory.

May be try out all possibilities....there would be some small mistake due to which the problem may be.

Regards

Sajid