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

CREATE DATA - TYPE, LIKE

Short Reference

Syntax

CREATE DATA dref [area_handle]
                 { {TYPE [LINE OF] {type|(name)}}
                 | {LIKE [LINE OF] dobj} }.


Effect

The type of the generated data object is defined by the specified type or data object.

You can use the optional addition LINE OF if type or the name in name is a table type, or if dobj is an internal table. As a result, the generated data object inherits the attributes of the row type of the internal table.

Notes

Example

See Creating Structured Data Objects.




Continue
Creating Structured Data Objects