‎2006 Sep 28 7:06 AM
hi all,
can anybody tell me what is the function of 'memory id' in selection screen.
we have in one report:
select-options:
rg_zl for vbak-kunnr memory id vag,<----
then afterwards used:
select single *
from vbpa
into wa_zlvbpa
where vbeln = lv_vbeln
and posnr = lv_posnr
and parvw = 'ZL'.
check wa_zlvbpa-kunnr in rg_zl.<----
please help me understand this .
‎2006 Sep 28 7:07 AM
MEMORY ID U CAN MAKE IN TABLE <b>TPARA</b> USING SM30
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
‎2006 Sep 28 7:09 AM
Hi Kunal,
The purpose is to allocate a cluster/memory area to YOUR SESSION. Once you allocate a memory, you can dump the values which are required across different programs.
Say Report 1 wants to pass PLANT paramter to REPORT 2.
SO Report 1 will save it on the Memory ID. Report 2 will retrieve the Plant from that Memory ID.
Its a Unique key to refer to a memory area.
Best regards,
Prashant