<?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 parameter passing - USING in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-passing-using/m-p/2838182#M664661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in parameter passing, if USING and CHANGING serve the same purpose (see my previous post - &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="586252"&gt;&lt;/A&gt;) and the only difference is when you use CHANGING you are going to do something with the formal parameter inside the FORM. Does this mean I cannot do operation (like addition if the formal parameter is an integer type) if USING is being used? i tried doing that and i used USING and surprisingly it allowed the operation. anyone can help me understand pls? &amp;lt;b&amp;gt;thanks!&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Oct 2007 10:09:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-06T10:09:22Z</dc:date>
    <item>
      <title>parameter passing - USING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-passing-using/m-p/2838182#M664661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in parameter passing, if USING and CHANGING serve the same purpose (see my previous post - &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="586252"&gt;&lt;/A&gt;) and the only difference is when you use CHANGING you are going to do something with the formal parameter inside the FORM. Does this mean I cannot do operation (like addition if the formal parameter is an integer type) if USING is being used? i tried doing that and i used USING and surprisingly it allowed the operation. anyone can help me understand pls? &amp;lt;b&amp;gt;thanks!&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2007 10:09:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-passing-using/m-p/2838182#M664661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-06T10:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: parameter passing - USING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-passing-using/m-p/2838183#M664662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jabbar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I told you in the previous post both of them have same function.For better understanding we use Changing parameter.I.e. suppose you are passing two actual parameters to the subroutine.one parameter is being changed in the form and the other one is not getting changed.Now if use only USING also it will work.But for a a person checking the code he cant make ouy which one is getting changed.SO use CHANGING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In short&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The additions USING and CHANGING have exactly the&lt;/P&gt;&lt;P&gt;same meaning. You only need to use one or the other. However, for documentary reasons, it is a&lt;/P&gt;&lt;P&gt;good idea to divide the parameters in the same way in which they occur in the interface&lt;/P&gt;&lt;P&gt;definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Raghu Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2007 10:15:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-passing-using/m-p/2838183#M664662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-06T10:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: parameter passing - USING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-passing-using/m-p/2838184#M664663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jabbar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For better understanding, copy paste this code into a test program and execute, check the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: v1 type c VALUE 'A',
      v2 type c VALUE 'A',
      v3 type c VALUE 'A',
      v4 type c VALUE 'A',
      v5 type c VALUE 'A'.


perform check_params USING v1
                           v2
                           v3
                     CHANGING v4
                              v5.

WRITE : / v1, v2, v3, v4, v5.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  CHECK_PARAMS
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;P_V1  text
*      --&amp;gt;P_V2  text
*      --&amp;gt;P_V3  text
*      &amp;lt;--P_V4  text
*      &amp;lt;--P_V5  text
*----------------------------------------------------------------------*
form CHECK_PARAMS  using    VALUE(p_v1)
                            p_v2
                            VALUE(p_v3)
                   changing VALUE(p_v4)
                            p_v5.


p_v1 = 'B'.
p_v2 = 'C'.
p_v3 = 'D'.
p_v4 = 'E'.
p_v5 = 'F'.

WRITE : / p_v1, p_v2, p_v3, p_v4, P_v5.
WRITE : / v1, v2, v3, v4, v5.
endform.                    " CHECK_PARAMS&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srihari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2007 10:20:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-passing-using/m-p/2838184#M664663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-06T10:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: parameter passing - USING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-passing-using/m-p/2838185#M664664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jabbar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you got the concepts wrong for using and changing.&lt;/P&gt;&lt;P&gt;Just to keep it simple the parameters can be passed to forms by using or changing.&lt;/P&gt;&lt;P&gt;when parameterd passed bu USING it will have diferent memory for formal and actual parameters so the value of actual variable will not changed whatever operation you do in FORMS the same is not true for CHANGING. When any operation done on the parameter the actual value will change as they have the same memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2007 10:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-passing-using/m-p/2838185#M664664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-06T10:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: parameter passing - USING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-passing-using/m-p/2838186#M664665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Raghu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; The additions USING and CHANGING have exactly the&lt;/P&gt;&lt;P&gt;&amp;gt; same meaning. You only need to use one or the other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This holds good only if all parameters are being passed by 'REFERENCE' (This is default), If you pass the values into the form by 'VALUE' the behavior is different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is why you get a syntax check warning whenever you try to pass a 'USING' value by reference to a form.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2007 10:30:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-passing-using/m-p/2838186#M664665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-06T10:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: parameter passing - USING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-passing-using/m-p/2838187#M664666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;thanks to all of you!&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2007 10:38:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-passing-using/m-p/2838187#M664666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-06T10:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: parameter passing - USING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-passing-using/m-p/2838188#M664667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srihari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats true.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2007 10:39:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameter-passing-using/m-p/2838188#M664667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-06T10:39:27Z</dc:date>
    </item>
  </channel>
</rss>

