Ansicht
Dokumentation

ABAPCREATE_OBJECT_IMPLICIT - CREATE OBJECT IMPLICIT

ABAPCREATE_OBJECT_IMPLICIT - CREATE OBJECT IMPLICIT

BAL Application Log Documentation   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.






CL_GUI_FRONTEND_SERVICES - Frontend Services   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 1468 Date: 20240616 Time: 105322     sap01-206 ( 27 ms )