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 sap memory and abap memory

Former Member
0 Likes
1,238

What is the difference between sap memory and abap memory

Regards

1 ACCEPTED SOLUTION
Read only

ak_upadhyay
Contributor
0 Likes
796

Hi,

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 points if useful....

Regards

AK

4 REPLIES 4
Read only

ak_upadhyay
Contributor
0 Likes
797

Hi,

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 points if useful....

Regards

AK

Read only

Former Member
Read only

Former Member
0 Likes
796

Hi,

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.

With Rgds,

S.Barani

Read only

Former Member
0 Likes
796

THat's an extract from SAP standard documentation

ABAP Memory and SAP Memory

It is often necessary to transfer data between two different programs. However, it

is not always possible to specify this data as an addition in the program call. In

such cases, you can use the SAP memory and the ABAP memory to transfer

data between programs:

• SAP memory is a user-specific memory area for storing field values. It is

therefore not that useful for passing data between internal sessions.

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

external sessions of a user session can access SAP memory.

You can use the contents of SAP memory as default values for screen fields.

• ABAP memory is also user-specific. 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.

When the user exits an external session (/i in the command field), the

corresponding ABAP memory is automatically initialized or released.

ABAP Memory

The EXPORT ... TO MEMORY statement copies any number of ABAP data

objects with their current values to a data cluster in the ABAP memory. The ID

addition (maximum 60 characters long) enables you to identify different clusters.

If you use a newEXPORT TO MEMORY statement for an existing data cluster, the

new one overwrites the old one. The IMPORT ... FROM MEMORY ID ...

statement allows you to copy data from ABAP memory into the corresponding

fields of your ABAP program.

You can also restrict the selection to a part of the data cluster in the IMPORT

statement. The variables into which you want to read data from the cluster in

ABAP memory must have the same types in both the exporting and the importing

programs.

You use the FREE MEMORY ID ... statement to release a data cluster

explicitly.

Caution: When you call programs using transaction codes, you can only

use the ABAP memory to pass data to the transaction in the insert case

(CALL TRANSACTION) .

SAP Memory

You can define memory areas (parameters) in SAP memory in various ways:

• By creating input/output fields with reference to the ABAP Dictionary. These

take the parameter names from the data elements to which they refer.

Alternatively, you can enter a name in the attributes of the input/output

fields. Then, you can also choose whether the entries from the field should

be transferred to the parameter (SET), or whether the input field should be

filled with the value from the parameter (GET).

To find out about the names of the parameters assigned to input fields, display

the field help for the field with the (F1) key and choose Technical info.

• You can also fill the memory areas directly with the SET PARAMETER ID

’PAR_ID’ FIELD var. statement and read from them with the GET

PARAMETER ID ’PAR_ID’ FIELD var. statement.

• Finally, you can define parameters in the Object Navigator and the user can

specify user specific default values.