<?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 Re: Object problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-problem/m-p/1800101#M343547</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please DONOT use class CL_WDY_WB_REFLECTION_HELPER. It is NOT released for public use. At least with higher levels of release or support package any use will violate package restrictions.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;  Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Dec 2006 17:12:33 GMT</pubDate>
    <dc:creator>former_member183804</dc:creator>
    <dc:date>2006-12-11T17:12:33Z</dc:date>
    <item>
      <title>Object problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-problem/m-p/1800098#M343544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hy !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there in SAP something similar to instanceof in Java ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 14:12:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-problem/m-p/1800098#M343544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T14:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Object problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-problem/m-p/1800099#M343545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this.  It is not directly built-in to the language, but you can acheive the same with a little coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report ztest.

*---------------------------------------------------------------------*
*       CLASS lcl_app DEFINITION
*---------------------------------------------------------------------*
*       ........                                                      *
*---------------------------------------------------------------------*
class lcl_app definition.

  public section.
    data: field type string.

endclass.

*---------------------------------------------------------------------*
*       CLASS lcl_app IMPLEMENTATION
*---------------------------------------------------------------------*
*       ........                                                      *
*---------------------------------------------------------------------*
class lcl_app implementation.


endclass.

data: o_ref type ref to cl_abap_classdescr,
      o_object type ref to object.

create object o_object type lcl_app.

o_ref ?= cl_abap_typedescr=&amp;gt;describe_by_name( 'LCL_APP' ).

if  o_ref-&amp;gt;applies_to( o_object ) = 'X'.
  write / 'This Object is an instance of the class'.
else.
  write / 'This Object is NOT an instance of the class'.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 14:26:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-problem/m-p/1800099#M343545</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-12-11T14:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Object problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-problem/m-p/1800100#M343546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ariana&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please have a look at the static method &amp;lt;b&amp;gt;CL_WDY_WB_REFLECTION_HELPER=&amp;gt;IS_INSTANCE_OF&amp;lt;/b&amp;gt; (available on 6.40).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 14:26:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-problem/m-p/1800100#M343546</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-12-11T14:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Object problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-problem/m-p/1800101#M343547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please DONOT use class CL_WDY_WB_REFLECTION_HELPER. It is NOT released for public use. At least with higher levels of release or support package any use will violate package restrictions.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;  Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 17:12:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-problem/m-p/1800101#M343547</guid>
      <dc:creator>former_member183804</dc:creator>
      <dc:date>2006-12-11T17:12:33Z</dc:date>
    </item>
  </channel>
</rss>

