Ansicht
Dokumentation

ABENNEW_CONSTRUCTOR_PARAMS_INITIAL - NEW CONSTRUCTOR PARAMS INITIAL

ABENNEW_CONSTRUCTOR_PARAMS_INITIAL - NEW CONSTRUCTOR PARAMS INITIAL

General Material Data   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.
SAP E-Book

NEW, Initial Value for All Types

... NEW dtype$|class$|#( ) ...

Effect

If no parameter is specified,

  • an anonymous data object retains its type-specific initial value,
  • no values are passed to the instance constructor of an object.

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 corresponding types.

Note

If dtype or # stand for an enumerated type, its initial value is created according to its base type.

Example

After the following program section is executed, dref points to an empty internal table with the line type T100. Both constructor expressions have the same function.






Addresses (Business Address Services)   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 1195 Date: 20240424 Time: 194602     sap01-206 ( 47 ms )