<?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: Confusion on using USING/CHANGING in PERFORMS and FORMS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/confusion-on-using-using-changing-in-performs-and-forms/m-p/4059390#M970370</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the name itself clears that by add on CHANGING u r actually changing the variable value for further processing,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whereas the USING add on ll not do any changes in the value of variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same applied to internal table too........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regrads&lt;/P&gt;&lt;P&gt;vinsee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jun 2008 10:15:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-30T10:15:39Z</dc:date>
    <item>
      <title>Confusion on using USING/CHANGING in PERFORMS and FORMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/confusion-on-using-using-changing-in-performs-and-forms/m-p/4059388#M970368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got a little confused with PERFORM statements.&lt;/P&gt;&lt;P&gt;As far as I understood, the FORM definition is the one that ultimately defines which variable is going to be handled by value and which by reference (Using either USING, USING VALUE(...) or CHANGING (which is a particularity to deal with recursive functions). Thus, why does the PERFORM statement also accepts the CHANGING option ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I worry with the way the PERFORM statement is written or can I simply imply from it the values of the parameters passed, in a given moment of execution ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Avraham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 10:11:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/confusion-on-using-using-changing-in-performs-and-forms/m-p/4059388#M970368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T10:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Confusion on using USING/CHANGING in PERFORMS and FORMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/confusion-on-using-using-changing-in-performs-and-forms/m-p/4059389#M970369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Avraham,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just refer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db979035c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/db979035c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="398685"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 10:15:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/confusion-on-using-using-changing-in-performs-and-forms/m-p/4059389#M970369</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T10:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Confusion on using USING/CHANGING in PERFORMS and FORMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/confusion-on-using-using-changing-in-performs-and-forms/m-p/4059390#M970370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the name itself clears that by add on CHANGING u r actually changing the variable value for further processing,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whereas the USING add on ll not do any changes in the value of variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same applied to internal table too........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regrads&lt;/P&gt;&lt;P&gt;vinsee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 10:15:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/confusion-on-using-using-changing-in-performs-and-forms/m-p/4059390#M970370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T10:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Confusion on using USING/CHANGING in PERFORMS and FORMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/confusion-on-using-using-changing-in-performs-and-forms/m-p/4059391#M970371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to understand this thing just open one function module in se37&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say EXIT_SAPLMGMU_001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import ie equal to your using&lt;/P&gt;&lt;P&gt;changing is equal to changing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;means the field that are in using, u can perform some operation on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whereas for changing u can only be able to assign the value to that fields&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 10:32:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/confusion-on-using-using-changing-in-performs-and-forms/m-p/4059391#M970371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T10:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Confusion on using USING/CHANGING in PERFORMS and FORMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/confusion-on-using-using-changing-in-performs-and-forms/m-p/4059392#M970372</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 USING and CHANGING additions in the FORM statement define the formal parameters of a subroutine. The sequence of the additions is fixed. Each addition can be followed by a list of any number of formal parameters. When you call a subroutine, you must fill all formal parameters with the values from the actual parameters. At the end of the subroutine, the formal parameters are passed back to the corresponding actual parameters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within a subroutine, formal parameters behave like dynamic local data. You can use them in the same way as normal local data objects that you would declare with the DATA statement. They mask global data objects with the same name. The value of the parameters at the start of the subroutine is the value passed from the corresponding actual parameter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters Passed by Reference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You list these parameters after USING or CHANGING without the VALUE addition: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM &amp;lt;subr&amp;gt; USING    ... &amp;lt;pi&amp;gt; [TYPE &amp;lt;t&amp;gt;|LIKE &amp;lt;f&amp;gt;] ... &lt;/P&gt;&lt;P&gt;            CHANGING ... &amp;lt;pi&amp;gt; [TYPE &amp;lt;t&amp;gt;|LIKE &amp;lt;f&amp;gt;] ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formal parameter occupies no memory of its own. During a subroutine call, only the address of the actual parameter is transferred to the formal parameter. The subroutine works with the field from the calling program. If the value of the formal parameter changes, the contents of the actual parameter in the calling program also change. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For calling by reference, USING and CHANGING are equivalent. For documentation purposes, you should use USING for input parameters which are not changed in the subroutine, and CHANGING for output parameters which are changed in the subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid the value of an actual parameter being changed automatically, you must pass it by value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input Parameters That Pass Values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You list these parameters after USING with the VALUE addition: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM &amp;lt;subr&amp;gt; USING    ... VALUE(&amp;lt;pi&amp;gt;) [TYPE &amp;lt;t&amp;gt;|LIKE &amp;lt;f&amp;gt;] ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formal parameter occupies its own memory space. When you call the subroutine, the value of the actual parameter is passed to the formal parameter. If the value of the formal parameter changes, this has no effect on the actual parameter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output Parameters That Pass Values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You list these parameters after CHANGING with the VALUE addition: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM &amp;lt;subr&amp;gt; CHANGING ... VALUE(&amp;lt;pi&amp;gt;) [TYPE &amp;lt;t&amp;gt;|LIKE &amp;lt;f&amp;gt;] ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The formal parameter occupies its own memory space. When you call the subroutine, the value of the actual parameter is passed to the formal parameter. If the subroutine concludes successfully, that is, when the ENDFORM statement occurs, or when the subroutine is terminated through a CHECK or EXIT statement, the current value of the formal parameter is copied into the actual parameter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the subroutine terminates prematurely due to an error message, no value is passed. It only makes sense to terminate a subroutine through an error message in the PAI processing of a screen, that is, in a PAI module, in the AT SELECTION-SCREEN event, or after an interactive list event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 10:35:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/confusion-on-using-using-changing-in-performs-and-forms/m-p/4059392#M970372</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2008-06-30T10:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Confusion on using USING/CHANGING in PERFORMS and FORMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/confusion-on-using-using-changing-in-performs-and-forms/m-p/4059393#M970373</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;using and changing is only syntactic sugar. There is no difference in behaviour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Walter Habich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 11:23:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/confusion-on-using-using-changing-in-performs-and-forms/m-p/4059393#M970373</guid>
      <dc:creator>former_member435013</dc:creator>
      <dc:date>2008-06-30T11:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Confusion on using USING/CHANGING in PERFORMS and FORMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/confusion-on-using-using-changing-in-performs-and-forms/m-p/4059394#M970374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think people actually read my text, rather only the post subject.&lt;/P&gt;&lt;P&gt;Anyways, I'll try to ask less and test more...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 11:28:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/confusion-on-using-using-changing-in-performs-and-forms/m-p/4059394#M970374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T11:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Confusion on using USING/CHANGING in PERFORMS and FORMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/confusion-on-using-using-changing-in-performs-and-forms/m-p/4059395#M970375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The answer is the documentation of perform keyword. Just put the cursor on the "PERFORM" keyword and press F1... :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2 &lt;/P&gt;&lt;P&gt;... USING    u1 u2 u3 ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 3 &lt;/P&gt;&lt;P&gt;... CHANGING c1 c2 c3 ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;These additions must be followed by type-related actual parameters for all USING and CHANGING parameters of the called subroutine. &lt;STRONG&gt;The two additions are equivalent&lt;/STRONG&gt;. Only the order of the parameters is important. The first USING or CHANGING parameter of the PERFORM call is transferred to the first USING or CHANGING parameter of the subroutine, the second to the second, and so on. &lt;STRONG&gt;For documentation reasons you should, when calling, use the same addition as with the subroutine definition&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 14:52:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/confusion-on-using-using-changing-in-performs-and-forms/m-p/4059395#M970375</guid>
      <dc:creator>former_member194797</dc:creator>
      <dc:date>2008-06-30T14:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Confusion on using USING/CHANGING in PERFORMS and FORMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/confusion-on-using-using-changing-in-performs-and-forms/m-p/4059396#M970376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avraham,&lt;/P&gt;&lt;P&gt;Check below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on what types of variables/work areas/tables u r passing in the PERFORm statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USING=&amp;gt; Refers to call by value.&lt;/P&gt;&lt;P&gt;CHANGING=&amp;gt;Refers to call by reference.&lt;/P&gt;&lt;P&gt;TABLES=&amp;gt; Call by reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: If u r passing a global variable in USING parameter and u changed the content inside the form, The changes will be reflected after the perform call. This is because what ever changes u made to global variable are valid through out the program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHANGING: whether u r passing local or global doen't matter. Changes will be reflected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: Same thing applies for tables also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert back if u still have confusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 15:30:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/confusion-on-using-using-changing-in-performs-and-forms/m-p/4059396#M970376</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-06-30T15:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Confusion on using USING/CHANGING in PERFORMS and FORMS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/confusion-on-using-using-changing-in-performs-and-forms/m-p/4059397#M970377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Henri, this alludes more to the direction I was searching. Interesting I think I tried F1 on Perform before but I didn't get as much details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks also for Vinod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Avraham Kahana on Jul 1, 2008 2:03 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 11:03:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/confusion-on-using-using-changing-in-performs-and-forms/m-p/4059397#M970377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T11:03:19Z</dc:date>
    </item>
  </channel>
</rss>

