<?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 parameters in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/3988129#M952743</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts !&lt;/P&gt;&lt;P&gt;plz tell me the difference between exporting/importing /returning parameters while defining class.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jun 2008 06:35:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-09T06:35:47Z</dc:date>
    <item>
      <title>parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/3988129#M952743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts !&lt;/P&gt;&lt;P&gt;plz tell me the difference between exporting/importing /returning parameters while defining class.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2008 06:35:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/3988129#M952743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-09T06:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/3988130#M952744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ranjna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters are used in the implementation part of the CLASS not the definition part that too in the methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Methods are internal procedures in classes that determine the behavior of the&lt;/P&gt;&lt;P&gt;objects. They can access all attributes in their class and can therefore change the&lt;/P&gt;&lt;P&gt;state of other elements.&lt;/P&gt;&lt;P&gt;Methods have a signature (interface parameters and exceptions) that enables them&lt;/P&gt;&lt;P&gt;to receive values when they are called and pass values back to the calling program.&lt;/P&gt;&lt;P&gt;Methods can have any number of IMPORTING, EXPORTING, and CHANGING&lt;/P&gt;&lt;P&gt;parameters. All parameters can be passed by value or reference.&lt;/P&gt;&lt;P&gt;One method return value can be defined using the RETURN parameter. It&lt;/P&gt;&lt;P&gt;must always be transferred as a value. In this case, you cannot then define the&lt;/P&gt;&lt;P&gt;EXPORTING and CHANGING parameters. You can also use the RETURNING&lt;/P&gt;&lt;P&gt;parameter to define functional methods. This will be discussed in more detail&lt;/P&gt;&lt;P&gt;later.&lt;/P&gt;&lt;P&gt;All input parameters (IMPORTING and CHANGING parameters) can be defined&lt;/P&gt;&lt;P&gt;as optional parameters in the declaration using the OPTIONAL or DEFAULT&lt;/P&gt;&lt;P&gt;additions. These parameters then do not necessarily have to be transferred when&lt;/P&gt;&lt;P&gt;the object is called. If you use the OPTIONAL addition, the parameter remains&lt;/P&gt;&lt;P&gt;initialized according to type, whereas the DEFAULT addition allows you to enter&lt;/P&gt;&lt;P&gt;a start value.&lt;/P&gt;&lt;P&gt;Like function modules, methods also support the return value SY-SUBRC,&lt;/P&gt;&lt;P&gt;but only if the signature exceptions were defined using EXCEPTIONS. As of&lt;/P&gt;&lt;P&gt;SAP Web AS 6.10, the RAISING addition can be used in its place to propagate&lt;/P&gt;&lt;P&gt;class-based exceptions. The caller then handles these class-based exceptions&lt;/P&gt;&lt;P&gt;without evaluating the SY-SUBRC return value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Methods also have to be assigned to a visibility section. This determines whether&lt;/P&gt;&lt;P&gt;the methods are called from outside the class or only from within the class. Thus,&lt;/P&gt;&lt;P&gt;private methods only serve the purpose of internal modularization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You define private methods in the PRIVATE SECTION of a class. You define&lt;/P&gt;&lt;P&gt;public attributes in the PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;It is not possible to directly access private methods from outside. However, a&lt;/P&gt;&lt;P&gt;private method can be called by a public method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is useful to you.  Reward points if useful.&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;Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2008 07:04:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/3988130#M952744</guid>
      <dc:creator>former_member188594</dc:creator>
      <dc:date>2008-06-09T07:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/3988131#M952745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Thanks for your useful reply .but plz explain me  RETURN parameter in details .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2008 07:54:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/3988131#M952745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-09T07:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/3988132#M952746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You know that the above answer was just taken from the help documentation?  You could have saved time looking it up yourself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2008 07:57:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/3988132#M952746</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-06-09T07:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/3988133#M952747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;refer to this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/08/d27c03b81011d194f60000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/08/d27c03b81011d194f60000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2008 10:28:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/3988133#M952747</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-09T10:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/3988134#M952748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The return works like the &lt;EM&gt;inline function&lt;/EM&gt; in C++. So you can have only one &lt;STRONG&gt;returning&lt;/STRONG&gt; parameter. But one can &lt;STRONG&gt;export&lt;/STRONG&gt; multiple values.&lt;/P&gt;&lt;P&gt;On the other hand &lt;STRONG&gt;Changing&lt;/STRONG&gt; corresponds to the &lt;EM&gt;pass by reference&lt;/EM&gt; school of thought.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are not exact explanations, but just to make u understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward, if it is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subhra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 09:26:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/3988134#M952748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T09:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/3988135#M952749</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;There are generally 4 parameters:&lt;/P&gt;&lt;P&gt;1. Importing&lt;/P&gt;&lt;P&gt;2. Exporting/Changing/Returning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Importing is used for passing value from the calling program.&lt;/P&gt;&lt;P&gt;For returning the value one can use Exporting/Changing/Returning. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returning has some limitations. &lt;/P&gt;&lt;P&gt;a. Only one value can be returned. (a simple example is constructor which returns object)&lt;/P&gt;&lt;P&gt;b. If returning is used Exporting/Changing cannot be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exporting is used to transfer multiple values, while changing is used if you have a huge data in the calling program that needs to be accesed here. This is more to do with memory management.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this clarifies.&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 09:46:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters/m-p/3988135#M952749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T09:46:14Z</dc:date>
    </item>
  </channel>
</rss>

