Skip to Content
0
Former Member
Mar 26, 2007 at 08:44 AM

Cast of char type to object type

23 Views

Hi,

I have stored names for classes in a char field in a db table. At runtime I load the class names and want to create objects for the clases.

How do I convert the char type to be of type object?

I have tryed the following but does not work:

DATA:

class_name TYPE ref to object.

move wa_msgh_parm-class_name to class_name.

CREATE OBJECT class_name.

Hope anyone can help.

Thanks.

Morten