SAP SHM OBJECTS CREATE OBJECT



Get Example source ABAP code based on a different SAP table
  



ABAP_SHM - Object Creation
A shared object in an area instance version of the shared memory is created using one of the following statements:
CREATE OBJECT oref AREA HANDLE handle ...
CREATE DATA dref AREA HANDLE handle ...
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.