<?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 VALUE and EXPORTING in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/returning-value-and-exporting/m-p/4033481#M964038</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basiaclly speaking, if you look at the constructor of a class, it generally returns the object of the class. You cannot have a exporting parameters. So exporting is generally used if you need to retun more than one value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general a method of a class can either use an exporting or returning parameter. It depends on how the developer wants to use it. There are certain restrictions that one should be aware about before making use of the returning.&lt;/P&gt;&lt;P&gt;For eg. If one uses returning parameter, both changing/exporting cannot be used.&lt;/P&gt;&lt;P&gt;          &lt;/P&gt;&lt;P&gt;I hope this clarifies your doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jun 2008 06:32:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-12T06:32:14Z</dc:date>
    <item>
      <title>RETURNING VALUE and EXPORTING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/returning-value-and-exporting/m-p/4033475#M964032</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;can anyone help me out by explaining me the difference between RETURNING VALUE and EXPORTING in the abap objects.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Preetesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 06:30:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/returning-value-and-exporting/m-p/4033475#M964032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T06:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: RETURNING VALUE and EXPORTING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/returning-value-and-exporting/m-p/4033476#M964033</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;To get some values from a method , one can use the EXPORTING, CHANGING or RETURNING parameters.&lt;/P&gt;&lt;P&gt;If one uses RETURNING parameters, the following restrictions apply:-&lt;/P&gt;&lt;P&gt;(1) No EXPORTING/CHANGING parameters can be used for the method.&lt;/P&gt;&lt;P&gt;(2) Only one RETURNING parameter can be used.&lt;/P&gt;&lt;P&gt;(3) RETURNING parameters are only passed by value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swetha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 06:40:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/returning-value-and-exporting/m-p/4033476#M964033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T06:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: RETURNING VALUE and EXPORTING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/returning-value-and-exporting/m-p/4033477#M964034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pretesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Methods having a RETURNING parameter are like Java class methods which have a single returning value as well.&lt;/P&gt;&lt;P&gt;In addition, you can use so-called &lt;STRONG&gt;functional&lt;/STRONG&gt; method calls, .e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD cf_reca_message_list=&amp;gt;create
  RETURNING
    ro_instance = go_msglist.

" OR function method call:
  go_msglist = cf_reca_message_list=&amp;gt;create( ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 06:57:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/returning-value-and-exporting/m-p/4033477#M964034</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-06-11T06:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: RETURNING VALUE and EXPORTING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/returning-value-and-exporting/m-p/4033478#M964035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Methods that have a RETURNING parameter are described as functional methods&lt;/P&gt;&lt;P&gt;This means that they can have neither an EXPORTING nor a CHANGING&lt;/P&gt;&lt;P&gt;parameter. The RETURNING parameter must always be passed using the VALUE&lt;/P&gt;&lt;P&gt;addition, that is, passed by value.&lt;/P&gt;&lt;P&gt;Functional methods can be called directly within various expressions:&lt;/P&gt;&lt;P&gt;&amp;#149; Logical expressions: IF, ELSEIF, WHILE, CHECK, WAIT&lt;/P&gt;&lt;P&gt;&amp;#149; Case conditions: CASE, WHEN&lt;/P&gt;&lt;P&gt;&amp;#149; Arithmetic expressions and bit expressions: COMPUTE&lt;/P&gt;&lt;P&gt;&amp;#149; Sources of values as a local copy: MOVE&lt;/P&gt;&lt;P&gt;&amp;#149; Search clauses for internal tables, assuming that the operand is not a&lt;/P&gt;&lt;P&gt;component of the table row: LOOP AT ... WHERE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 08:42:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/returning-value-and-exporting/m-p/4033478#M964035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T08:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: RETURNING VALUE and EXPORTING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/returning-value-and-exporting/m-p/4033479#M964036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanx 4 the reply .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but still i didn't understand where to use the RETURNING VALUE and where EXPORTING....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Preetesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 11:36:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/returning-value-and-exporting/m-p/4033479#M964036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T11:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: RETURNING VALUE and EXPORTING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/returning-value-and-exporting/m-p/4033480#M964037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Basically, it depends on the situation and your personal taste. As swetha stated, several restrictions apply when using RETURN VALUE (the most important: only one return parameter allowed). However, it might be used for more convenient programming, as Uwe supposes. E.g., checking a boolean value with Exporting would look like this:&lt;/P&gt;&lt;P&gt;object-&amp;gt;method( IMPORTING value = boolvar ).&lt;/P&gt;&lt;P&gt;IF boolvar eq 'X' ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whereas a functional call would look like&lt;/P&gt;&lt;P&gt;IF object-&amp;gt;method( ) eq 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might now also understand, why a method could only have one return value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Enrico&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 19:55:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/returning-value-and-exporting/m-p/4033480#M964037</guid>
      <dc:creator>former_member67568</dc:creator>
      <dc:date>2008-06-11T19:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: RETURNING VALUE and EXPORTING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/returning-value-and-exporting/m-p/4033481#M964038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basiaclly speaking, if you look at the constructor of a class, it generally returns the object of the class. You cannot have a exporting parameters. So exporting is generally used if you need to retun more than one value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general a method of a class can either use an exporting or returning parameter. It depends on how the developer wants to use it. There are certain restrictions that one should be aware about before making use of the returning.&lt;/P&gt;&lt;P&gt;For eg. If one uses returning parameter, both changing/exporting cannot be used.&lt;/P&gt;&lt;P&gt;          &lt;/P&gt;&lt;P&gt;I hope this clarifies your doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 06:32:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/returning-value-and-exporting/m-p/4033481#M964038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T06:32:14Z</dc:date>
    </item>
  </channel>
</rss>

