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

general

Former Member
0 Likes
949

what is sap memory and abap memory

5 REPLIES 5
Read only

Former Member
0 Likes
584

Hi,

Memory Structures of an ABAP Program

In the Overview of the R/3 Basis System you have seen that each user can open up to six R/3 windows in a single SAPgui session. Each of these windows corresponds to a session on the application server with its own area of shared memory.

The first application program that you start in a session opens an internal session within the main session. The internal session has a memory area that contains the ABAP program and its associated data. When the program calls external routines (methods, subroutines or function modules) their main program and working data are also loaded into the memory area of the internal session.

Only one internal session is ever active. If the active application program calls a further application program, the system opens another internal session. Here, there are two possible cases: If the second program does not return control to the calling program when it has finished running, the called program replaces the calling program in the internal session. The contents of the memory of the calling program are deleted. If the second program does return control to the calling program when it has finished running, the session of the called program is not deleted. Instead, it becomes inactive, and its memory contents are placed on a stack.

The memory area of each session contains an area called ABAP memory. ABAP memory is available to all internal sessions. ABAP programs can use the EXPORT and IMPORT statements to access it. 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.

All ABAP programs can also access the SAP memory. This is a memory area to which all 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 are often used to preassign values to input fields. You can set them individually for users, or globally according to the flow of an application program. SAP memory is the only connection between the different sessions within a SAPgui.

Regards,

Omkar.

Read only

Former Member
0 Likes
584

Hi,

SAP memory: is a global memory ,it mean its is USER logon specific and Transaction specific.

Parameters for SAP memory are Set parameter id , get parameter id, SPA, GPA .

ABAP memory: is local memory,

paremeters for abap memory are import & export.

Revert back if any issues.

Reward with points if helpful.

Regards,

Naveen

Read only

Former Member
0 Likes
584

Hi,

<b>SAP Memory</b>

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 (see below).

<b>ABAP Memory</b>

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. For further information

Regards,

Padmam.

Read only

Former Member
0 Likes
584

Hi Manjula,

<b>SAP Memory</b>

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

<b>ABAP/4 Memory</b>

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.

Difference between SAP memory and ABAP memory.

[Removed by the moderator.]

Hope it helps you.

<b>Regards,

Jackie..</b>

Read only

Former Member
0 Likes
584

Hi,

<u><b>ABAP Memory:</b></u>

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. For further information, refer to Data Clusters in ABAP Memory.

ABAP Memory is a memory area in the internal session (roll area) of an ABAP program. Data

within this area is retained within a sequence of program calls, allowing you to pass data

between programs that call one another. It is also possible to pass data between sessions

using SAP Memory.

<u><b>SAP Memory:</b></u>

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.

This is a memory area to which all sessions within a SAPgui have access. You can use SAP

memory either to pass data from one program to another within a session (as with ABAP

memory) or to pass data from one session to another.

Regards,

Bhaskar