<?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: code explamation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-explamation/m-p/2862337#M671237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This program show data in excel layout in ALV but sometimes there is problem that not all data is shown, do you know what is reason of it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Sep 2007 08:57:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-27T08:57:36Z</dc:date>
    <item>
      <title>code explamation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-explamation/m-p/2862333#M671233</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 have a part of code:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;l_oref_structure ?= cl_abap_typedescr=&amp;gt;describe_by_data(&lt;/P&gt;&lt;P&gt;                        data_table ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM build_field_table TABLES data_fields_table&lt;/P&gt;&lt;P&gt;                              USING l_oref_structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone explain me what this code is responsible for?&lt;/P&gt;&lt;P&gt;What mean " ?= " ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joanna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 07:07:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-explamation/m-p/2862333#M671233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T07:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: code explamation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-explamation/m-p/2862334#M671234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look at &amp;lt;a href="http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf"&amp;gt;ABAP Programming (BC-ABA)&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Assignment Using Interface References - Casting&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Like class references, you can assign interface references to different reference variables. You can also make assignments between class reference variables and interface reference variables.&lt;/P&gt;&lt;P&gt;When you use the MOVE statement or the assignment operator (=) to assign reference variables, the system must be able to recognize in the syntax check whether an assignment is possible. &lt;/P&gt;&lt;P&gt;Suppose we have a class reference &amp;lt;cref&amp;gt; and interface references &amp;lt;iref&amp;gt;, &amp;lt;iref1&amp;gt;, and &amp;lt;iref2&amp;gt;.&lt;/P&gt;&lt;P&gt;The following assignments with interface references can be checked statically:&lt;/P&gt;&lt;P&gt;  &amp;lt;iref1&amp;gt; = &amp;lt;iref2&amp;gt;&lt;/P&gt;&lt;P&gt;Both interface references must refer to the same interface, or the interface of &amp;lt;iref1&amp;gt;&lt;/P&gt;&lt;P&gt;must contain the interface &amp;lt;iref2&amp;gt; as a component.&lt;/P&gt;&lt;P&gt;  &amp;lt;iref&amp;gt; = &amp;lt;cref&amp;gt;&lt;/P&gt;&lt;P&gt;The class of the class reference &amp;lt;cref&amp;gt; must implement the interface of the interface&lt;/P&gt;&lt;P&gt;reference &amp;lt;iref&amp;gt;.&lt;/P&gt;&lt;P&gt;  &amp;lt;cref&amp;gt; = &amp;lt;iref&amp;gt;&lt;/P&gt;&lt;P&gt;The class of &amp;lt;cref&amp;gt; must be the predefined empty class OBJECT.&lt;/P&gt;&lt;P&gt;In all other cases, you would have to work with the statement MOVE ...? TO or the casting&lt;/P&gt;&lt;P&gt;operator (?=). The casting operator replaces the assignment operator (=). In the MOVE... ? TO&lt;/P&gt;&lt;P&gt;statement, or when you use the casting operator, there is no static type check. Instead, the&lt;/P&gt;&lt;P&gt;system checks at runtime whether the object reference in the source variable points to an object&lt;/P&gt;&lt;P&gt;to which the object reference in the target variable can also point. If the assignment is possible,&lt;/P&gt;&lt;P&gt;the system makes it, otherwise, the catchable runtime error MOVE_CAST_ERROR occurs.&lt;/P&gt;&lt;P&gt;You must always use casting for assigning an interface reference to a class reference if &amp;lt;cref&amp;gt;&lt;/P&gt;&lt;P&gt;does not refer to the predefined empty class OBJECT:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;cref&amp;gt; ?= &amp;lt;iref&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;For the casting to be successful, the object to which &amp;lt;iref&amp;gt; points must be an object of the same class as the type of the class variable &amp;lt;cref&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 07:22:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-explamation/m-p/2862334#M671234</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-09-27T07:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: code explamation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-explamation/m-p/2862335#M671235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is used when you are assigning the super class object to a sub class object, known as down cast in OO ABAP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 07:38:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-explamation/m-p/2862335#M671235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T07:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: code explamation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-explamation/m-p/2862336#M671236</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;?:  is used for Widening Cast as an Operator.&lt;/P&gt;&lt;P&gt;i.e when you are assigning the Super class instance to Subclass reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 07:44:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-explamation/m-p/2862336#M671236</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-09-27T07:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: code explamation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-explamation/m-p/2862337#M671237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This program show data in excel layout in ALV but sometimes there is problem that not all data is shown, do you know what is reason of it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 08:57:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-explamation/m-p/2862337#M671237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T08:57:36Z</dc:date>
    </item>
  </channel>
</rss>

