SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
ABAP Keyword Documentation → ABAP − Reference → Creating Objects and Values → NEW - Instance Operator →NEW - Initial Value for All Types
Syntax
... NEW dtype|class|#( ) ...
Effect
If no parameters are specified,
This is possible for every non-generic data type dtype. The instance constructor of a class class can either have only optional input parameters or no input parameters at all. The # symbol can stand for appropriate types.
Example
After the following program section is executed, dref points to an empty internal table with the row type T100. Both constructor expressions have the same function.
TYPES t_itab TYPE TABLE OF t100 WITH EMPTY KEY.
DATA dref TYPE REF TO t_itab.
dref = NEW #( ).
dref = NEW t_itab( ).