<?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: Perform Statement - Using  &amp; Changing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-using-changing/m-p/1083287#M98490</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For USING:&lt;/P&gt;&lt;P&gt;These two additions have an identical function. However, you should always use the same addition as is used in the corresponding FORM definition (for documentary reasons). &lt;/P&gt;&lt;P&gt;The statement passes the parameters p1 p2 p3 ... to the subroutine. A subroutine may have any number of parameters. &lt;/P&gt;&lt;P&gt;The order in which you list the parameters is crucial. The first parameter in the PERFORM statement is passed to the first formal parameter in the FORM defintion, the second to the second, and so on. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can specify offset and length of a parameter as variables. If you use the addition ' ...USING p1+off(*)', the parameter p1 will be passed with the offset off, but the length will not exceed the total length of the field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;DATA: NUMBER_I TYPE I VALUE 5, &lt;/P&gt;&lt;P&gt;      NUMBER_P TYPE P VALUE 4, &lt;/P&gt;&lt;P&gt;      BEGIN OF PERSON, &lt;/P&gt;&lt;P&gt;        NAME(10)      VALUE 'Paul', &lt;/P&gt;&lt;P&gt;        AGE TYPE I    VALUE 28, &lt;/P&gt;&lt;P&gt;      END   OF PERSON, &lt;/P&gt;&lt;P&gt;      ALPHA(10)       VALUE 'abcdefghij'. &lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;POINTER&amp;gt; TYPE ANY. &lt;/P&gt;&lt;P&gt;ASSIGN NUMBER_P TO &amp;lt;POINTER&amp;gt;. &lt;/P&gt;&lt;P&gt;PERFORM CHANGE USING 1 &lt;/P&gt;&lt;P&gt;                     NUMBER_I &lt;/P&gt;&lt;P&gt;                     NUMBER_P &lt;/P&gt;&lt;P&gt;                     &amp;lt;POINTER&amp;gt; &lt;/P&gt;&lt;P&gt;                     PERSON &lt;/P&gt;&lt;P&gt;                     ALPHA+NUMBER_I(&amp;lt;POINTER&amp;gt;). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM CHANGE USING VALUE(PAR_1) &lt;/P&gt;&lt;P&gt;                  PAR_NUMBER_I &lt;/P&gt;&lt;P&gt;                  PAR_NUMBER_P &lt;/P&gt;&lt;P&gt;                  PAR_POINTER &lt;/P&gt;&lt;P&gt;                  PAR_PERSON STRUCTURE PERSON &lt;/P&gt;&lt;P&gt;                  PAR_PART_OF_ALPHA. &lt;/P&gt;&lt;P&gt;  ADD PAR_1 TO PAR_NUMBER_I. &lt;/P&gt;&lt;P&gt;  PAR_NUMBER_P = 0. &lt;/P&gt;&lt;P&gt;  PAR_PERSON-NAME+4(1) = ALPHA. &lt;/P&gt;&lt;P&gt;  PAR_PERSON-AGE = NUMBER_P + 25. &lt;/P&gt;&lt;P&gt;  ADD NUMBER_I TO PAR_POINTER. &lt;/P&gt;&lt;P&gt;  PAR_PART_OF_ALPHA = SPACE. &lt;/P&gt;&lt;P&gt;ENDFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field contents after the PERFORM statement: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NUMBER_I    = 6 &lt;/P&gt;&lt;P&gt;NUMBER_P    = 6 &lt;/P&gt;&lt;P&gt;&amp;lt;POINTER&amp;gt;   = 6 &lt;/P&gt;&lt;P&gt;PERSON-NAME = 'Paula' &lt;/P&gt;&lt;P&gt;PERSON-AGE  = 25 &lt;/P&gt;&lt;P&gt;ALPHA       = 'abcde    j' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;If you want to pass the body of an internal table itab that has a header line, you must use the notation itab[] (see Data Objects). If you do not use the brackets, the header line of the tabel is passed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field types and lengths of the parameters remain the same. If a parameter is changed within the subroutine, it will still have the changed value after the subroutine has finished. This does not apply to parameters passed using VALUE. werden. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you pass literals, they may not be changed unless you pass them to a formal parameter defined with USING VALUE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ITAB_TYPE, &lt;/P&gt;&lt;P&gt;         TEXT(50), &lt;/P&gt;&lt;P&gt;         NUMBER TYPE I, &lt;/P&gt;&lt;P&gt;       END OF ITAB_TYPE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:  ITAB TYPE STANDARD TABLE OF ITAB_TYPE WITH &lt;/P&gt;&lt;P&gt;                 NON-UNIQUE DEFAULT KEY INITIAL SIZE 100, &lt;/P&gt;&lt;P&gt;       BEGIN OF ITAB_LINE, &lt;/P&gt;&lt;P&gt;         TEXT(50), &lt;/P&gt;&lt;P&gt;         NUMBER TYPE I, &lt;/P&gt;&lt;P&gt;       END OF ITAB_LINE, &lt;/P&gt;&lt;P&gt;       STRUC like T005T. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;PERFORM DISPLAY TABLES ITAB &lt;/P&gt;&lt;P&gt;                USING  STRUC. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM DISPLAY TABLES PAR_ITAB STRUCTURE ITAB_LINE &lt;/P&gt;&lt;P&gt;             USING  PAR      like      T005T. &lt;/P&gt;&lt;P&gt;  DATA: LOC_COMPARE LIKE PAR_ITAB-TEXT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE: / PAR-LAND1, PAR-LANDX. &lt;/P&gt;&lt;P&gt;  ... &lt;/P&gt;&lt;P&gt;  LOOP AT PAR_ITAB WHERE TEXT = LOC_COMPARE. &lt;/P&gt;&lt;P&gt;    ... &lt;/P&gt;&lt;P&gt;  ENDLOOP. &lt;/P&gt;&lt;P&gt;ENDFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within the subroutine DISPLAY, you can use any internal table operation to work with the internal table that you passed to it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;If you use TABLES, it must always be the first addition in a PERFORM statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Nov 2005 05:31:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-11T05:31:28Z</dc:date>
    <item>
      <title>Perform Statement - Using  &amp; Changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-using-changing/m-p/1083285#M98488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          Can u pls clarify this ??? As i know Using in perform statement is used to pass the parameters to the form....So what's the use of changing extention ??? Can you explain me with an example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2005 05:23:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-using-changing/m-p/1083285#M98488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-11T05:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Perform Statement - Using  &amp; Changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-using-changing/m-p/1083286#M98489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using - Pass By Value&lt;/P&gt;&lt;P&gt;Changing - Pass By Reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change the value of the parameter which comes changing list inside the perform and the value will be reflected outside the subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2005 05:28:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-using-changing/m-p/1083286#M98489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-11T05:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Perform Statement - Using  &amp; Changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-using-changing/m-p/1083287#M98490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For USING:&lt;/P&gt;&lt;P&gt;These two additions have an identical function. However, you should always use the same addition as is used in the corresponding FORM definition (for documentary reasons). &lt;/P&gt;&lt;P&gt;The statement passes the parameters p1 p2 p3 ... to the subroutine. A subroutine may have any number of parameters. &lt;/P&gt;&lt;P&gt;The order in which you list the parameters is crucial. The first parameter in the PERFORM statement is passed to the first formal parameter in the FORM defintion, the second to the second, and so on. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can specify offset and length of a parameter as variables. If you use the addition ' ...USING p1+off(*)', the parameter p1 will be passed with the offset off, but the length will not exceed the total length of the field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;DATA: NUMBER_I TYPE I VALUE 5, &lt;/P&gt;&lt;P&gt;      NUMBER_P TYPE P VALUE 4, &lt;/P&gt;&lt;P&gt;      BEGIN OF PERSON, &lt;/P&gt;&lt;P&gt;        NAME(10)      VALUE 'Paul', &lt;/P&gt;&lt;P&gt;        AGE TYPE I    VALUE 28, &lt;/P&gt;&lt;P&gt;      END   OF PERSON, &lt;/P&gt;&lt;P&gt;      ALPHA(10)       VALUE 'abcdefghij'. &lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;POINTER&amp;gt; TYPE ANY. &lt;/P&gt;&lt;P&gt;ASSIGN NUMBER_P TO &amp;lt;POINTER&amp;gt;. &lt;/P&gt;&lt;P&gt;PERFORM CHANGE USING 1 &lt;/P&gt;&lt;P&gt;                     NUMBER_I &lt;/P&gt;&lt;P&gt;                     NUMBER_P &lt;/P&gt;&lt;P&gt;                     &amp;lt;POINTER&amp;gt; &lt;/P&gt;&lt;P&gt;                     PERSON &lt;/P&gt;&lt;P&gt;                     ALPHA+NUMBER_I(&amp;lt;POINTER&amp;gt;). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM CHANGE USING VALUE(PAR_1) &lt;/P&gt;&lt;P&gt;                  PAR_NUMBER_I &lt;/P&gt;&lt;P&gt;                  PAR_NUMBER_P &lt;/P&gt;&lt;P&gt;                  PAR_POINTER &lt;/P&gt;&lt;P&gt;                  PAR_PERSON STRUCTURE PERSON &lt;/P&gt;&lt;P&gt;                  PAR_PART_OF_ALPHA. &lt;/P&gt;&lt;P&gt;  ADD PAR_1 TO PAR_NUMBER_I. &lt;/P&gt;&lt;P&gt;  PAR_NUMBER_P = 0. &lt;/P&gt;&lt;P&gt;  PAR_PERSON-NAME+4(1) = ALPHA. &lt;/P&gt;&lt;P&gt;  PAR_PERSON-AGE = NUMBER_P + 25. &lt;/P&gt;&lt;P&gt;  ADD NUMBER_I TO PAR_POINTER. &lt;/P&gt;&lt;P&gt;  PAR_PART_OF_ALPHA = SPACE. &lt;/P&gt;&lt;P&gt;ENDFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field contents after the PERFORM statement: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NUMBER_I    = 6 &lt;/P&gt;&lt;P&gt;NUMBER_P    = 6 &lt;/P&gt;&lt;P&gt;&amp;lt;POINTER&amp;gt;   = 6 &lt;/P&gt;&lt;P&gt;PERSON-NAME = 'Paula' &lt;/P&gt;&lt;P&gt;PERSON-AGE  = 25 &lt;/P&gt;&lt;P&gt;ALPHA       = 'abcde    j' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;If you want to pass the body of an internal table itab that has a header line, you must use the notation itab[] (see Data Objects). If you do not use the brackets, the header line of the tabel is passed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field types and lengths of the parameters remain the same. If a parameter is changed within the subroutine, it will still have the changed value after the subroutine has finished. This does not apply to parameters passed using VALUE. werden. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you pass literals, they may not be changed unless you pass them to a formal parameter defined with USING VALUE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ITAB_TYPE, &lt;/P&gt;&lt;P&gt;         TEXT(50), &lt;/P&gt;&lt;P&gt;         NUMBER TYPE I, &lt;/P&gt;&lt;P&gt;       END OF ITAB_TYPE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:  ITAB TYPE STANDARD TABLE OF ITAB_TYPE WITH &lt;/P&gt;&lt;P&gt;                 NON-UNIQUE DEFAULT KEY INITIAL SIZE 100, &lt;/P&gt;&lt;P&gt;       BEGIN OF ITAB_LINE, &lt;/P&gt;&lt;P&gt;         TEXT(50), &lt;/P&gt;&lt;P&gt;         NUMBER TYPE I, &lt;/P&gt;&lt;P&gt;       END OF ITAB_LINE, &lt;/P&gt;&lt;P&gt;       STRUC like T005T. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;PERFORM DISPLAY TABLES ITAB &lt;/P&gt;&lt;P&gt;                USING  STRUC. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM DISPLAY TABLES PAR_ITAB STRUCTURE ITAB_LINE &lt;/P&gt;&lt;P&gt;             USING  PAR      like      T005T. &lt;/P&gt;&lt;P&gt;  DATA: LOC_COMPARE LIKE PAR_ITAB-TEXT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE: / PAR-LAND1, PAR-LANDX. &lt;/P&gt;&lt;P&gt;  ... &lt;/P&gt;&lt;P&gt;  LOOP AT PAR_ITAB WHERE TEXT = LOC_COMPARE. &lt;/P&gt;&lt;P&gt;    ... &lt;/P&gt;&lt;P&gt;  ENDLOOP. &lt;/P&gt;&lt;P&gt;ENDFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within the subroutine DISPLAY, you can use any internal table operation to work with the internal table that you passed to it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;If you use TABLES, it must always be the first addition in a PERFORM statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2005 05:31:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-using-changing/m-p/1083287#M98490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-11T05:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Perform Statement - Using  &amp; Changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-using-changing/m-p/1083288#M98491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Changing is assigned for those variables which have certain value before perform and during perfom its get modified.&lt;/P&gt;&lt;P&gt;let's say&lt;/P&gt;&lt;P&gt;Var = 23.&lt;/P&gt;&lt;P&gt;perform -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;changing &lt;/P&gt;&lt;P&gt;  var--&lt;/P&gt;&lt;P&gt;  ---&lt;/P&gt;&lt;P&gt;After execution you will have another value of var.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2005 05:32:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-using-changing/m-p/1083288#M98491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-11T05:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Perform Statement - Using  &amp; Changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-using-changing/m-p/1083289#M98492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you use 'Using' means you are not going to change any value of those variables.&lt;/P&gt;&lt;P&gt;When you use 'Changing' means you are changing those variable and those changed variables will reflect after calling that perform.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2005 05:33:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-using-changing/m-p/1083289#M98492</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-11T05:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Perform Statement - Using  &amp; Changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-using-changing/m-p/1083290#M98493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI mavrick Kar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This link will clear all your Doubts reagrding Perform Statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/9f/db977635c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/9f/db977635c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vijay Raheja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2005 05:33:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-using-changing/m-p/1083290#M98493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-11T05:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Perform Statement - Using  &amp; Changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-using-changing/m-p/1083291#M98494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this sample code for CHANGING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : c1 TYPE i, c2 TYPE i, res TYPE i.
c1 = 1.
c2 = 2.
data: subroutinename(3) VALUE 'SUM'.
PERFORM (subroutinename) IN PROGRAM Y_JJTEST1&amp;lt;b&amp;gt;USING c1 c2 CHANGING res.&amp;lt;/b&amp;gt;
*WRITE:/ res.
*&amp;amp;---------------------------------------------------------------------
*
*&amp;amp; Form sum
*&amp;amp;---------------------------------------------------------------------
*
* text
*----------------------------------------------------------------------
*
form sum using p_c1 p_c2 changing value(p_res).
p_res = p_c1 + p_c2.
endform. " sum
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if this helps u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2005 05:48:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-using-changing/m-p/1083291#M98494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-11T05:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Perform Statement - Using  &amp; Changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-using-changing/m-p/1083292#M98495</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 helps to use the parameter value passed.&lt;/P&gt;&lt;P&gt;Changing helps to change the parameter value and then use the same in main program with changed value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Sample:
data : val1 type i value 1,
       val2 type i value 0.
perform calc using val1 changing val2.

Write / : 'Changing :' , val2.
write / : 'Using :' , val1.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  calc
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;P_VAL1  text
*      &amp;lt;--P_VAL2  text
*----------------------------------------------------------------------*
form calc  using    p_val1
           changing p_val2.
p_val2 = p_val1 + 100.
*p_val1 = p_val1 + 100.
*Since p_val1 is passed as using,the above is not *permitted
endform.                    " calc&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points by clicking the star on the left of reply,if it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2005 05:58:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-using-changing/m-p/1083292#M98495</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2005-11-11T05:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Perform Statement - Using  &amp; Changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-using-changing/m-p/1083293#M98496</link>
      <description>&lt;P&gt;very helpful&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 02:49:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-using-changing/m-p/1083293#M98496</guid>
      <dc:creator>former_member305514</dc:creator>
      <dc:date>2023-04-18T02:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Perform Statement - Using  &amp; Changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-using-changing/m-p/1083294#M98497</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;solomon.raja&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;It's wrong.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : val1 type i value 1,
       val2 type i value 0.
perform calc using val1 changing val2.

Write / : 'Changing :' , val2.
write / : 'Using :' , val1.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  calc
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;P_VAL1  text
*      &amp;lt;--P_VAL2  text
*----------------------------------------------------------------------*
form calc  using    p_val1
           changing p_val2.
  p_val2 = p_val1 + 100.
  p_val1 = p_val1 + 100. " Warning
endform.                    " calc&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This only gives a warning. &lt;/P&gt;&lt;P&gt;If you use:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;form calc  using    value(p_val1)
           changing p_val2.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You won't even get a warning. &lt;/P&gt;&lt;P&gt;However, FORM and PERFORM have been obsolete for years and should never be used in new developments.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 04:53:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-using-changing/m-p/1083294#M98497</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2023-04-18T04:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Perform Statement - Using  &amp; Changing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-using-changing/m-p/1083295#M98498</link>
      <description>&lt;P&gt;This is in keeping with SAP's view that all the world will write Object-Oriented ABAP. Since SAP doesn't do this themselve, most of us have, obviously, decided to ignore the "obsolete" statement. FORM...ENDFORM is described as obsolete on page 342 of the Official ABAP Programming Guidelines manual, published by Galileo Press and sold by SAP Press. &lt;/P&gt;&lt;P&gt;This was the first reference I saw that described this usage as obsolete, thanks for reminding. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How ever There are of course, a few thousand new usages of FORM....ENDFORM being written every day in SAP.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 14:07:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform-statement-using-changing/m-p/1083295#M98498</guid>
      <dc:creator>former_member13114</dc:creator>
      <dc:date>2023-04-19T14:07:44Z</dc:date>
    </item>
  </channel>
</rss>

