01-25-2008 5:49 PM
Hi,
I want to get all the sub classes of a super class programatically.
Please help,
Thanks
vimalraj
01-27-2008 9:18 AM
Hi Vimalraj,
cal function SEO_CLASS_GET_ALL_SUBS.
this will give u all the sub classes of a super class.
If you like to use an OO-based approach you can use class CL_OO_CLASS:
code1. Call static method CL_OO_CLASS=>GET_INSTANCE( '<name of class' ).
2. Call instance method go_class->GET_SUBCLASSES[/code]
cheers,
Hema.
01-26-2008 12:57 PM
01-27-2008 9:18 AM
Hi Vimalraj,
cal function SEO_CLASS_GET_ALL_SUBS.
this will give u all the sub classes of a super class.
If you like to use an OO-based approach you can use class CL_OO_CLASS:
code1. Call static method CL_OO_CLASS=>GET_INSTANCE( '<name of class' ).
2. Call instance method go_class->GET_SUBCLASSES[/code]
cheers,
Hema.
01-28-2008 11:38 AM
Hi..
This is my scenario.
I have interface intferface1. Class A implements interface1. class B extends A. Class C etends B.
Through CL_OO_INTERFACE, i m getting class A.
And i am using 'SEO_CLASS_GET_ALL_SUBS' to get all sub classes. But i get only B and i am not getting C.
In that case i need to make a recursive calls, but i dont to do that.
When i ask for sub classes of A, i must get both B and C. is there any way i get?
Please help me.
Thanks