ABAP - Keyword Documentation →  ABAP - Programming Language →  Creating Objects and Values →  Shared Objects →  Shared Objects - Objects → 
Mail Feedback

Shared Objects - Object Creation

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

Here, handle is an object reference variable that points to an area handle that is bound using a change lock to an area instance version under construction. The created object is stored in this area instance version and oref or dref point to the object. When the class instance is created, it must be shared-memory-enabled.

Before the construction of the area instance version is completed using the method DETACH_COMMIT, the method SET_ROOT of the area handle must be used to define the root object. If the construction of the area instance version is completed using the method DETACH_COMMIT, no references from the area instance version are allowed to point to outside.

The catchable exceptions listed for the above statements can be raised when objects are created.