<?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: Returning tables as value parameters in functional methods in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/returning-tables-as-value-parameters-in-functional-methods/m-p/6404570#M1406825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the replies guys.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Nov 2009 08:00:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-20T08:00:36Z</dc:date>
    <item>
      <title>Returning tables as value parameters in functional methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/returning-tables-as-value-parameters-in-functional-methods/m-p/6404567#M1406822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi OO experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am interested in what is a 'preferred approach' for using functional methods.  Functional methods are very neat and I use them a lot for calculations or for returning single values from table read statements etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A returning parameter in a functional method is by VALUE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I see these methos also widely used in some of the ABAP OO literature for returning tables.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would have thought that it's better to use an exporting parameter for a table since that is by REFERENCE and does not explicitly pass the data...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there not a performance hit incurred when using returning parameters in functional methods for tables as opposed to using exporting parameters in normal methods?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Gav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 09:09:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/returning-tables-as-value-parameters-in-functional-methods/m-p/6404567#M1406822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-18T09:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Returning tables as value parameters in functional methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/returning-tables-as-value-parameters-in-functional-methods/m-p/6404568#M1406823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gavin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes there is a performance difference. For large internal tables, pass by reference will always give a better performance. It is strongly advised that pass by reference is used with table passing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This link might help.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_70/en/ABENFORMAL_PARAMETERS_OVIEW.htm" target="test_blank"&gt;http://help.sap.com/abapdocu_70/en/ABENFORMAL_PARAMETERS_OVIEW.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Nandesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Nandesh Nair on Nov 19, 2009 6:34 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Nandesh Nair on Nov 19, 2009 6:35 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 05:32:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/returning-tables-as-value-parameters-in-functional-methods/m-p/6404568#M1406823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-19T05:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Returning tables as value parameters in functional methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/returning-tables-as-value-parameters-in-functional-methods/m-p/6404569#M1406824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually we can pass a reference to a table rather than a table itself. What we need is something I described here&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="thread" id="1494479"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really recommend sticking to using functional methods as they introduce nice way of programming and we are sure at first glance, by looking at returning parameter, what the method is responsible for (what is really calcuating at output). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 06:01:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/returning-tables-as-value-parameters-in-functional-methods/m-p/6404569#M1406824</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-11-19T06:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Returning tables as value parameters in functional methods</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/returning-tables-as-value-parameters-in-functional-methods/m-p/6404570#M1406825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the replies guys.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 08:00:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/returning-tables-as-value-parameters-in-functional-methods/m-p/6404570#M1406825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-20T08:00:36Z</dc:date>
    </item>
  </channel>
</rss>

