2010 Sep 27 10:18 AM
Hi,
I want to check whether a class exists in a system or not in my program.
How can I do that?
There is a function module FUNCTION_EXISTS which tells whether a function module exists or not.
Similar one if existing for a class if any would help.
Regards,
Bikash.
2010 Sep 27 10:26 AM
Hello Bikash
I would use static method CL_OO_CLASS=>GET_INSTANCE (alternative: CL_OO_OBJECT).
If this method cannot get an instance of the class then the class does not exist.
Corresponding fm is: SEO_CLASS_GET
For interfaces you may use: CL_OO_INTERFACE of SEO_CLIF_GET
Regards
Uwe
2010 Sep 27 10:26 AM
Hello Bikash
I would use static method CL_OO_CLASS=>GET_INSTANCE (alternative: CL_OO_OBJECT).
If this method cannot get an instance of the class then the class does not exist.
Corresponding fm is: SEO_CLASS_GET
For interfaces you may use: CL_OO_INTERFACE of SEO_CLIF_GET
Regards
Uwe
2010 Sep 27 10:27 AM
2010 Sep 27 11:06 AM
Classification is not really the same like OO-Classes...
Regards
Uwe