Skip to content

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

Shared Objects - Creating Objects

A shared object in an area instance version of the shared memory is created with the following statements:

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.

Other versions: 7.31 | 7.40 | 7.54