You are on page 1of 1

Application Server (Instance)

SAP ABAP Memory Usage - R/3 4.6C


Notes: Term Ses
1

Shared Application Buffer


Terminal Session

SAP Memory - GET/SET PARAMETERS


External Session
Ext Ses
ABAP Mem

SAP Mem
2

ABAP code can access data objects in ABAP Program Memory. This includes all data objects defined with DATA but excludes objects using TABLES or DATA COMMON. (see note 2)

ABAP code can access data objects in Program Group Memory. This includes all data objects defined with TABLES or DATA COMMON. (see note 1)

ABAP Memory - EXPORT/IMPORT


Internal Session Program Group Pgm Grp
Int Ses

Parameters defined using FORM...USING.. and data objects defined in the FORM using DATA, are accessible only from the FORM. Function Module parameters and data objects defined in the Module using DATA, are accessible only from the Function Module.

Pgm Grp Mem-TABLES,COMMON


2 2

Pgm...
11 5

A subroutine (FORM...) in an ABAP Program can access data objects defined in ABAP Program Memory (see Note 1) as long as the FORM has not defined a parameter or data object with the same name as a data object in ABAP Program Memory. Data defined with LOCAL in the FORM will NOT be available from ABAP Program Memory. The same relationship exists for Global Function Group Memory and a Function Module in a Function Group(red).

ABAP Program

ABAP Program

Func Grp
Global Func...
5 6

A subroutine (FORM...) in an ABAP Program can access data objects defined in Program Group Memory (see Note 2) as long as the FORM has not defined a parameter or data object with the same name as a data object in Program Group Memory. Data defined with LOCAL in the FORM will NOT be available from Program Group Memory. The same relationship exists for Program Group Memory and a Function Module in a Function Group.

Pgm Mem
1 5

Pgm Mem
1 4

FORM ...

FORM Mem
3

FORM ...

IMP.. MEM

GET PARM. .

IMPORT.. SHARED..

ABAP code can EXPORT...TO MEMORY, and IMPORT... FROM MEMORY, using ABAP Memory which is shared across all Internal Sessions(blue) of an External Session(red). An External Session is a separate task that runs on your presentation server. It is another window into the R/3 system. An External Session can be started by entering /O in the command box. SET PARAMETER... and GET PARAMETER... can be used by an ABAP to access SAP Memory which is shared across a Terminal Session(yellow). A Terminal Session is the collection of all External Sessions(red) for a user currently in use on a presentation server.

FORM Mem
3 4 6

Legend
Data Access Pass Control

A CALL FUNCTION... command starts a new Program Group(yellow), with a Function Group(red) in the same Internal Session(blue) with it's own Program Group Memory.

An External PERFORM starts a new ABAP Program Group(green) within the current Program Group(yellow).

EXPORT ...MEM SET PARM... CALL FUNCTION


7 8 11

FUNCTION... EXPORT.. SHARED..

FUNC ..
3 6

10

SUBMIT...AND RETURN and CALL TRANSACTION start a new Internal Session(blue).

PERFORM(external) SUBMIT(Return) CALL TRANSACTION


10 10

IMPORT... /O
6

Created by: Charles Folwell 01/10/2005 v2.4


cfolwell@csc.com

11

The Shared Application Buffer of the Application Server Instance(green) can be accessed using EXPORT...SHARED and IMPORT...SHARED. This feature is new with 4.6. According to SAP's documentation, this memory may be purged when space is needed.

You might also like