01-08-2008 9:40 AM
Hi,
Could u tell me, what is SAP-Memory and ABAP_Memory?
Regards,
Dhanush.S.T
01-08-2008 9:43 AM
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
01-08-2008 9:43 AM
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
01-08-2008 9:44 AM
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.
01-08-2008 9:45 AM
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.
01-08-2008 9:45 AM
SAP Memory - Permanent Memory
ABAP Memory - Memory that last until the Program lasts.
awrd points if useful
Bhupal
01-08-2008 9:47 AM
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.
01-08-2008 9:49 AM
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.
01-08-2008 10:58 AM
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.
01-08-2008 11:07 AM
Hi Soumya,
Could u tell me about Main internal session and internal session..Plz
Regards,
Dhanush.S.T
01-08-2008 11:23 AM
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.
01-08-2008 1:30 PM
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.
01-08-2008 1:13 PM
01-08-2008 1:41 PM
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