<?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: Internal table return by value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-return-by-value/m-p/11849377#M1958077</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;In what context? For method and function modules, for example, you can have pass by value or by reference.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Perhaps an example would help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Sep 2016 08:26:07 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2016-09-06T08:26:07Z</dc:date>
    <item>
      <title>Internal table return by value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-return-by-value/m-p/11849376#M1958076</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;As far as i know ABAP allows only return by value.&lt;/P&gt;&lt;P&gt;Does it really mean that every time I do something like this &lt;STRONG&gt;data(foo) = bar( )&lt;/STRONG&gt;, and bar() returns an internal table, table's content is copied in memory?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2016 07:17:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-return-by-value/m-p/11849376#M1958076</guid>
      <dc:creator>maxim_schibnev</dc:creator>
      <dc:date>2016-09-06T07:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table return by value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-return-by-value/m-p/11849377#M1958077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;In what context? For method and function modules, for example, you can have pass by value or by reference.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Perhaps an example would help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2016 08:26:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-return-by-value/m-p/11849377#M1958077</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2016-09-06T08:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table return by value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-return-by-value/m-p/11849378#M1958078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;Matthew Billingham wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;In what context? For method and function modules, for example, you can have pass by value or by reference.&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I guess the OP meant RETURNING parameters of functional methods. The formal RETURNING param can only be defined as pass-by-value.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Does it really mean that every time I do something like this &lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG&gt;data(foo) = bar( )&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;, and bar() returns an internal table, table's content is copied in memory?&lt;/SPAN&gt;&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;IMO, the same rule applies to pass-by-value for RETURNING parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually there is an SCI-check which checks for the low performance of transfer between the actual &amp;amp; formal params of a procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/1030195" width="450" /&gt;&lt;/P&gt;&lt;P&gt;It states in the longtext of the documentation &amp;amp; i quote:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;Return parameters (RETURNING)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Since RETURNING parameters are always VALUE parameters, performance can only be improved by changing the parameter type. The RETURNING value parameter must be transformed to an EXPORTING reference parameter.&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2016 08:54:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-return-by-value/m-p/11849378#M1958078</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2016-09-06T08:54:37Z</dc:date>
    </item>
  </channel>
</rss>

