‎2008 Apr 28 3:49 PM
hi,
i receive the class name as a string whose instance has to be created.
and i need to return the instance of the importing class.
Could anybody tell me the Functiom module or the class to achieve this.
may be an appropiate example would be very helpful.
thanks in advance
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 28, 2008 1:18 PM
‎2008 Apr 28 3:57 PM
DATA:
classname TYPE seoclsname,
o_ref TYPE REF TO object.
...
CREATE OBJECT o_ref TYPE (classname) PARAMETER-TABLE it_par
EXCEPTION-TABLE it_exc.The class name must be set in data object classname at runtime. The object reference, o_ref, must be compatible with this class, or typed to a shared superclass or with TYPE REF TO object.
G@urav.
‎2008 Apr 28 3:57 PM
DATA:
classname TYPE seoclsname,
o_ref TYPE REF TO object.
...
CREATE OBJECT o_ref TYPE (classname) PARAMETER-TABLE it_par
EXCEPTION-TABLE it_exc.The class name must be set in data object classname at runtime. The object reference, o_ref, must be compatible with this class, or typed to a shared superclass or with TYPE REF TO object.
G@urav.