ABAP Keyword Documentation →  ABAP − Reference →  Creating Objects and Values →  CREATE DATA → 

CREATE DATA - HANDLE

Short Reference

Syntax

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 has to be specified, which points to a type description object. The type description object object may have been created using the RTTS methods on existing data objects, or 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.

Note

Important methods for the dynamic definition of data types are:

Note

We recommend using the GET methods instead of CREATE to avoid creating multiple type description objects for a single type.

Example

See Create Structure Using RTTC.




Continue
Creating a Structure Using RTTC