ABAPCREATE_DATA_REFERENCE - CREATE DATA REFERENCE

CPI1466 during Backup   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

CREATE DATA - REF TO

Short Reference



Syntax

CREATE DATA dref [area_handle]
                 TYPE REF TO {type|(name)}.

Effect

With the TYPE REF TO addition, the CREATE DATA statement creates a reference variable. The reference variables can be specified either directly as type or dynamically in name.

The same type rules apply to the type specification as to the definition of referencetypes with the TYPESstatement. For data reference variables, either the generic data type or a completely specified data type can be specified. For object reference variables, either a class or an interface can be specified.

For name a character-type field can be specified, which has to contain the name of a class, aninterface, or a data type when the statement is executed. The name of the reference type in name can also be made in the form of anabsolute type name.

Note

The dynamic specification of object types in name can also be made in lowercase letters.

Example

Refer to creating reference variables.




General Data in Customer Master   General Material Data  
This documentation is copyright by SAP AG.


Length: 1920 Date: 20120522 Time: 042139     triton ( 79 ms )