Ansicht
Dokumentation

ABAPCREATE_DATA_HANDLE - CREATE DATA HANDLE

ABAPCREATE_DATA_HANDLE - CREATE DATA HANDLE

Fill RESBD Structure from EBP Component Structure   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

CREATE DATA, HANDLE

Short Reference



CREATE DATA dref $[area_handle$]
                 TYPE HANDLE handle.

Effect

The statement CREATE DATA uses the addition HANDLE to create a data object whose data type is described by an RTTS type description object. For handle, a reference variable of the static type of class CL_ABAP_DATADESCR or its subclasses that points to a type description object must be specified. The type description object may have been created by using the RTTS methods on existing data objects or by using the dynamic definition of a new data type.

The type description object must describe a non-generic type. Only type description objects for the generic ABAP types c, n, p, and x create and use a new bound data type with the standard values. Similarly, a type description object for a standard table with a generic table type creates and uses a new bound table type with a standard key.

Notes

  • The following are important methods for the dynamic definition of data types:
  • GET_C, GET_D, GET_F ... of the class CL_ABAP_ELEMDESCR for type description objects of elementary data types. These create either a new type description object in accordance with the input parameters or reuse an existing type object.

  • GET of the classes CL_ABAP_STRUCTDESCR, CL_ABAP_TABLEDESCR, and CL_ABAP_REFDESCR as well as GET_BY_NAME of the class CL_ABAP_REFDESCR for type description objects of structures, internal tables, and reference variables. These return the type description object that was specified by the input parameters. Either a new type description object is created or an existing one is used again.

  • CREATE of the classes CL_ABAP_STRUCTDESCR, CL_ABAP_TABLEDESCR, and CL_ABAP_REFDESCR for creating type description objects for structures, internal tables, and reference variables. These return the type description object that was specified by the input parameters. A new type description object is always created.

  • It is recommended that the GET methods are used instead of CREATE to avoid creating multiple type description objects for a single type.

Creation of an anonymous data object using a type description object for a dictionary structure that is obtained using RTTI.

Creating a Structure Using RTTC






BAL Application Log Documentation   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 4154 Date: 20240623 Time: 185917     sap01-206 ( 60 ms )