<?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: Type Casting. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-casting/m-p/1986570#M402845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I need more information:&lt;/P&gt;&lt;P&gt;   IF_RECA_STORABLE and IF_RECN_CONTRACT are related to each other?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One can assign interface references to other interface/class reference variables, using the assignment operator (=) . &lt;/P&gt;&lt;P&gt;However, there are certain restrictions while doing so. When one does this in a program,  system must be able to recognize in the syntax check whether an assignment is possible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;iref&amp;gt; = &amp;lt;cref&amp;gt;, The class of the class reference &amp;lt;cref&amp;gt; must be implemnet the interface of the interface reference &amp;lt;iref&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I need more information on relations between to interface and class of  contract_object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chetan Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Feb 2007 08:56:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-08T08:56:35Z</dc:date>
    <item>
      <title>Type Casting.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-casting/m-p/1986569#M402844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two interface references like follwing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: o_storable type ref to IF_RECA_STORABLE.&lt;/P&gt;&lt;P&gt;data: contract_object type ref to IF_RECN_CONTRACT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after calling following method i will receive instance of type IF_RECN_CONTRACT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cf_recn_contract=&amp;gt;find&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    id_bukrs       =&lt;/P&gt;&lt;P&gt;    id_recnnr      =&lt;/P&gt;&lt;P&gt;    ID_ACTIVITY    = RECA1_ACTIVITY-DISPLAY&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IF_AUTH_CHECK  = ABAP_FALSE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IF_ENQUEUE     = ABAP_FALSE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IF_USE_ARCHIVE = ABAP_TRUE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  receiving&lt;/P&gt;&lt;P&gt;    ro_instance    = &amp;lt;b&amp;gt;contract_object&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   ERROR          = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   others         = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After getting reference into &amp;lt;b&amp;gt;contract_object&amp;lt;/b&amp;gt;, i will have to refer it to &amp;lt;b&amp;gt;o_storable&amp;lt;/b&amp;gt;. Before refering i need to type cast &amp;lt;b&amp;gt;contract_object&amp;lt;/b&amp;gt; of type IF_RECN_CONTRACT into IF_RECA_STORABLE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please explain me how can i do?.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 05:04:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-casting/m-p/1986569#M402844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-08T05:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Type Casting.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-casting/m-p/1986570#M402845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I need more information:&lt;/P&gt;&lt;P&gt;   IF_RECA_STORABLE and IF_RECN_CONTRACT are related to each other?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One can assign interface references to other interface/class reference variables, using the assignment operator (=) . &lt;/P&gt;&lt;P&gt;However, there are certain restrictions while doing so. When one does this in a program,  system must be able to recognize in the syntax check whether an assignment is possible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;iref&amp;gt; = &amp;lt;cref&amp;gt;, The class of the class reference &amp;lt;cref&amp;gt; must be implemnet the interface of the interface reference &amp;lt;iref&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I need more information on relations between to interface and class of  contract_object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chetan Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2007 08:56:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-casting/m-p/1986570#M402845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-08T08:56:35Z</dc:date>
    </item>
  </channel>
</rss>

