Skip to Content
avatar image
Former Member

Find classes implementing an interface

Does anyone know how to code a check to find which ABAP classes implement a given interface?

Thaks,

Jim

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    May 19, 2006 at 07:14 PM

    Hi,

    In ABAP the general convention for classes and interfaces is like this...

    if the interface is IF_BSP_SERVER the implemented class is CL_BSP_SERVER.

    So for Interface IF_XXXXX check for the implemented class as CL_XXXXX.

    Regards,

    Azaz Ali.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 04, 2007 at 11:51 AM

    Hello Jim,

    what you are actually looking for might be function module 'SEO_INTERFACE_IMPLEM_GET_ALL' (from package SEOK "ABAP Object Class Builder Services"). It takes the name of an interface as input and returns the class names of all implementing classes.

    However, there is one caveat, it seems to work for DDIC interfaces only. So you are not able to use interfaces defined in your local programm.

    Regards,

    Daniel

    Add comment
    10|10000 characters needed characters exceeded