<?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: while returning parameters even tho i am using changing parameters in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/while-returning-parameters-even-tho-i-am-using-changing-parameters/m-p/11694621#M1946546</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;... and here my 2 cents:&lt;/P&gt;&lt;P&gt;- a RETURNING parameter must be fully typed BUT the result may be moved to any other compatible simple type. Quite frequently the TYPE of an EXPORTING parameter causes trouble when the function or method is re-used because you are forced to us this type. A returned STRING can be assigned to any kind of character variable, a returned INT4 can be &lt;SPAN style="font-size: 13.3333px;"&gt;assigned&lt;/SPAN&gt; to any kind of numeric variable.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- functional methods (a.k.a methods with RETURN parameter) can be used in method chaining. That means whereever a parameter value is expected, you can place a functional method call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;i.e.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;VAR myvalue TYPE CURR09 value '3.14-'.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;myvalue = floor( abs( myvalue ) ). "Result is 3.00&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Regards Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 May 2016 09:50:18 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2016-05-05T09:50:18Z</dc:date>
    <item>
      <title>while returning parameters even tho i am using changing parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/while-returning-parameters-even-tho-i-am-using-changing-parameters/m-p/11694617#M1946542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi folks,&lt;/P&gt;&lt;P&gt;i saw in some of the SCN threads regarding RETURNING parameter in methods .like below&lt;/P&gt;&lt;P&gt;&lt;A href="https://scn.sap.com/thread/473206" title="https://scn.sap.com/thread/473206"&gt;Regarding Returning Parameter and Static method | SCN&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_702/en/abapmethods_functional.htm" title="http://help.sap.com/abapdocu_702/en/abapmethods_functional.htm"&gt;ABAP Keyword Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;in that while RETURNING parameter&amp;nbsp; in method deceleration, we should not use EXPORTING and CHANGING parameters in that&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; but&lt;/P&gt;&lt;P&gt;in a local method creation i am using EXPORTING and CHANGING parameters including with RETURNING&amp;nbsp; parameter&lt;/P&gt;&lt;P&gt;but i didn't get any error message.&amp;nbsp; &lt;/P&gt;&lt;P&gt;program is executing fine&lt;/P&gt;&lt;P&gt;what exactly the concept of RETURNING parameters &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 06:55:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/while-returning-parameters-even-tho-i-am-using-changing-parameters/m-p/11694617#M1946542</guid>
      <dc:creator>Balu483</dc:creator>
      <dc:date>2016-05-05T06:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: while returning parameters even tho i am using changing parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/while-returning-parameters-even-tho-i-am-using-changing-parameters/m-p/11694618#M1946543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess you are using ABAP Release &amp;gt;= 740 SP02 because since ABAP 740 SP02 you can use EXPORTING/CHANGING params together with RETURNING params. (Read - &lt;A href="http://help.sap.com/abapdocu_750/en/abennews-740-abap_objects.htm#!ABAP_MODIFICATION_1@1@" title="http://help.sap.com/abapdocu_750/en/abennews-740-abap_objects.htm#!ABAP_MODIFICATION_1@1@"&gt;ABAP Objects in Release 7.40, SP02 - ABAP Keyword Documentation&lt;/A&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 07:21:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/while-returning-parameters-even-tho-i-am-using-changing-parameters/m-p/11694618#M1946543</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2016-05-05T07:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: while returning parameters even tho i am using changing parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/while-returning-parameters-even-tho-i-am-using-changing-parameters/m-p/11694619#M1946544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a RETURNING parameter is essential to write concise code. You may write statements like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;result = math-&amp;gt;square_root( '15.24' ).
IF math-&amp;gt;square_root( number ) = 4.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Imagine how long the corresponding code would be with EXPORTING/CHANGING.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 07:23:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/while-returning-parameters-even-tho-i-am-using-changing-parameters/m-p/11694619#M1946544</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-05-05T07:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: while returning parameters even tho i am using changing parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/while-returning-parameters-even-tho-i-am-using-changing-parameters/m-p/11694620#M1946545</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;The threads are pretty old. If you are getting no error in syntax then it's not an issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it's upto you how you design. Returning though has more contextual meaning in terms that you would expect some object (variable/workarea/structure) would be updated as output based on certain input conditions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have an exporting parameter or multiple exporting parameters, I would not use returning or changing while If i want to have a value updated based on certain (read only) parameters, returning is obvious here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, one important difference between Returning and Exporting is you need to use fully defined types in ABAP dictionary for Returning variables. By 'Fully Defined Types' i mean, the TYPE should exist in ABAP dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;VS &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 07:28:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/while-returning-parameters-even-tho-i-am-using-changing-parameters/m-p/11694620#M1946545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-05-05T07:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: while returning parameters even tho i am using changing parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/while-returning-parameters-even-tho-i-am-using-changing-parameters/m-p/11694621#M1946546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;... and here my 2 cents:&lt;/P&gt;&lt;P&gt;- a RETURNING parameter must be fully typed BUT the result may be moved to any other compatible simple type. Quite frequently the TYPE of an EXPORTING parameter causes trouble when the function or method is re-used because you are forced to us this type. A returned STRING can be assigned to any kind of character variable, a returned INT4 can be &lt;SPAN style="font-size: 13.3333px;"&gt;assigned&lt;/SPAN&gt; to any kind of numeric variable.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- functional methods (a.k.a methods with RETURN parameter) can be used in method chaining. That means whereever a parameter value is expected, you can place a functional method call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;i.e.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;VAR myvalue TYPE CURR09 value '3.14-'.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;myvalue = floor( abs( myvalue ) ). "Result is 3.00&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Regards Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 09:50:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/while-returning-parameters-even-tho-i-am-using-changing-parameters/m-p/11694621#M1946546</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2016-05-05T09:50:18Z</dc:date>
    </item>
  </channel>
</rss>

