ABAP Keyword Documentation →  ABAP − Reference →  Creating Objects and Values →  Shared Objects →  Shared Objects - Classes and Interfaces → 

Shared Objects - CL_ABAP_MEMORY_AREA

The CL_ABAP_MEMORY_AREA class is the common superclass of all area classes. It contains general methods for area handles.

Static Methods

GET_HANDLE_BY_OREF

Gets the area handle for an instance of a class. The instance can be in the shared memory or within the internal session.

Input parameter

Reference to the instance of a class.

Return value

Reference to the area handle of the corresponding area instance version. Typing means that essentially this reference is only suitable for creating objects.

GET_HANDLE_BY_DREF

Gets the area handle for a data object. The data object can be in the shared memory or within the internal session.

Input parameter

Reference to a data object in the shared memory.

Return value

Reference to the area handle of the corresponding area instance version. Typing means that essentially this reference is only suitable for creating objects.

GET_HANDLE_BY_DATA

Gets the area handle for a data object. The data object can be in the shared memory or within the internal session.

Input parameter

Data object in the shared memory. This can be specified as a field symbol, for example, which refers to a dereferenced data object in the shared memory.

Return value

Reference to the area handle of the corresponding area instance version. Typing means that essentially this reference is only suitable for creating objects.

Instance Methods

IS_SHARED

Checks whether the area handle represents an area instance version in the shared memory, or whether it represents the current internal session.

Return value

ABAP_TRUE if an area instance version is represented in the shared objects memory, and ABAP_FALSE if the current internal session is represented.

IS_VALID

Checks whether the area handle can be used to access an area instance version in the shared memory, or whether the current internal session is accessed.

Return value

ABAP_TRUE if the area handle is used to access an area instance version or the current internal session; otherwise ABAP_FALSE.

IS_ACTIVE_VERSION

Checks whether the area handle refers to the active area instance version.

Return value

ABAP_TRUE if the current area instance version or the internal session is represented. ABAP_FALSE if an obsolete area instance version is represented, the area handle was already released, or if it is a change handle.

HAS_ACTIVE_PROPERTIES

Checks whether the area’s current dynamic properties match the properties of the area instance version that is represented:

Return value

ABAP_TRUE if the area’s dynamic properties have not been changed since the current area instance version was built, or if the current internal session is represented. Otherwise, or if the area handle was already released, ABAP_FALSE.

GET_DETACH_INFO

Determines the reason for an invalid area handle.

Return value

The return value can be compared with one of the following constants of class CL_ABAP_MEMORY_AREA.




Continue
Shared Objects - CL_SHM_AREA
Shared Objects - CL_IMODE_AREA