‎2008 Aug 05 7:35 AM
HI ,
can i know the difference between ABAP memory and SAP memory.
thanks in Advance
‎2008 Aug 05 7:38 AM
hi jyothi,
ABAP MEMORY:
Area of memory assigned to a particular transaction and any modules called from there.
ABAP memory does not depend on the ABAP program that generates it during a transaction. This means that any object stored there can be read by any ABAP program during the same transaction.
In contrast to ABAP memory, which exists only for the life of one transaction, there is also global SAP memory, which extends beyond transaction limits.
SAP MEMORY:
Global, user-related memory that extends beyond transaction limits.
Access to the SAP memory is via SPA/GPA parameters.
i think this will help u
Regards,
sindhu Gullapalli
‎2008 Aug 05 7:36 AM
‎2008 Aug 05 7:37 AM
‎2008 Aug 05 7:37 AM
Hi,
ABAP memory is the memory which is shared by Internal Sessions of an External Session.
But SAP memory is Shared by the External Session.
http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm
http://help.sap.com/saphelp_nw04/Helpdata/EN/fc/eb2d40358411d1829f0000e829fbfe/content.htm
Regards,
Sujit
‎2008 Aug 05 7:37 AM
‎2008 Aug 05 7:38 AM
hi jyothi,
ABAP MEMORY:
Area of memory assigned to a particular transaction and any modules called from there.
ABAP memory does not depend on the ABAP program that generates it during a transaction. This means that any object stored there can be read by any ABAP program during the same transaction.
In contrast to ABAP memory, which exists only for the life of one transaction, there is also global SAP memory, which extends beyond transaction limits.
SAP MEMORY:
Global, user-related memory that extends beyond transaction limits.
Access to the SAP memory is via SPA/GPA parameters.
i think this will help u
Regards,
sindhu Gullapalli
‎2008 Aug 05 7:38 AM
Hi!
Search in SDN itself , You'll get several threads on ABAP and SAP memory. Always search for the solution before asking any question.
Regards
Abhijeet
‎2008 Aug 05 7:38 AM
‎2008 Aug 05 7:38 AM
Hi,
ABAP memory is specific to an External session (Gui window) whereas SAP memory is specific to a User session.
I.e Once we logon, a user session is created. This user session can have multiple external sessions each of which share a common memory which is SAP memory.
This enables programs in different external sessions or windows to share data.
One the other hand each external session / window can have multiple internal sessions which share a memory between them which is ABAP meomory..
Regards,
Sagar
‎2008 Aug 05 7:39 AM
Hi ,
SAP memory is avaialble to all external sessions,i.e, it is not specific to a single session ,it belongs to all sessions.SAP memory is commited after all the dialogs ar e commited,
Whereas ABAP memory is specific to one session of SAP and is normally used for passing data between programs. In ABAP memory you can store from simple variables to complex structures and even objects, where as in sap memory you can only store single values.ABAP memory is for induvidual screens.
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.
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.
Regards.
Eshwar.
‎2008 Aug 05 7:39 AM
Hi
Go through the link given below :
http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm
With Regards
Nikunj shah
‎2008 Aug 05 7:42 AM
Hi,
ABAP memory is local memory i.e it is logon specific and transaction specific.(once user logout or he is out of transaction he cant access data)
Ex:Import and Export.
Sap memory is global memory i.e once if u hold valu based on sap memory we can pass that value to other transaction or to any session.(Not logon specific).
Ex:set parameter and get parameter