<?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: Difference between call method in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-call-method/m-p/5206914#M1204570</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If descr_ref is of type ref to cl_abap_typedescr you can use =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If descr_ref is of type ref to &amp;lt;a parent class of cl_abap_typedescr&amp;gt;  you have to use ?=&lt;/P&gt;&lt;P&gt;because the method is maybe introduced in the subclass and don't exist in the upper class.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Feb 2009 13:18:49 GMT</pubDate>
    <dc:creator>h_senden2</dc:creator>
    <dc:date>2009-02-19T13:18:49Z</dc:date>
    <item>
      <title>Difference between call method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-call-method/m-p/5206913#M1204569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the difference between following statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    descr_ref ?= cl_abap_typedescr=&amp;gt;describe_by_data( i_stock ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    descr_ref = cl_abap_typedescr=&amp;gt;describe_by_data( i_stock ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When do I have to use ?=&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2009 13:14:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-call-method/m-p/5206913#M1204569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-19T13:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between call method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-call-method/m-p/5206914#M1204570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If descr_ref is of type ref to cl_abap_typedescr you can use =&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If descr_ref is of type ref to &amp;lt;a parent class of cl_abap_typedescr&amp;gt;  you have to use ?=&lt;/P&gt;&lt;P&gt;because the method is maybe introduced in the subclass and don't exist in the upper class.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2009 13:18:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-call-method/m-p/5206914#M1204570</guid>
      <dc:creator>h_senden2</dc:creator>
      <dc:date>2009-02-19T13:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between call method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-call-method/m-p/5206915#M1204571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    Assignments between interface references whose interfaces are not related to each other cannot be checked statically and must therefore be formulated using the cast operator u201C?=u201D.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this type of assignment, a check must be carried out at runtime to see whether the class of the instance that the source reference points to also supports the interface that the target reference refers to. If this is the case, the cast is carried out, otherwise the catchable runtime MOVE_CAST_ERROR occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This type of cast is neither a widening nor a narrowing cast, rather a switch from one view of an object to another. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: For detailed information please refer the below links,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.abapprogramming.net/search?q=casting" target="test_blank"&gt;http://www.abapprogramming.net/search?q=casting&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.scribd.com/doc/7203248/Abap-Objects" target="test_blank"&gt;http://www.scribd.com/doc/7203248/Abap-Objects&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank U,&lt;/P&gt;&lt;P&gt;Jay....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 05:00:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-call-method/m-p/5206915#M1204571</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T05:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between call method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-call-method/m-p/5206916#M1204572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi;&lt;/P&gt;&lt;P&gt;these are widen and narrow casting respectively.&lt;/P&gt;&lt;P&gt;Regardfs&lt;/P&gt;&lt;P&gt;shashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 06:37:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-call-method/m-p/5206916#M1204572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-20T06:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between call method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-call-method/m-p/5206917#M1204573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider Class superclass whose subclass is Class subclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let, superobject be an instance of superclass and subobject be an instance of subclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use "=" when you want to assign subclass object to superclass object. As the superclass Object can be assigned to any of it's child class objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;superobject = subobject.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use "?=" when you want to assign superclass object to it's subclass object only if the superclass object is pointing to the same subclass object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If superobject is pointing to subobject. Say superobject = subobject has been already done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you want to access the exclusive members of subclass object. Which can not be accessed by superobject though it is pointing to subclass object (subobject). In this case you need to use "?=" to cast from superclass to subclass as the superobject is pointing to the same subobject.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subobject ?= superobject.  "{ Superobject is pointing to an instance of subclass. Else it will throw MOVE_CAST_ERROR }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In short, use ?= when you want to assign a superclass reference to a subclass reference if the superclass reference is pointing to the same subclass reference else run time exception occurs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need more clarification on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2009 06:54:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-call-method/m-p/5206917#M1204573</guid>
      <dc:creator>former_member189420</dc:creator>
      <dc:date>2009-02-20T06:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between call method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-call-method/m-p/5206918#M1204574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 13:51:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-call-method/m-p/5206918#M1204574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T13:51:07Z</dc:date>
    </item>
  </channel>
</rss>

