<?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: Difference between CHANGING and USING in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-changing-and-using/m-p/2776159#M647040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PROGRAM form_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: a1    TYPE p DECIMALS 3,&lt;/P&gt;&lt;P&gt;      a2    TYPE i,&lt;/P&gt;&lt;P&gt;      a3    TYPE d,&lt;/P&gt;&lt;P&gt;      a4    TYPE spfli-carrid,&lt;/P&gt;&lt;P&gt;      a5(1) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM subr USING a1 a2 a3 a4 a5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM subr CHANGING a1 a2 a3 a4 a5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM subr USING a1 a2 a3&lt;/P&gt;&lt;P&gt;             CHANGING a4 a5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM subr USING&lt;/P&gt;&lt;P&gt;            value(f1) TYPE p&lt;/P&gt;&lt;P&gt;            value(f2) TYPE i&lt;/P&gt;&lt;P&gt;            f3        LIKE a3&lt;/P&gt;&lt;P&gt;          CHANGING&lt;/P&gt;&lt;P&gt;            value(f4) TYPE spfli-carrid&lt;/P&gt;&lt;P&gt;            f5.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This example defines a subroutine subr with a parameter interface consisting of five formal parameters, f1 to f5. The subroutine is called internally three times. The actual parameters are the data objects a1 to a5. The three subroutine calls are all equally valid. There are further PERFORM statements that are also equally valid, so long as the sequence of the actual parameters remains unchanged. In each call, a1 is passed to f1, a2 to f2, and so on. When the subroutine ends, a3, a4, and a5 receive the values of f3, f4, and f5 respectively. The third of the subroutine calls documents in the program what the parameter interface of the subroutine shows, namely that only a4 and a5 are changed. In the case of reference parameter f3, it depends on the programming of the subroutine whether a3 is changed all the same. &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_mod_tech_describe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  date1      TYPE d,             date2      TYPE t,&lt;/P&gt;&lt;P&gt;  string1(6) TYPE c,             string2(8) TYPE c,&lt;/P&gt;&lt;P&gt;  number1    TYPE p DECIMALS 2,  number2    TYPE p DECIMALS 0,&lt;/P&gt;&lt;P&gt;  count1     TYPE i,             count2     TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM typetest USING date1 string1 number1 count1.&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;PERFORM typetest USING date2 string2 number2 count2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM typetest USING now&lt;/P&gt;&lt;P&gt;                    txt TYPE c&lt;/P&gt;&lt;P&gt;                    value(num) TYPE p&lt;/P&gt;&lt;P&gt;                    int TYPE i.&lt;/P&gt;&lt;P&gt;  DATA: t(1) TYPE c.&lt;/P&gt;&lt;P&gt;  DESCRIBE FIELD now TYPE t.&lt;/P&gt;&lt;P&gt;  WRITE: / 'Type of NOW is', t.&lt;/P&gt;&lt;P&gt;  DESCRIBE FIELD txt LENGTH t IN CHARACTER MODE.&lt;/P&gt;&lt;P&gt;  WRITE: / 'Length of TXT is', t.&lt;/P&gt;&lt;P&gt;  DESCRIBE FIELD num DECIMALS t.&lt;/P&gt;&lt;P&gt;  WRITE: / 'Decimals of NUM are', t.&lt;/P&gt;&lt;P&gt;  DESCRIBE FIELD int TYPE t.&lt;/P&gt;&lt;P&gt;  WRITE: / 'Type of INT is', t.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This produces the following output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type of NOW is D&lt;/P&gt;&lt;P&gt;Length of TXT is 6&lt;/P&gt;&lt;P&gt;Decimals of NUM are 2&lt;/P&gt;&lt;P&gt;Type of INT is I&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type of NOW is T&lt;/P&gt;&lt;P&gt;Length of TXT is 8&lt;/P&gt;&lt;P&gt;Decimals of NUM are 0&lt;/P&gt;&lt;P&gt;Type of INT is I&lt;/P&gt;&lt;P&gt;&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;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Sep 2007 09:31:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-10T09:31:32Z</dc:date>
    <item>
      <title>Difference between CHANGING and USING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-changing-and-using/m-p/2776158#M647039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;explain the concept of formal and acutal parameters... when we use changing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and when we use value with simple easy examples...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        balaji velpuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 09:28:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-changing-and-using/m-p/2776158#M647039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T09:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between CHANGING and USING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-changing-and-using/m-p/2776159#M647040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PROGRAM form_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: a1    TYPE p DECIMALS 3,&lt;/P&gt;&lt;P&gt;      a2    TYPE i,&lt;/P&gt;&lt;P&gt;      a3    TYPE d,&lt;/P&gt;&lt;P&gt;      a4    TYPE spfli-carrid,&lt;/P&gt;&lt;P&gt;      a5(1) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM subr USING a1 a2 a3 a4 a5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM subr CHANGING a1 a2 a3 a4 a5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM subr USING a1 a2 a3&lt;/P&gt;&lt;P&gt;             CHANGING a4 a5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM subr USING&lt;/P&gt;&lt;P&gt;            value(f1) TYPE p&lt;/P&gt;&lt;P&gt;            value(f2) TYPE i&lt;/P&gt;&lt;P&gt;            f3        LIKE a3&lt;/P&gt;&lt;P&gt;          CHANGING&lt;/P&gt;&lt;P&gt;            value(f4) TYPE spfli-carrid&lt;/P&gt;&lt;P&gt;            f5.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This example defines a subroutine subr with a parameter interface consisting of five formal parameters, f1 to f5. The subroutine is called internally three times. The actual parameters are the data objects a1 to a5. The three subroutine calls are all equally valid. There are further PERFORM statements that are also equally valid, so long as the sequence of the actual parameters remains unchanged. In each call, a1 is passed to f1, a2 to f2, and so on. When the subroutine ends, a3, a4, and a5 receive the values of f3, f4, and f5 respectively. The third of the subroutine calls documents in the program what the parameter interface of the subroutine shows, namely that only a4 and a5 are changed. In the case of reference parameter f3, it depends on the programming of the subroutine whether a3 is changed all the same. &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_mod_tech_describe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  date1      TYPE d,             date2      TYPE t,&lt;/P&gt;&lt;P&gt;  string1(6) TYPE c,             string2(8) TYPE c,&lt;/P&gt;&lt;P&gt;  number1    TYPE p DECIMALS 2,  number2    TYPE p DECIMALS 0,&lt;/P&gt;&lt;P&gt;  count1     TYPE i,             count2     TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM typetest USING date1 string1 number1 count1.&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;PERFORM typetest USING date2 string2 number2 count2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM typetest USING now&lt;/P&gt;&lt;P&gt;                    txt TYPE c&lt;/P&gt;&lt;P&gt;                    value(num) TYPE p&lt;/P&gt;&lt;P&gt;                    int TYPE i.&lt;/P&gt;&lt;P&gt;  DATA: t(1) TYPE c.&lt;/P&gt;&lt;P&gt;  DESCRIBE FIELD now TYPE t.&lt;/P&gt;&lt;P&gt;  WRITE: / 'Type of NOW is', t.&lt;/P&gt;&lt;P&gt;  DESCRIBE FIELD txt LENGTH t IN CHARACTER MODE.&lt;/P&gt;&lt;P&gt;  WRITE: / 'Length of TXT is', t.&lt;/P&gt;&lt;P&gt;  DESCRIBE FIELD num DECIMALS t.&lt;/P&gt;&lt;P&gt;  WRITE: / 'Decimals of NUM are', t.&lt;/P&gt;&lt;P&gt;  DESCRIBE FIELD int TYPE t.&lt;/P&gt;&lt;P&gt;  WRITE: / 'Type of INT is', t.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This produces the following output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type of NOW is D&lt;/P&gt;&lt;P&gt;Length of TXT is 6&lt;/P&gt;&lt;P&gt;Decimals of NUM are 2&lt;/P&gt;&lt;P&gt;Type of INT is I&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type of NOW is T&lt;/P&gt;&lt;P&gt;Length of TXT is 8&lt;/P&gt;&lt;P&gt;Decimals of NUM are 0&lt;/P&gt;&lt;P&gt;Type of INT is I&lt;/P&gt;&lt;P&gt;&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;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 09:31:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-changing-and-using/m-p/2776159#M647040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T09:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between CHANGING and USING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-changing-and-using/m-p/2776160#M647041</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&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db984635c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/db984635c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 09:39:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-changing-and-using/m-p/2776160#M647041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T09:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between CHANGING and USING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-changing-and-using/m-p/2776161#M647042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;added to pavan&lt;/P&gt;&lt;P&gt;Changing and Using has the same affect,&lt;/P&gt;&lt;P&gt;but you will get one warning in EXTENDED PROGRAM CHECK,&lt;/P&gt;&lt;P&gt;and good programming knowledge where to use using and changing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if it is helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 09:39:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-changing-and-using/m-p/2776161#M647042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T09:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between CHANGING and USING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-changing-and-using/m-p/2776162#M647043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Formal Parameters   - are specified in the Subroutine Definition.&lt;/P&gt;&lt;P&gt; Actual Parameters - are specified in the Calling Statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the subroutine is called, formal parameters must be specialized by means of&lt;/P&gt;&lt;P&gt;corresponding global variables (actual parameters), in order to implement the&lt;/P&gt;&lt;P&gt;reference of the subroutine processing to real variables. This assignment of actual&lt;/P&gt;&lt;P&gt;parameters to formal parameters when calling a subroutine is called parameter&lt;/P&gt;&lt;P&gt;passing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Call by value&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;You list each of the formal parameters that is supposed to have the pass type 'call by value'   with the VALUE prefix in the &amp;lt;b&amp;gt;USING&amp;lt;/b&amp;gt; section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Call by value and result&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;You list each of the formal parameters that is supposed to have the pass type&lt;/P&gt;&lt;P&gt;'call by value and result'   with the &amp;lt;b&amp;gt;VALUE&amp;lt;/b&amp;gt; prefix in the &amp;lt;b&amp;gt;CHANGING&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Call by reference&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;You list each of the formal parameters that is supposed to have the pass type 'call&lt;/P&gt;&lt;P&gt;by reference'  without the VALUE prefix in the &amp;lt;b&amp;gt;CHANGING&amp;lt;/b&amp;gt; section.&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;LIJO&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 09:43:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-changing-and-using/m-p/2776162#M647043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T09:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between CHANGING and USING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-changing-and-using/m-p/2776163#M647044</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;when ur using a subroutine in ur program then&lt;/P&gt;&lt;P&gt;while sometimes u need to pass some parameters to sub routine from main program such parameters are called as actual parameters and  in subroutine while may some more parameters which are called as formal parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in main program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform addition(a,b). -&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;&amp;gt; these 2 parameters are called as actual parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actual parameters -&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt; parameters used in sub routine calling&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form addition using values&lt;/P&gt;&lt;P&gt;        c type i,&lt;/P&gt;&lt;P&gt;        d type i. -&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;P&gt;&amp;gt; these 2 parameters are called formal parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;formal parameters -&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;&amp;gt; parameters used in sub routine definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when u r passing values we use VALUE keyword.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHANGING  is used for passing values from main function to a subroutine and changing those values in subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note: then can also be done using keyword USING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Suresh Aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 10:23:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-changing-and-using/m-p/2776163#M647044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T10:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between CHANGING and USING</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-changing-and-using/m-p/2776164#M647045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi balaji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls check the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass by value&lt;/P&gt;&lt;P&gt;============&lt;/P&gt;&lt;P&gt;x=5.&lt;/P&gt;&lt;P&gt;perform valuechange using x.&lt;/P&gt;&lt;P&gt;write / x.&lt;/P&gt;&lt;P&gt;form valuechange values x.&lt;/P&gt;&lt;P&gt;x=10.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;Result=5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass by reference&lt;/P&gt;&lt;P&gt;=============&lt;/P&gt;&lt;P&gt;x=5.&lt;/P&gt;&lt;P&gt;perform valuechange changing x.&lt;/P&gt;&lt;P&gt;write / x.&lt;/P&gt;&lt;P&gt;form valuechange values x.&lt;/P&gt;&lt;P&gt;x=10.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;Result=10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sheron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 10:38:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-changing-and-using/m-p/2776164#M647045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T10:38:16Z</dc:date>
    </item>
  </channel>
</rss>

