Ansicht
Dokumentation

ABAPCREATE_OBJECT_IMPLICIT - CREATE OBJECT IMPLICIT

ABAPCREATE_OBJECT_IMPLICIT - CREATE OBJECT IMPLICIT

General Material Data   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

CREATE OBJECT oref

Short Reference



CREATE OBJECT oref $[area_handle$] $[parameter_list$].

Effect

If the addition TYPE is not specified, the object reference variable oref must be a class reference variable. An instance of the class is created that is the static type of the object reference variable. The static type of the class reference variable must not be an abstract class, and in particular not the root class object.

Note

If the character # is used in an operand position with the operand type of a class reference variable, the instance operator NEW works like the statement CREATE DATA dref.

Example

Creation of an instance of a class cls by implicitly referring to the static type of the reference variables.






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

Length: 1468 Date: 20240419 Time: 120216     sap01-206 ( 26 ms )