<?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: SAP SCRIPT---perform statement in script. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-perform-statement-in-script/m-p/816708#M42312</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;here is an example. how to call it from&lt;/P&gt;&lt;P&gt;sapscript and how to react within the report:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;PARAM1&amp;amp; = &amp;amp;SPACE&amp;amp;&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;PARAM2&amp;amp; = &amp;amp;SPACE&amp;amp;&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;PARAM3&amp;amp; = &amp;amp;SPACE&amp;amp;&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;PARAM4&amp;amp; = &amp;amp;SPACE&amp;amp;&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;PARAM5&amp;amp; = &amp;amp;SPACE&amp;amp;&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;PARAM6&amp;amp; = &amp;amp;SPACE&amp;amp;&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;PARAM7&amp;amp; = &amp;amp;SPACE&amp;amp;&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;PARAM8&amp;amp; = &amp;amp;SPACE&amp;amp;&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;SATZA&amp;amp;  = 'Z'&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;/: PERFORM GET_OBJEKT IN PROGRAM ZMFMCAL2&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;AM07M-KONTIERUNG&amp;amp;&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;MSEG-MBLNR&amp;amp;&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;SATZA&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;PARAM1&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;PARAM2&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;PARAM3&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;PARAM4&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;PARAM5&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;PARAM6&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;PARAM7&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;PARAM8&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*:--- ABAP-CODE in ZMFMCAL2&lt;/P&gt;&lt;P&gt;FORM GET_OBJEKT TABLES T_INPUT  STRUCTURE ITCSY&lt;/P&gt;&lt;P&gt;                       T_OUTPUT STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table t_input index 1.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;*:--- reading &amp;amp;AM07M-KONTIERUNG&amp;amp; &lt;/P&gt;&lt;P&gt;*:--- In t_input-value You will find the value of the 1. variable.&lt;/P&gt;&lt;P&gt;move t_input-value to ls_xxxx.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table t_input index 2.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;and so on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If You want to change a Value do the similar but with the output-table .&lt;/P&gt;&lt;P&gt;read table t_output index 1 (for the first variable)&lt;/P&gt;&lt;P&gt;move 'xxxx' to t_output-value.&lt;/P&gt;&lt;P&gt;modify t_output index 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope i could help You&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR &lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Oct 2004 12:13:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2004-10-05T12:13:15Z</dc:date>
    <item>
      <title>SAP SCRIPT---perform statement in script.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-perform-statement-in-script/m-p/816702#M42306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can we have any sap sapcript perform statement like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform sub_some_routine in zprogram using variable1  changing variable2 changing variable3 changing variable4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;till now i have used only one variable for using and changing..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there anyway to pass more than one variable to a subroutine in a program or to a subroutine pool from SAP SCRIPT?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2004 20:20:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-perform-statement-in-script/m-p/816702#M42306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-10-04T20:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SCRIPT---perform statement in script.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-perform-statement-in-script/m-p/816703#M42307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Puppala&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know in SAPScript context but normally, the syntax is like this for more than one variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM my_form IN PROGRAM zprogram&lt;/P&gt;&lt;P&gt;USING ip_par1 ip_par2 ...&lt;/P&gt;&lt;P&gt;CHANGING ep_par1 ep_par2 ... .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2004 20:23:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-perform-statement-in-script/m-p/816703#M42307</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2004-10-04T20:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SCRIPT---perform statement in script.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-perform-statement-in-script/m-p/816704#M42308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see it cause any problem passing multiple USING and CHANGING parameters from SAPSCRIPT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Oct 2004 20:40:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-perform-statement-in-script/m-p/816704#M42308</guid>
      <dc:creator>nablan_umar</dc:creator>
      <dc:date>2004-10-04T20:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SCRIPT---perform statement in script.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-perform-statement-in-script/m-p/816705#M42309</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;You got it right. To pass multiple variables to your program, you need to issue multiple changing/using statements. However, if you intend to pass data back and forth, your subroutine in the program must be of the format &amp;lt;b&amp;gt;FORM &amp;lt;name of routine&amp;gt; TABLES in_tab STRUCTURE itcsy out_tab STRUCTURE itcsy.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;These tables are used as an interface between your sapscript form and your program subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2004 04:42:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-perform-statement-in-script/m-p/816705#M42309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-10-05T04:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SCRIPT---perform statement in script.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-perform-statement-in-script/m-p/816706#M42310</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;u guys have not answered my query ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am asking u guys if u have ever worked on that syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;standard SAP provides syntax with only two varibales..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me check it and i will try to find it out.. in the mean time can any one give a try to it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2004 08:31:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-perform-statement-in-script/m-p/816706#M42310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-10-05T08:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SCRIPT---perform statement in script.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-perform-statement-in-script/m-p/816707#M42311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abaper 007,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax in Sapscript is somewhat different from "normal" abap. Following your example it should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: perform sub_some_routine in zprogram &lt;/P&gt;&lt;P&gt;/: using variable1 &lt;/P&gt;&lt;P&gt;/: changing variable2 &lt;/P&gt;&lt;P&gt;/: changing variable3 &lt;/P&gt;&lt;P&gt;/: changing variable4.&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;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2004 09:00:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-perform-statement-in-script/m-p/816707#M42311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-10-05T09:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SCRIPT---perform statement in script.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-perform-statement-in-script/m-p/816708#M42312</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;here is an example. how to call it from&lt;/P&gt;&lt;P&gt;sapscript and how to react within the report:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;PARAM1&amp;amp; = &amp;amp;SPACE&amp;amp;&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;PARAM2&amp;amp; = &amp;amp;SPACE&amp;amp;&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;PARAM3&amp;amp; = &amp;amp;SPACE&amp;amp;&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;PARAM4&amp;amp; = &amp;amp;SPACE&amp;amp;&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;PARAM5&amp;amp; = &amp;amp;SPACE&amp;amp;&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;PARAM6&amp;amp; = &amp;amp;SPACE&amp;amp;&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;PARAM7&amp;amp; = &amp;amp;SPACE&amp;amp;&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;PARAM8&amp;amp; = &amp;amp;SPACE&amp;amp;&lt;/P&gt;&lt;P&gt;/: DEFINE &amp;amp;SATZA&amp;amp;  = 'Z'&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;/: PERFORM GET_OBJEKT IN PROGRAM ZMFMCAL2&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;AM07M-KONTIERUNG&amp;amp;&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;MSEG-MBLNR&amp;amp;&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;SATZA&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;PARAM1&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;PARAM2&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;PARAM3&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;PARAM4&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;PARAM5&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;PARAM6&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;PARAM7&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;PARAM8&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*:--- ABAP-CODE in ZMFMCAL2&lt;/P&gt;&lt;P&gt;FORM GET_OBJEKT TABLES T_INPUT  STRUCTURE ITCSY&lt;/P&gt;&lt;P&gt;                       T_OUTPUT STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table t_input index 1.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;*:--- reading &amp;amp;AM07M-KONTIERUNG&amp;amp; &lt;/P&gt;&lt;P&gt;*:--- In t_input-value You will find the value of the 1. variable.&lt;/P&gt;&lt;P&gt;move t_input-value to ls_xxxx.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table t_input index 2.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;and so on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If You want to change a Value do the similar but with the output-table .&lt;/P&gt;&lt;P&gt;read table t_output index 1 (for the first variable)&lt;/P&gt;&lt;P&gt;move 'xxxx' to t_output-value.&lt;/P&gt;&lt;P&gt;modify t_output index 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope i could help You&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR &lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2004 12:13:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-perform-statement-in-script/m-p/816708#M42312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-10-05T12:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SCRIPT---perform statement in script.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-perform-statement-in-script/m-p/816709#M42313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi abaper 007,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is exactly what I meant when I said that "You got it right. To pass multiple variables to your program, you need to issue multiple changing/using statements". You had the syntax right. I believe that Michael Bauer's response is quite comprehensive but if you are asking the question in some other context, please explain it a bit more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2004 13:01:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-script-perform-statement-in-script/m-p/816709#M42313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-10-05T13:01:08Z</dc:date>
    </item>
  </channel>
</rss>

