2008 Feb 12 9:30 AM
what is the difference b/w abap and sap memory
2008 Feb 12 9:35 AM
We use the SAP memory and the ABAP memory to transfer data between
programs:
You can have up to six external sessions open simultaneously in one user session. External sessions are subdivided into internal sessions (like sTACK)
SAP memory is a user-specific memory area for storing field values.
Values in SAP memory are retained for the duration of the user session. SAP
memory can be used between external sessions in the same user session
There is a local ABAP memory for each
external session. You can use it to exchange any ABAP data objects (fields,
structures, internal tables, complex objects) between the internal sessions in the
same external session.
2008 Feb 12 9:35 AM
Sap memory is global
abap memory is local with in your program
Regards,
siva
2008 Feb 12 9:36 AM
Hi,
simplest diff is ABAP memory is initialized when the program end executing.....SAP memory is initialized when logged off...
so u can use SAP memory to pass data b/w 2 or more programs in a login...............
Syntax
1)set parameter id
2)get parameter id.
Cheers,
jose.
2008 Feb 12 9:38 AM
Hi,
Within a main session, when ever you start an application program, it opens up an internal sessions with in the main session. The internal session has a memory area that contains the ABAP program and its associated data. So when ever you want to pass data between two internal sessions, then you can use ABAP Memory (i.e import, export).
When comes to SAP memory (also known as global memory), if the data has to be passed b/w two main sessions, we can use SAP Memory(SPA/GPA Parameters). SAP Memory can also be used to pass data b/w internal sessions.
other reason is:
SAP Memory
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
ABAP/4 Memory
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.
SAP memory
The SAP memory, otherwise known as the global memory, is available to a user during the entire duration of a terminal session. Its contents are retained across transaction boundaries as well as external and internal sessions. The SET PARAMETER and GET PARAMETER statements allow you to write to, or read from, the SAP memory.
ABAP/4 memory
The contents of the ABAP/4 memory are retained only during the lifetime of an external session (see also Organization of Modularization Units). You can retain or pass data across internal sessions. The EXPORT TO MEMORY and IMPORT FROM MEMORY statements allow you to write data to, or read data from, the ABAP memory.
reward if helpful,
kushagra.
2008 Feb 12 9:50 AM
hi,
Hai,
1. SAP memory is for cross-transaction Applications and ABAP/4 memory is transaction-specific.
2. The SAP memory, otherwise known as the global memory, is available to a user during the entire duration of a terminal session. Its contents are retained across transaction boundaries as well as external and internal sessions.ABAP Memory is Local Memory. The contents of the ABAP/4 memory are retained only during the lifetime of an external session. You can retain or pass data across internal sessions.
3. The SET PARAMETER and GET PARAMETER statements allow you to write to, or read from, the SAP memory. The EXPORT TO MEMORY and IMPORT FROM MEMORY statements allow you to write data to, or read data from, the ABAP memory.
External session: - when user logs on to R/3 system, the system creates a new terminal session called external session. E.g. System  Create Session.
Internal session: - created by calling a transaction (with CALL TRANSACTION), a dialog module (with CALL DIALOG) or a report (with SUBMIT or RETURN).
For External Sessions, Internal Sessions are available.