<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Runtime type information in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-type-information/m-p/10767346#M1877522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there a possibility within runtime type information to see which classes are using a certain interface from the CL_ABAP_INTFDESCR class? Or another OO way? &lt;/P&gt;&lt;P&gt;A selection on dbtab SEOMETAREL just doesn't seem the right way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Dec 2014 08:58:24 GMT</pubDate>
    <dc:creator>former_member192854</dc:creator>
    <dc:date>2014-12-02T08:58:24Z</dc:date>
    <item>
      <title>Runtime type information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-type-information/m-p/10767346#M1877522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there a possibility within runtime type information to see which classes are using a certain interface from the CL_ABAP_INTFDESCR class? Or another OO way? &lt;/P&gt;&lt;P&gt;A selection on dbtab SEOMETAREL just doesn't seem the right way...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 08:58:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-type-information/m-p/10767346#M1877522</guid>
      <dc:creator>former_member192854</dc:creator>
      <dc:date>2014-12-02T08:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime type information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-type-information/m-p/10767347#M1877523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does "using" mean "implementing" in this context? Here is a sample code checking if a class implements a certain interface:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gr_descriptor &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;REF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;cl_abap_objectdescr.&lt;SPAN class="L0S55"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S31"&gt;" RTTI&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;gr_descriptor ?= cl_abap_typedescr&lt;SPAN class="L0S70"&gt;=&amp;gt;&lt;/SPAN&gt;describe_by_name&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'ZIF_MY_INTERFACE' &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;gr_descriptor&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;applies_to_class&lt;SPAN class="L0S55"&gt;( 'MY_CLASS'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;abap_true&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;nbsp; class implements the interface&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Ulrich&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 11:43:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-type-information/m-p/10767347#M1877523</guid>
      <dc:creator>former_member201285</dc:creator>
      <dc:date>2014-12-02T11:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime type information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-type-information/m-p/10767348#M1877524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ulrich, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually I try to find classes which are using ZIF_MY_INTERFACE without knowing the class names / instances upfront.&lt;/P&gt;&lt;P&gt;Any ideas about that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 12:52:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-type-information/m-p/10767348#M1877524</guid>
      <dc:creator>former_member192854</dc:creator>
      <dc:date>2014-12-02T12:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime type information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-type-information/m-p/10767349#M1877525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would guess that a where used in SE24 would do the trick. I just tried for interface IF_IXML_NODE and it works. Did you try it ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 13:17:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-type-information/m-p/10767349#M1877525</guid>
      <dc:creator>PeterJonker</dc:creator>
      <dc:date>2014-12-02T13:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime type information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-type-information/m-p/10767350#M1877526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at view &lt;STRONG&gt;VSEOIMPLEM&lt;/STRONG&gt;. There is the reference between classes and implemented interfaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ulrich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 13:23:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-type-information/m-p/10767350#M1877526</guid>
      <dc:creator>former_member201285</dc:creator>
      <dc:date>2014-12-02T13:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime type information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-type-information/m-p/10767351#M1877527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or use class &lt;STRONG&gt;CL_OO_IF_RELATIONS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will find the implementing classes in attribute IMPLEMENTING_CLASSES after creating an instance. Pass the name of the interface to the constructor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ulrich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 13:40:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-type-information/m-p/10767351#M1877527</guid>
      <dc:creator>former_member201285</dc:creator>
      <dc:date>2014-12-02T13:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime type information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-type-information/m-p/10767352#M1877528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd think this has not much to do with the (runtime) type system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upon debuggng SE80 (when displaying an interface on the left) I found that function module SEO_INTERFACE_IMPLEM_GET_ALL is what SAP uses internally to find implementing classes.&lt;/P&gt;&lt;P&gt;As &lt;A __default_attr="306209" __jive_macro_name="user" class="jive_macro_user jive_macro" data-objecttype="3" data-orig-content="Ulrich Rechner" href="https://community.sap.com/"&gt;&lt;/A&gt; hinted, this function module uses DB view VSEOIMPLEM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 14:27:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-type-information/m-p/10767352#M1877528</guid>
      <dc:creator>fred_verheul</dc:creator>
      <dc:date>2014-12-02T14:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime type information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-type-information/m-p/10767353#M1877529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on the dbtab I mentioned, but good enough, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 14:29:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-type-information/m-p/10767353#M1877529</guid>
      <dc:creator>former_member192854</dc:creator>
      <dc:date>2014-12-02T14:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime type information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-type-information/m-p/10767354#M1877530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, but I actually wanted to have a code based solution.&lt;/P&gt;&lt;P&gt;Making a factory class which should execute some methods from some classes with a specific interface in them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 14:30:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-type-information/m-p/10767354#M1877530</guid>
      <dc:creator>former_member192854</dc:creator>
      <dc:date>2014-12-02T14:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Runtime type information</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-type-information/m-p/10767355#M1877531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 14:32:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-type-information/m-p/10767355#M1877531</guid>
      <dc:creator>former_member192854</dc:creator>
      <dc:date>2014-12-02T14:32:00Z</dc:date>
    </item>
  </channel>
</rss>

