<?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: Tablecontrol total sum in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/tablecontrol-total-sum/m-p/4048441#M967766</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 need to loop the internal table where u store the data to be display in table control in order to calculate the total:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TOT = 0.
LOOP AT ITAB.
  TOT = TOT + ITAB-AMOUNT.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So u should place a new module in PAI after the loop of table control:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS PAI. 
  LOOP AT ITAB.
  ENDLOOP.
  
  MODULE SUM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jul 2008 07:41:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-04T07:41:52Z</dc:date>
    <item>
      <title>Tablecontrol total sum</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tablecontrol-total-sum/m-p/4048439#M967764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I am using table control 3 fields (Rate, Qty,  Amount)&lt;/P&gt;&lt;P&gt;now i want calculate total amount &lt;/P&gt;&lt;P&gt;how will calculate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 07:37:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tablecontrol-total-sum/m-p/4048439#M967764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-04T07:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Tablecontrol total sum</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tablecontrol-total-sum/m-p/4048440#M967765</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;Loop at tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at end of &amp;lt;&amp;lt;fieldname&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;total = total + &amp;lt;&amp;lt;Amt&amp;gt;&amp;gt;.&lt;/P&gt;&lt;P&gt;at last.&lt;/P&gt;&lt;P&gt;Gtotal = total + gtotal.&lt;/P&gt;&lt;P&gt;endloop.&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 if helpful.&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;Chandralekha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 07:41:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tablecontrol-total-sum/m-p/4048440#M967765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-04T07:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Tablecontrol total sum</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tablecontrol-total-sum/m-p/4048441#M967766</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 need to loop the internal table where u store the data to be display in table control in order to calculate the total:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TOT = 0.
LOOP AT ITAB.
  TOT = TOT + ITAB-AMOUNT.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So u should place a new module in PAI after the loop of table control:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS PAI. 
  LOOP AT ITAB.
  ENDLOOP.
  
  MODULE SUM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 07:41:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tablecontrol-total-sum/m-p/4048441#M967766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-04T07:41:52Z</dc:date>
    </item>
  </channel>
</rss>

