2009 Jul 07 1:20 PM
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
2009 Jul 07 1:23 PM
2009 Jul 07 1:32 PM
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
2009 Jul 07 1:49 PM
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
2009 Jul 07 1:55 PM
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.
2009 Jul 07 2:00 PM
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