Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

difference between memory

Former Member
0 Likes
1,259

HI ,

can i know the difference between ABAP memory and SAP memory.

thanks in Advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,230

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

11 REPLIES 11
Read only

bpawanchand
Active Contributor
0 Likes
1,230

HI

Welcome To SDN

[Difference Between SAP and ABAP Memory|http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm]

[Sample Code To Differentiate Both Memories|]

Regards

Pavan

Read only

Former Member
0 Likes
1,230

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

Read only

Former Member
0 Likes
1,230

Hi Jyothi,

Check this link.

Regards,

Chandra Sekhar

Read only

Former Member
0 Likes
1,231

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

Read only

Former Member
0 Likes
1,230

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

Read only

Former Member
0 Likes
1,230

Jyothi,

Just refer:

[Please use|;

[SDN search option|;

Amit.

Read only

Former Member
0 Likes
1,230

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

Read only

Former Member
0 Likes
1,230

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.

Read only

Former Member
0 Likes
1,230

Hi

Go through the link given below :

http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm

With Regards

Nikunj shah

Read only

Former Member
0 Likes
1,230

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