2015 Dec 05 5:48 PM
Hi,
How to clear or free the sap memory during the run time?
I have tried few scenarios.
REPORT ZSAP_MEMORY.
DATA : VALUE1(30) TYPE C VALUE 'SAP MEMORY'.
PARAMETER : MATNR TYPE MARA-MATNR.
SET PARAMETER ID 'MEM' FIELD VALUE1.
FREE MEMORY ID 'MEM'.
DELETE FROM MEMORY ID 'MEM'.
I have tried this below method using space, it is working fine. but i am sure this is not the correct way.
SET PARAMETER ID 'MEM' FIELD ' '.
please suggest.
Regards,
MOHANA
2015 Dec 06 7:48 AM
Hi,
You can clear the field value and SET again..
Clear: lv_field
SET PARAMETER ID 'MEM' field lv_field.
2015 Dec 06 9:51 AM
Hi
You can clear the value of the parameter
SET parameter ID 'MEM' field SPACE.
Regards
2015 Dec 06 1:36 PM
Hi Mohana,
I'm usually preferring the
EXPORT value1 TO MEMORY ID 'MEM'.
statement, instead of the SET PARAMETER ID 'MEM' FIELD value1.
After that, to clear the ABAP memory, I'm using
DELETE FROM MEMORY ID 'MEM'.
Thanks and regards,
Flavio
2015 Dec 06 3:10 PM
as per my requirement I would like to use only sap memory not abap memory
let me know how to clear sap memory?
2015 Dec 06 4:14 PM
Hi Mohana,
I see.... sorry for the misunderstanding.
I would then use SET PARAMETER ID 'MEM' FIELD space.
Thanks and regards,
Flavio