<?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: Call by reference and Changing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-by-reference-and-changing/m-p/2570456#M586851</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sachin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;no its not like that. in pass by reference the address of the variables are copied not the value . in this example the address of these varables num1 and num2  gets copied to&lt;/P&gt;&lt;P&gt; p_num1 and p_num2. thatswhy it is pass by reference&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it clears ur doubt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz dont forget to reward points if useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jul 2007 10:20:00 GMT</pubDate>
    <dc:creator>Vijay</dc:creator>
    <dc:date>2007-07-30T10:20:00Z</dc:date>
    <item>
      <title>Call by reference and Changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-by-reference-and-changing/m-p/2570451#M586846</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;Can anybody tell me what is difference between Call by reference and Changing parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good help will be  rewarded&lt;/P&gt;&lt;P&gt;Sachin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 09:50:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-by-reference-and-changing/m-p/2570451#M586846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T09:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Call by reference and Changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-by-reference-and-changing/m-p/2570452#M586847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sachin &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;: actaul parameters are passed, no formal parameters exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Changing parameters&amp;lt;/b&amp;gt;: pass by value,  actaul parameters are passed to formal parameters , temporary memeory allocated to formal parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please &amp;lt;b&amp;gt;Go thru this link it will help you a lot.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db984635c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db984635c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz dont forget to reward if useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 09:55:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-by-reference-and-changing/m-p/2570452#M586847</guid>
      <dc:creator>Vijay</dc:creator>
      <dc:date>2007-07-30T09:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Call by reference and Changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-by-reference-and-changing/m-p/2570453#M586848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TRY this as it is giving error bcoz of no ACTUAL parameters.&lt;/P&gt;&lt;P&gt;Pls correct me if i am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: num1 TYPE i,&lt;/P&gt;&lt;P&gt;      num2 TYPE i,&lt;/P&gt;&lt;P&gt;      sum  TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num1 = 2. num2 = 4. sum = 0.&lt;/P&gt;&lt;P&gt;PERFORM expRef USING num1 num2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM expRef.&lt;/P&gt;&lt;P&gt;  data: add_sum type i.&lt;/P&gt;&lt;P&gt;  add_sum = num1 + num2.&lt;/P&gt;&lt;P&gt;  write: / 'Sum is:',add_sum.&lt;/P&gt;&lt;P&gt;ENDFORM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 10:02:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-by-reference-and-changing/m-p/2570453#M586848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T10:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Call by reference and Changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-by-reference-and-changing/m-p/2570454#M586849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sachin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is ur correct code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: num1 TYPE i,
num2 TYPE i,
sum TYPE i.

num1 = 2. num2 = 4. sum = 0.
PERFORM expRef USING num1 num2.


FORM expRef using p_num1 p_num2.
data: add_sum type i.
add_sum = p_num1 + p_num2.
write: / 'Sum is:',add_sum.
ENDFORM.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz dont forget to reward points if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 10:07:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-by-reference-and-changing/m-p/2570454#M586849</guid>
      <dc:creator>Vijay</dc:creator>
      <dc:date>2007-07-30T10:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Call by reference and Changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-by-reference-and-changing/m-p/2570455#M586850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vijay,&lt;/P&gt;&lt;P&gt;That means in pass by reference we need to send formal parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 10:17:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-by-reference-and-changing/m-p/2570455#M586850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T10:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Call by reference and Changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-by-reference-and-changing/m-p/2570456#M586851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sachin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;no its not like that. in pass by reference the address of the variables are copied not the value . in this example the address of these varables num1 and num2  gets copied to&lt;/P&gt;&lt;P&gt; p_num1 and p_num2. thatswhy it is pass by reference&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it clears ur doubt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz dont forget to reward points if useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 10:20:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-by-reference-and-changing/m-p/2570456#M586851</guid>
      <dc:creator>Vijay</dc:creator>
      <dc:date>2007-07-30T10:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Call by reference and Changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-by-reference-and-changing/m-p/2570457#M586852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sachin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any problem.&lt;/P&gt;&lt;P&gt;please close the thread if  answered and reward points accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 10:39:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-by-reference-and-changing/m-p/2570457#M586852</guid>
      <dc:creator>Vijay</dc:creator>
      <dc:date>2007-07-30T10:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Call by reference and Changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-by-reference-and-changing/m-p/2570458#M586853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;I am not been able to reward points. SDN is giving error while assigning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 11:57:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-by-reference-and-changing/m-p/2570458#M586853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T11:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Call by reference and Changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-by-reference-and-changing/m-p/2570459#M586854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI SACHIN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;keep trying but please dont forget :):):):)&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;and &amp;lt;b&amp;gt;one more thing to clear ur doubt&amp;lt;/b&amp;gt;. you change the values of p_num1 and p_num2 in form endform. u see the value of num1 and num2 gets chenged which wont happen at all if it is pass by value . so its clear that its pass by reference.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXAMPLE&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: num1 TYPE i,
num2 TYPE i,
sum TYPE i.

num1 = 2. num2 = 4. sum = 0.
PERFORM expRef USING num1 num2.
write: / num1 , num2.

FORM expRef using p_num1 p_num2.
data: add_sum type i.
add_sum = p_num1 + p_num2.
p_num1 = 3.
p_num2 = 5.

write: / 'Sum is:',add_sum.
ENDFORM.

&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;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 12:01:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-by-reference-and-changing/m-p/2570459#M586854</guid>
      <dc:creator>Vijay</dc:creator>
      <dc:date>2007-07-30T12:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Call by reference and Changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-by-reference-and-changing/m-p/2570460#M586855</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;i guess there are 3 options while assigning points &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;thnx anyways..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 12:10:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-by-reference-and-changing/m-p/2570460#M586855</guid>
      <dc:creator>Vijay</dc:creator>
      <dc:date>2007-07-30T12:10:29Z</dc:date>
    </item>
  </channel>
</rss>

