Memory Mangment Notes
Memory Mangment Notes
Types Of Memory
2. User memory
User Memory is the memory that is allocated for each user who is logged in. A user session is
assigned its own memory area of the user memory, in which SPA/GPA parameters can be
stored.SPA/GPA parameters are set using SET PARAMETER and read using GET
PARAMETER.
3. 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.
External session: - when user logs on to R/3 system, the system Creates a new terminal session called
external session. E.g. System Session.
Internal session: - created by calling a transaction (with CALL TRANSACTION), a dialog module (with
CALL DIALOG) or a report (with SUBMIT or RETURN).
SUBMIT Keyword
SUBMIT is a keyword which is used to call a executable program (ABAP program) from another
program.
********************************************************************************
EXAMPLE:
REPORT YSP_0137 .
DATA : NAME2(10) TYPE C. IMPORT NAME1 TO NAME2 FROM MEMORY ID 'MEM1'. WRITE
NAME2.
****************************OUTPUT **************
export and import
ex and im
***********************************************************************************
4. SAP MEMORY
o SAP memory is global memory, all SAP GUI sessions have access.
o SAP memory either to pass data from one program to another within a session, or to pass data
from one session to another.
o Application programs that use SAP memory must do so using SPA/GPA parameters (also
known as SET/GET parameters).
o These parameters can be set either for a particular user or for a particular program using the
SET PARAMETER statement.
o Other ABAP programs can then retrieve the set parameters using the GET PARAMETER
statement.
EXAMPLE:
DATA TEXT1(30) TYPE C VALUE 'SET AND GET PARAMETER'.
SET PARAMETER ID 'MEM' FIELD TEXT1.