FREE MEMORY ID id.
This statement has the same effect as the statement
The use of
FREE MEMORY without the addition
obsolete. While the statement
ID involves only one data cluster, in this case all clusters
are involved. It is safest to use the statement
DELETE FROM, because here the addition
ID is mandatory.
Deletes the data cluster with the ID demo from the ABAP memory.
DATA(dobj) = `xxx`. EXPORT contents = dobj TO MEMORY ID 'demo'. IMPORT contents = dobj FROM MEMORY ID 'demo'. ASSERT sy-subrc = 0. FREE MEMORY ID 'demo'. IMPORT contents = dobj FROM MEMORY ID 'demo'. ASSERT sy-subrc = 4.