Show TOC

Functions of the SAP Memory Management SystemLocate this document in the navigation structure

Prerequisites

You must be familiar with basic terminology related to memory management.

You can find a summary of the terms in Memory Management: Basic Terms.

Features

An application runs in an SAP work process where an ABAP program is normally executed. The process requires memory to do this, which is allocated to the process by the memory management system. The order in which the work process is assigned the memory type depends on the work process type, either dialog or non-dialog (see SAP Memory Types), and the underlying operating system.

The location of the various memory areas in the virtual address space is explained in Virtual Address Space of a Work Process.

The user context area that allows direct access can be extended as required when the size of the user context increases. For dialog work processes, the data of the user context, including internal tables is located in this expanded area. You can therefore access all the data in the user context. Only data of types extract and export to memory still remain in SAP Paging.

The SAP Roll Area is used for the initial memory assigned to a user context, and (if available) for additional memory if the expanded memory is full.

The following diagram displays the memory types that can be assigned to R/3 work processes on the SAP and operating system level. Here are the most important system profile parameters that control the availability of the memory types.

Whenever a dialog step is executed, a roll action occurs between the roll buffer in the shared memory and the memory area, which is allocated according to ztta/roll_first in a dialog process. Then the area in the shared memory is accessed that belongs to this user context.

The following graphic displays the roll process performed by the dispatcher.

  • Roll-in: cross-user data is rolled in from the common resource in the work process (and is processed there).

  • Roll-out: User-specific data is rolled out from the work process in the common resource (after the dialog step has ended).

The common resource stands for the different SAP memory types.

Using the VM Container

If the SAP Virtual Machine Container is active in your system, Java programs can also be executed. Memory management has been extended for this.

For more information, see Memory Management in the VM Container