Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

To find all class implemented a interface

Former Member
0 Likes
9,770

Hi,

can you please help me in getting all the class names that has implemented a interface.

It is very urgent. Plz help.

Thanks

Vimalraj

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
4,717

Hello Vimalraj

If you need a programmatic approach create an instance of class CL_OO_INTERFACE for your requested interface name and call its instance method GET_IMPLEMENTING_CLASSES.

Regards,

Uwe

Hi,

can you please help me in getting all the class names that has implemented a interface.

It is very urgent. Plz help.

Thanks

Vimalraj

5 REPLIES 5
Read only

Former Member
0 Likes
4,717

Hi Vimalraj,

use SE80, select Repository Browser,

select Class/interface

and enter your IF_name.

Press the glasses icon to the right

Then open the folder whch says Implementing classes.

Or use the 'where used button' in the class builder.

simple stuff ??

Frank

Read only

uwe_schieferstein
Active Contributor
4,718

Hello Vimalraj

If you need a programmatic approach create an instance of class CL_OO_INTERFACE for your requested interface name and call its instance method GET_IMPLEMENTING_CLASSES.

Regards,

Uwe

Read only

0 Likes
4,717

Thanks very much.

Below is my code but how can i pass my interface name. assume 'IF_WD_VIEW'.

since i am getting null exception.

data: lr_oo TYPE REF TO cl_oo_interface,

lr_cl TYPE seo_relkeys.

CALL METHOD lr_oo->get_implementing_classes

RECEIVING

result = lr_cl.

Read only

0 Likes
4,717

Sorry.. i havent created object.

Thanks

Read only

lucdealethea
Participant
4,717

SE16 on Table SEOMETAREL:

for example

CLSNAME = "Z*"
REFCLSNAME = "IF_AMDP_MARKER_HDB"

returns

all the Z classes using interface REFCLSNAME = "IF_AMDP_MARKER_HDB"