ARTICLE
Shared Objects - Creating Objects
A shared object in an
area instance version of the
shared memory is created with the following statements:
CREATE OBJECT oref AREA HANDLE
handle ...
CREATE DATA dref AREA HANDLE handle
...
handle is an object reference variable that points to an
area handle , which is connected by a
change lock to an area instance version currently being built. The
created object is stored in this area instance version and oref
or dref refer to the object. When the class instance is created,
it must be shared-memory-enabled.
Before the area instance version is built with the
DETACH_COMMIT method, the
SET_ROOT method of the area handle
must be used to define the root object .
Once the area instance version has been built with the
DETACH_COMMIT method, no references
from the area instance version are allowed to point to anything
external.
The treatable exceptions listed for the above statements can occur when
objects are created.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved