<?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: how to use SUMMING in scripts? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-summing-in-scripts/m-p/1259063#M147025</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;SUMMING: Adding program symbols&lt;/P&gt;&lt;P&gt;Program symbols can be added with the SUMMING command. The command only needs to be defined once. Each time that the specified symbol is edited, its current value is added to the sum field. Several program symbols can also be added in a sum field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax:&lt;/P&gt;&lt;P&gt;/:SUMMING program symbol INTO sum symbol&lt;/P&gt;&lt;P&gt;As SAP script cannot define sum fields dynamically, the sum symbol must be in a structure of the calling program, which was declared with TABLES.&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, 03 Apr 2006 08:30:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-03T08:30:50Z</dc:date>
    <item>
      <title>how to use SUMMING in scripts?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-summing-in-scripts/m-p/1259062#M147024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi folks,&lt;/P&gt;&lt;P&gt;i need to add 2 fields in the sap script..how do i do it? there is a command "summing", but does anyone know its syntax ?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;aditi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2006 08:26:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-summing-in-scripts/m-p/1259062#M147024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-03T08:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to use SUMMING in scripts?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-summing-in-scripts/m-p/1259063#M147025</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;SUMMING: Adding program symbols&lt;/P&gt;&lt;P&gt;Program symbols can be added with the SUMMING command. The command only needs to be defined once. Each time that the specified symbol is edited, its current value is added to the sum field. Several program symbols can also be added in a sum field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax:&lt;/P&gt;&lt;P&gt;/:SUMMING program symbol INTO sum symbol&lt;/P&gt;&lt;P&gt;As SAP script cannot define sum fields dynamically, the sum symbol must be in a structure of the calling program, which was declared with TABLES.&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, 03 Apr 2006 08:30:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-summing-in-scripts/m-p/1259063#M147025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-03T08:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to use SUMMING in scripts?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-summing-in-scripts/m-p/1259064#M147026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SUMMING command is used for accumulating a total value for a program symbol. The command should be specified just once. Then, each time the specified program symbol is formatted, its current value is added into the total symbol. Several program symbols may all be added into a single total symbol.&lt;/P&gt;&lt;P&gt;Syntax: &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;/: SUMMING program_symbol INTO total_symbol&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;SAPscript cannot create the field for the total dynamically. The symbol used must be defined in a TABLES structure in the calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2006 08:48:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-summing-in-scripts/m-p/1259064#M147026</guid>
      <dc:creator>vinod_gunaware2</dc:creator>
      <dc:date>2006-04-03T08:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to use SUMMING in scripts?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-summing-in-scripts/m-p/1259065#M147027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi aditi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use SUMMING command to perform summing operation of fields in SAPScript.The syntax has already been given by Vijay...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use PERFORM statement to perform summing operation.&lt;/P&gt;&lt;P&gt;syntax: &lt;/P&gt;&lt;P&gt;/: PERFORM function_name in program_name &lt;/P&gt;&lt;P&gt;/: using &amp;amp;income&amp;amp;&lt;/P&gt;&lt;P&gt;/: changing &amp;amp;sum&amp;amp;&lt;/P&gt;&lt;P&gt;/: endperform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the program "program_name", call the function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form function_name TABLES in_var type ITCSY outvar type ITCSY.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**in_var contains fields NAME &amp;amp; VALUE.in_var contains variable sent in the using addition of the earlier PERFORM Statement(in this case, it will be income)&lt;/P&gt;&lt;P&gt;out_var contains the summed values and this value will be sent back to SAPScript(in this case it will be sum).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will give an example..&lt;/P&gt;&lt;P&gt;form add_income tables in_tab structure itcsy out_tab structure itcsy.&lt;/P&gt;&lt;P&gt;global = global + in_tab-value.&lt;/P&gt;&lt;P&gt;loop at out_tab.&lt;/P&gt;&lt;P&gt;out_tab-value = global.&lt;/P&gt;&lt;P&gt;modify out_tab index sy-tabix.&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;Hope you got the needed stuff from this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sylendra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2006 08:53:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-summing-in-scripts/m-p/1259065#M147027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-03T08:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to use SUMMING in scripts?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-summing-in-scripts/m-p/1259066#M147028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prasad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the type of this Global field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 07:36:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-summing-in-scripts/m-p/1259066#M147028</guid>
      <dc:creator>former_member734916</dc:creator>
      <dc:date>2006-12-11T07:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to use SUMMING in scripts?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-summing-in-scripts/m-p/1259067#M147029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;global is the variable and you declare as integer .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 07:39:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-summing-in-scripts/m-p/1259067#M147029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T07:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to use SUMMING in scripts?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-summing-in-scripts/m-p/1259068#M147030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Prasad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much. i also getting solution by your post. but sorry i have no chance to give point for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any how thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2010 11:58:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-summing-in-scripts/m-p/1259068#M147030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-18T11:58:35Z</dc:date>
    </item>
  </channel>
</rss>

