07-12-2005 9:35 AM
Hello everyone,
How can i declare a type ref to the class that is determined dynamically? i.e, the class name is determined dynamically and i need to create a reference for that at runtime.
Thanks in advance,
Padma.
07-12-2005 9:59 AM
Hi,
You can have something like this -
data class_name(30).
data objref type ref to object.
class_name = 'CL_GUI_ALV_GRID'.
create object objref type (class_name).
<b>objref</b> will not point to an inteance of the class CL_GUI_ALV_GRID.
Hope that's clear.
Regards,
Anand Mandalika.
07-12-2005 9:59 AM
Hi,
You can have something like this -
data class_name(30).
data objref type ref to object.
class_name = 'CL_GUI_ALV_GRID'.
create object objref type (class_name).
<b>objref</b> will not point to an inteance of the class CL_GUI_ALV_GRID.
Hope that's clear.
Regards,
Anand Mandalika.