ARTIClE
Creating a Class Instance as a Shared Object
The example demonstrates how an object is created in an
area instance version .
ABAP_SOURCE_CODE
ABAP_EXEC
ABAP_DESCRIPTION
The AREA HANDLE addition is used to create an instance of the
local class class in an
area instance version of area
CL_DEMO_AREA as a shared object
. The generically typed attribute oref of
area root class
CL_DEMO_ROOT is used a reference
variable. The attr attribute of the object is assigned a value
when its set_attr method is called.
Once write access is completed using the DETACH_COMMIT method,
read access takes place, which demonstrates how the object is accessed
in the shared memory. This type of access can also take place in a
different program, provided that the area instance version exists in the
shared memory.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved