SAP CREATE OBJECT IMPLICIT ABAP Statements



Get Example source ABAP code based on a different SAP table
  



CREATE OBJECT oref
Short Reference

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

What does it do?
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.



Latest notes:

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.
NON_V5_HINTS
ABAP_HINT_END

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

Return to menu