<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform/m-p/2208304#M472743</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 using &lt;/P&gt;&lt;P&gt;perform  using i_tab1 changing i_tab2.&lt;/P&gt;&lt;P&gt;there is no problem if we are not using the subroutine again .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like in a program the subroutines are called multiple time and &lt;/P&gt;&lt;P&gt;hence we declare the local variables as formal parameters and pass&lt;/P&gt;&lt;P&gt;the actual parameters (which call the routine) as the actual parameters&lt;/P&gt;&lt;P&gt;vary depending on the call to the routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Asha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 May 2007 07:04:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-08T07:04:36Z</dc:date>
    <item>
      <title>Perform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform/m-p/2208297#M472736</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;&lt;/P&gt;&lt;P&gt;It is small doubt like in the perform&lt;/P&gt;&lt;P&gt;PERFORM using i_tab1&lt;/P&gt;&lt;P&gt;                 changing i_tab2. we are giving but in the FORM&lt;/P&gt;&lt;P&gt;FORM USING p_i_tab1&lt;/P&gt;&lt;P&gt;          CHANGING p_i_tab2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why we are passing with the name i_tab1 and i_tab2 and using in the form with different name p_i_tab1 and p_i_tab2 eventhough it will refer to i_tab1 and i_tab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can simply use the same table name or variable name in the form also like i_tab1 and i_tab2 no.What is wrong in that why we should not do like like.What is significance of having different name in the FORM and PERFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 06:55:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform/m-p/2208297#M472736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T06:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Perform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform/m-p/2208298#M472737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Subroutines are meant for mutiple usage, not for single use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using only once this PERFORM and FORM you can use the same names, nothing will happen but when you wants to use the same FORM..ENDFORM for different PERFORM with different Tables passed then it will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM using i_tab1&lt;/P&gt;&lt;P&gt;changing i_tab2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM using i_tab3&lt;/P&gt;&lt;P&gt;changing i_tab4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM USING p_i_tab1&lt;/P&gt;&lt;P&gt;CHANGING p_i_tab2&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;So now see, for the both Performs we can use the same FORM..ENDFORM...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 07:00:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform/m-p/2208298#M472737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T07:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Perform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform/m-p/2208299#M472738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u just call :&lt;/P&gt;&lt;P&gt;Perform &amp;lt;formname&amp;gt;. " without using and changing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can use the same table names itab_1 and itab_2 which are declared globally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when u specify using and changing, it  is for more clarity of what u r going to do with those tables...&lt;/P&gt;&lt;P&gt;u are passing references to the subroutine..so the parameters: p_itab_1 will be the reference parameter for that...it reflects when u &amp;lt;b&amp;gt;Pass by Value&amp;lt;/b&amp;gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even the local variable p_itab1 is change , it doesn't reflects actual itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 07:01:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform/m-p/2208299#M472738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T07:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Perform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform/m-p/2208300#M472739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to distinguish between formal and actual parameters.&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;padma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 07:01:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform/m-p/2208300#M472739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T07:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Perform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform/m-p/2208301#M472740</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;Those are just the naming conventions ... U can use the same names also..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We generally use the naming convention as pr_itab1 for passed by reference and pv_itab1 for Passed by value ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sai ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 07:01:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform/m-p/2208301#M472740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T07:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Perform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform/m-p/2208302#M472741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shriram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can have same names too formal and actual parameters in the routines. There is no wrong in giving same names to formal and actual parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM using i_tab1&lt;/P&gt;&lt;P&gt;changing i_tab2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM USING i_tab1&lt;/P&gt;&lt;P&gt;CHANGING i_tab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally whenever you double click on the PERFORM it will implicitly adds P_ to the actual parameters in the FORM formal parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM using i_tab1&lt;/P&gt;&lt;P&gt;changing i_tab2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM USING p_i_tab1&lt;/P&gt;&lt;P&gt;CHANGING p_i_tab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this may improve readability to the FORM parameters..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 07:03:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform/m-p/2208302#M472741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T07:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Perform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform/m-p/2208303#M472742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ShriRam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... USING [VALUE(p1)|p1] ... [VALUE(pn)|pn] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Defines formal parameters p1,...pn, which are replaced by actual parameters when the subroutine is called. &lt;/P&gt;&lt;P&gt;You can assign a type to the formal parameters p1, ..., pn (see specifying types). You can also specify the method with which they are 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;Note &lt;/P&gt;&lt;P&gt;Passing methods: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USING ... p ... &lt;/P&gt;&lt;P&gt;The parameters are passed by reference. The field passed can be changed within the subroutine. The changes are kept beyond the subroutine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USING ... VALUE(p) ... &lt;/P&gt;&lt;P&gt;The VALUE(...) addition passes the parameter by copying the field contents to a corresponding local field. VALUE parameters behave in the same way as local fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... CHANGING [VALUE(p1) |(p1)] ... [VALUE(pn) |(pn)] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The parameters after CHANGING can accept the same specifications as those after USING. &lt;/P&gt;&lt;P&gt;To link the VALUE specification with the change of a parameter value, you can use the addition CHANGING ... . Then, all the formal parameters specified by VALUE(...) are transported back to the actual parameters at the end of the subroutine (i.e. after ENDFORM). If the subroutine is terminated by a dialog message, none of the parameters referenced by CHANGING VALUE ... changes. &lt;/P&gt;&lt;P&gt;Otherwise, the effect of USING and CHANGING is identical.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 07:04:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform/m-p/2208303#M472742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T07:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Perform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform/m-p/2208304#M472743</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 using &lt;/P&gt;&lt;P&gt;perform  using i_tab1 changing i_tab2.&lt;/P&gt;&lt;P&gt;there is no problem if we are not using the subroutine again .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like in a program the subroutines are called multiple time and &lt;/P&gt;&lt;P&gt;hence we declare the local variables as formal parameters and pass&lt;/P&gt;&lt;P&gt;the actual parameters (which call the routine) as the actual parameters&lt;/P&gt;&lt;P&gt;vary depending on the call to the routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Asha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 07:04:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform/m-p/2208304#M472743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T07:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Perform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform/m-p/2208305#M472744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram,&lt;/P&gt;&lt;P&gt;            In perform we pass the refrences.&lt;/P&gt;&lt;P&gt;that we call in Formm ...using......Endform statement&lt;/P&gt;&lt;P&gt;            u are passing references to the subroutine. i_tab1 .so the parameters: p_itab_1 will be the reference parameter for that...it reflects when u Pass by Value....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hemant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 07:05:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform/m-p/2208305#M472744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T07:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Perform</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/perform/m-p/2208306#M472745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When we call PERFORM using i_tab1&lt;/P&gt;&lt;P&gt;changing i_tab2.&lt;/P&gt;&lt;P&gt;we get &lt;/P&gt;&lt;P&gt;FORM USING p_i_tab1&lt;/P&gt;&lt;P&gt;CHANGING p_i_tab2.&lt;/P&gt;&lt;P&gt;p_i_tab1 is just reference to i_tab1 and&lt;/P&gt;&lt;P&gt;p_i_tab1 is just reference to i_tab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can give the same name like&lt;/P&gt;&lt;P&gt;FORM USING i_tab1&lt;/P&gt;&lt;P&gt;CHANGING i_tab2. still it is same but You have to remember that watever we are using in the form  is local to that form only.so just to avoid confusion it is better to use different names it does not make any other difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Sudha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2007 06:06:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/perform/m-p/2208306#M472745</guid>
      <dc:creator>S0025444845</dc:creator>
      <dc:date>2007-05-18T06:06:53Z</dc:date>
    </item>
  </channel>
</rss>

