heap
references and keep the data object alive. The same applies to field
symbols.
When a data type is used, the
instance operator NEW
acts like the statement CREATE DATA dref TYPE type and can be
used in general expression
positions .
Unlike CREATE OBJECT , CREATE DATA
does not set the return code sy-subrc .
Runtime Exceptions
Catchable Exceptions
CX_SY_CREATE_DATA_ERROR
Reason for error: Illegal value for the DECIMALS addition.
Runtime error: CREATE_DATA_ILLEGAL_DECIMALS
Reason for error: Illegal value for the INITIAL SIZE addition.
Runtime error: CREATE_DATA_ILLEGAL_INIT_SIZE
Reason for error: Illegal value for the LENGTH addition.
Runtime error: CREATE_DATA_ILLEGAL_LENGTH
Reason for error: The LENGTH addition was used for a type other
than c , n , x , or p .
Runtime error: CREATE_DATA_LEN_NOT_ALLOWED
Reason for error: The type specified dynamically in TYPE is not
typed completely.
Runtime error: CREATE_DATA_NOT_ALLOWED_TYPE
Reason for error: The type dynamically specified in the TYPE
addition is not known.
Runtime error: CREATE_DATA_UNKNOWN_TYPE
Non-catchable Exceptions
Reason for error: The dref variable does not have the correct type.
Runtime error: CREATE_DATA_REFERENCE_EXPECTED
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved