SAP CREATE SHARED DATA OBJCT ABEXA



Get Example source ABAP code based on a different SAP table
  



Creating a Data Object as a Shared Object
This example demonstrates how a data object is created in an area instance version.

ABAP_SOURCE_CODE
DEMO CL_DEMO_CREATE_SHARED_DATA_OBJ

ABAP_DESCRIPTION
The addition AREA HANDLE is used to create an anonymous data object of type string as a shared object in an area instance version of the area CL_DEMO_AREA. The generically typed attribute dref of the area root class CL_DEMO_ROOT is used to refer to a variable.
After write access has been completed using DETACH_COMMIT, a read is performed to demonstrate how the objects in the shared memory are accessed. Such accesses can also be made in another program, as long as the area instance version exists in the shared memory.