Memory ID refers to the use of ABAP Memory which is specific to an external session(window). When you have multiple sessions open, each of the concurrent sessions(windows) has it's own ABAP Memory.
ABAP Memory can thus, only be used to share data between internal sessions, that is programs/transactions that have been called by other programs/transactions in the same external session(window).
ABAP memory is cleared(and correspondingly all Memory IDs), when the session is deleted(window is closed), not when the transaction ends. The only exception to this rule when a transaction ends through the use of
LEAVE TO TRANSACTION
which is when the entire external session is flushed and the ABAP Memory is cleared.
basically there are 2 memory
SAP Memory and ABAP Memory
Sap memory.
set parameter/ get parameter
Abap memory
The EXPORT TO MEMORY and IMPORT FROM MEMORY
using this we can export data from one pgm & can use in another by importing is
http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e0435c111d1829f0000e829fbfe/content.htm
Add a comment