‎2006 Dec 06 8:50 AM
‎2006 Dec 06 8:50 AM
SAP memory is the global memory which you can share through out the sessions.
SAP memory is a memory area to which all main sessions within a SAPgui have access.
You can use SAP memory either to pass data from one program to another within a session,
or to pass data from one session to another.
Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters).
These parameters can be set either for a particular user
or for a particular program using the SET PARAMETER statement.
Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement.
The most frequent use of SPA/GPA parameters is to fill input fields on screens
SAP global memomy retains field value through out
session.
set parameter id 'MAT' field v_matnr.
get parameter id 'MAT' field v_matnr.
they are stored in table TPARA.
ABAP memory
ABAP memory is a local memory within a session, which is used by a particular program.
ABAP memory is a memory area that all ABAP programs within the same internal session can access
using the EXPORT and IMPORT statements.
Data within this area remains intact during a whole sequence of program calls. To pass data
to a program which you are calling,
the data needs to be placed in ABAP memory before the call is made.
The internal session of the called program then replaces that of the calling program.
The program called can then read from the ABAP memory.
If control is then returned to the program which made the initial call, the same process operates in reverse.
ABAP memory is temporary and values are retained
in same LUW.
export itab to memory id 'TEST'.
import itab from memory Id 'TEST'.
‎2006 Dec 06 8:52 AM
Hi
Welcome to SDN...
Please check these links
https://forums.sdn.sap.com/click.jspa?searchID=304698&messageID=2489768
https://forums.sdn.sap.com/click.jspa?searchID=304698&messageID=2441465
https://forums.sdn.sap.com/click.jspa?searchID=304698&messageID=2055214
https://forums.sdn.sap.com/click.jspa?searchID=304698&messageID=1536548