ABAP Keyword Documentation → ABAP − Short Reference
CREATE OBJECT - Short Reference
Other versions: 7.31 | 7.40 | 7.54
Syntax
CREATE OBJECT oref [AREA HANDLE handle] 
                   [ [TYPE class] 
                      [EXPORTING p1 = a1 p2 = a2 ...] 
                      [EXCEPTIONS exc1 = n1 exc2 = n2 ... [OTHERS = n_others]] ] 
                 | [ TYPE (name) 
                     {[EXPORTING p1 = a1 p2 = a2 ...] 
                      [EXCEPTIONS exc1 = n1 exc2 = n2 ... [OTHERS = n_others]]} 
                   | {[PARAMETER-TABLE ptab] 
                      [EXCEPTION-TABLE etab]} ]. 
Effect
Creates an instance of a class and sets the object reference in oref to the
object. If the addition TYPE is not specified, oref must be typed with reference to a
concrete class and this class is instantiated.  
Additions
- 
AREA HANDLE handle
Creates a shared object, where a reference to an area handle has to be specified inhandle. - 
{TYPE class}|{TYPE (name)}
Statically or dynamically specifies the class of the object that must be more specific than the static type oforef. - 
EXPORTING p1 = a1 p2 = a2 ...
Passes actual parametersa1,a2... to input parametersp1,p2, ... of the instance constructor. - 
EXCEPTIONS exc1 = n1 exc2 = n2 ...[OTHERS = n_others]
Assigns return values to non-classed-based exceptions of the instance constructor. - 
PARAMETER-TABLE ptab
Assigns dynamic actual parameters to the formal parameters of the instance constructor using an internal tableptabof the type ABAP_PARMBIND_TAB . - 
EXCEPTION-TABLE etab
Assigns dynamic return values to the not class-based exceptions using an internal tableetabof the type ABAP_EXCPBIND _TAB.