Application Development 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: 

about SAP memory and ABAP memory..

former_member198892
Participant
0 Kudos

Hi,

Could u tell me, what is SAP-Memory and ABAP_Memory?

Regards,

Dhanush.S.T

13 REPLIES 13

Former Member
0 Kudos

Hi ,

Here is the Definition and Syntax for it .

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.

This code is from which program you want to export to the ABAP memory:

export ist_resb to memory id 'ZPPC0122_FD'.

where ist_resb is the internal table name &

ZPPC0122_FD is the include name of my program ZPPC0122.

This code is from which program you want to import from the ABAP memory

import *ist_resb *= ist_resb from memory id 'ZPPC0122_FD'.

where ist_resb This internal table is the importing program internal table.

ist_resb This internal table is the exporting program internal table.

But remember in both the program you have defined the same internal table with same structure

Reward points if it is usefull....

Girish

Former Member
0 Kudos

Hi Dhanush.,

plz go throuogh this.

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.

Reward points if useful

Chandra

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

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,

Renjith Michael.

Former Member
0 Kudos

SAP Memory - Permanent Memory

ABAP Memory - Memory that last until the Program lasts.

awrd points if useful

Bhupal

Former Member
0 Kudos

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 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.

Regards.

Former Member
0 Kudos

Hi,

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

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

regards,

vasavi.

reward if it is helpful.

Former Member
0 Kudos

SAP memory - The transactions are between one main memory & another main memory.

Here we use SET PARAMETER & GET PARAMETER.

ABAP memory - The transactions are between the internal sessions.For one main session there are six

internal sessions. Here we use IMPORT & EXPORT.

Have a nice day. bye.

0 Kudos

Hi Soumya,

Could u tell me about Main internal session and internal session..Plz

Regards,

Dhanush.S.T

0 Kudos

Hi,

Main session is the session you open your program or transaction. Internal sessions are the sessions opened from navigated from the main session.

However the number of sessions can be managed by the BASIS people for performance reasons. So there can be less number of sesion you can open in your server.

Regards,

Renjith Michael.

0 Kudos

Main Session means session started by using /otcode or using icon create new session at the top of window or think this as new window.

Internal session means.

think you have one program which is calling another program using submit. it means that your program internally starting another session, this is only example , it may be call transaction statement used for generating internal session. in this case u can use ABAP Memory Between internal Sessions.

where as SAP Memory is Global and used for different Main Sessions or windows as i said earlier.

Former Member
0 Kudos

hi,

The above given answer is adequate.

bye.

Former Member
0 Kudos

Hi Dhanush,

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.

also follow the links in sdn for diff b/w both

Hope this help u

Reward points if useful

Regards,

Sreenivas