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

Differences b/t SAP Memory and ABAP Memory

Former Member
0 Likes
624

Please let me know the Differences b/t SAP Memory and ABAP Memory

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
577

Hi,

Check this link

<b>ABAP Memmory & SAP Memmory</b>

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

<b>Reward Points and Mark Helpful Answers</b>

Hi,

Check this link

<b>ABAP Memmory & SAP Memmory</b>

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

<b>Reward Points and Mark Helpful Answers</b>

3 REPLIES 3
Read only

Former Member
0 Likes
577

Hi,

<b>SAP and ABAP Memory</b>

There is a difference between the cross-transaction SAP memory and the transaction-specific ABAP memory.

<b>Global SAP memory</b>

The global SAP 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.

Input fields on screens can be linked with parameters in the SAP memory, which allows you to preassign values to the input fields on initial screens.

With general screens, the linking takes place during the definition of the screen using the Screen Painter tool. When setting the field attributes of an input field, you can specify the ID of an SPA/GPA parameter in the Parameter-ID attribute. In the checkboxes SET Parameter and GET Parameter you can specify whether the screen field is filled with the value of the SPA/GPA parameter at the time of PBO or whether the SPA/GPA parameter is filled with the user input on the screen at the time of PAI.

With selection screens, the linking is carried out using the MEMORY ID addition to the PARAMETERS or SELECT-OPTIONS statement. If you specify an SPA/GPA parameter ID, when declaring a parameter or selection criterion, the relevant input field is linked with the parameter.

<b>Local SAP memory</b>

The local SAP memory is available to the user throughout a transaction, within which you can also call other program units, for example using SUBMIT or CALL TRANSACTION. With SET PARAMETER you write to both the global and the local SAP memory. If the global SAP memory is changed by an external mode of the same user, the local SAP memory remains unchanged. This ensures that parameters set in the frame of a transaction remain unchanged until the end of this transaction. The local SAP memory is deleted after the transaction is ended.

<b>ABAP memory</b>

The contents of the ABAP 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.

Please consult Data Area and Modularization Unit Organization documentation as well.

and

Memory Structures of an ABAP Program

<b>Reward Points and Mark Helpful Answers</b>

Read only

Former Member
0 Likes
577

Hi,

<b>Checkout the link :</b>

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

Using SAP memory. User-specific memory retained for the duration of the session. Can only be used for simple field values.

Using ABAP memory. Can be used to transfer data between internal modi. Can be used to transfer any ABAP/4 variables ( Fields, strings, internal tables, complex objects)

SAP memory

You use the SPA/GPA parameters to pass data. These paramters are saved globally in memory. The paramters are indetified by a three-character code.

In dialog programs you can SET and GET these parameters in the attribute window of the screen field, by marking the SET and GET fields and put the name of the parameter in the ParameterId field.

In a program ( Dialog or Report ) you can use the GET PARAMETER and SET PARAMETER statements:

set parameter id 'RV1' field <fieldname>

get parameter id 'RV1' field <fieldname>

rgds,

latheesh

Message was edited by: Latheesh Kaduthara

Read only

Former Member
0 Likes
578

Hi,

Check this link

<b>ABAP Memmory & SAP Memmory</b>

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

<b>Reward Points and Mark Helpful Answers</b>