CREATE OBJECT oref
Short Reference
ABAP Syntax_1
CREATE OBJECT oref [
area_handle ] [
parameter_list ].
What does it do? If the TYPE addition is not specified, the
oref object must be a class reference variable. An instance of the
class is created that is the static type of the object reference vari
ables. The static type of the class reference variables must not be an
abstract class, and in particular must not
be the root class object .
Example ABAP Coding Creation of an instance of a c1 class using an
implicit reference to the static type of the reference variables.
CLASS c1 DEFINITION.
...
ENDCLASS.
...
DATA oref TYPE REF TO c1.
...
CREATE OBJECT oref.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved