<?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: Using and changing explaination with the below code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-and-changing-explaination-with-the-below-code/m-p/12109723#M1973492</link>
    <description>&lt;P&gt;it is possible but it is "illegal" for SAP&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;A USING parameter declared for pass by reference behaves in the same way as a CHANGING parameter, which however means that the content of the actual parameter could be changed in an illegal way.                                                                                                        &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if you would like to work with this kind of things, the better is to use Object oriented &lt;/P&gt;</description>
    <pubDate>Fri, 13 Dec 2019 14:48:08 GMT</pubDate>
    <dc:creator>FredericGirod</dc:creator>
    <dc:date>2019-12-13T14:48:08Z</dc:date>
    <item>
      <title>Using and changing explaination with the below code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-and-changing-explaination-with-the-below-code/m-p/12109722#M1973491</link>
      <description>&lt;P&gt;Hello experts,&lt;/P&gt;
  &lt;P&gt;i have written a simple code to understand the difference between the changing and using parameters, but i am getting the value as 3 4 0. why am i not getting the value as 1 2 0 for p1 p2 p3.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;

START-OF-SELECTION.

perform test.

form test.

 data: p1 type i value 1,

      p2 type i value 2,

      p3 type i.

 perform test1 using p1 p2 changing p3.

 WRITE: p1,p2,p3.

ENDFORM.

form two USING p2 p3.

  write:/ p3,' ',p2.

endform.

FORM test1 USING p1 TYPE i p2 TYPE i  CHANGING p3 TYPE i.

      data : p4 type i.

 p1 = 3.

 p2 = 4.


ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Dec 2019 14:30:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-and-changing-explaination-with-the-below-code/m-p/12109722#M1973491</guid>
      <dc:creator>former_member649377</dc:creator>
      <dc:date>2019-12-13T14:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using and changing explaination with the below code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-and-changing-explaination-with-the-below-code/m-p/12109723#M1973492</link>
      <description>&lt;P&gt;it is possible but it is "illegal" for SAP&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;A USING parameter declared for pass by reference behaves in the same way as a CHANGING parameter, which however means that the content of the actual parameter could be changed in an illegal way.                                                                                                        &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if you would like to work with this kind of things, the better is to use Object oriented &lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 14:48:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-and-changing-explaination-with-the-below-code/m-p/12109723#M1973492</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2019-12-13T14:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using and changing explaination with the below code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-and-changing-explaination-with-the-below-code/m-p/12109724#M1973493</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;If the additions USING and CHANGING are specified, a type-friendly actual parameter p1 p2 ... must be assigned to each of the formal parameters p1 p2 ... and change p3 ... defined using the same additions of the statement FORM TEST1.  Together, the actual parameters specified after USING and CHANGING are a single shared list. They are assigned to the formal parameters using the position in the shared list.&lt;BR /&gt; that why you value will change according to that. If you need to print 1 2 0 you have pass only the value. kindly look at bellow code .&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
START-OF-SELECTION.

perform test.

form test.
data: p1 type i value 1,

      p2 type i value 2,
      p3 type i.

 perform test1 using p1 p2 changing p3.


 WRITE: p1,p2,p3.

ENDFORM.

form two USING p2 p3.
  write:/ p3,' ',p2.

endform.

FORM test1 USING VALUE(p1)  VALUE(p2)  CHANGING VALUE(p3).

data : p4 type i.

 p1 = 3.
 p2 = 4.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Further plz refer this.&lt;A href="https://help.sap.com/doc/abapdocu_751_index_htm/7.51/en-us/abapperform_parameters.htm#!ABAP_ADDITION_2@2@"&gt;PERFORM - parameter_list&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 15:11:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-and-changing-explaination-with-the-below-code/m-p/12109724#M1973493</guid>
      <dc:creator>Nawanandana</dc:creator>
      <dc:date>2019-12-13T15:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using and changing explaination with the below code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-and-changing-explaination-with-the-below-code/m-p/12109725#M1973494</link>
      <description>&lt;P&gt;USING and CHANGING have an identical "changing" behavior if the parameter is passed by reference, but have the expected behaviors (USING arguments cannot change) if the parameter is passed by value.&lt;/P&gt;&lt;P&gt;Creating subroutines is obsolete, use methods instead.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 15:42:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-and-changing-explaination-with-the-below-code/m-p/12109725#M1973494</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-12-13T15:42:25Z</dc:date>
    </item>
  </channel>
</rss>

