<?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 Problem when using SUM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-using-sum/m-p/781990#M39333</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this senario:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report zfappm513 line-size  900     
line-count 58 
no standard page heading.

loop at itab.
  at new name.
    write:/ itab-name.
  endat.
  at end of name.
    sum.
    write:/ itab-total.
  endat.
  at last.
    sum.
    write:/ itab-total.
  endat.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The problem occurs whenever I had a page break, the value of &amp;lt;b&amp;gt;itab-total&amp;lt;/b&amp;gt; inside the &amp;lt;b&amp;gt;at end&amp;lt;/b&amp;gt; will reflect the grand total.&lt;/P&gt;&lt;P&gt;The grand total should only display when it reaches the &amp;lt;b&amp;gt;at last&amp;lt;/b&amp;gt;. Please advise. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Aug 2004 05:48:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2004-08-11T05:48:00Z</dc:date>
    <item>
      <title>Problem when using SUM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-using-sum/m-p/781990#M39333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this senario:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report zfappm513 line-size  900     
line-count 58 
no standard page heading.

loop at itab.
  at new name.
    write:/ itab-name.
  endat.
  at end of name.
    sum.
    write:/ itab-total.
  endat.
  at last.
    sum.
    write:/ itab-total.
  endat.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The problem occurs whenever I had a page break, the value of &amp;lt;b&amp;gt;itab-total&amp;lt;/b&amp;gt; inside the &amp;lt;b&amp;gt;at end&amp;lt;/b&amp;gt; will reflect the grand total.&lt;/P&gt;&lt;P&gt;The grand total should only display when it reaches the &amp;lt;b&amp;gt;at last&amp;lt;/b&amp;gt;. Please advise. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2004 05:48:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-using-sum/m-p/781990#M39333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-08-11T05:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when using SUM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-using-sum/m-p/781991#M39334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tested the same program , interestingly I did not find this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2004 06:28:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-using-sum/m-p/781991#M39334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-08-11T06:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when using SUM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-using-sum/m-p/781992#M39335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I remove the &amp;lt;b&amp;gt;line-count&amp;lt;/b&amp;gt;, everything is normal. Is that a bug??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2004 06:45:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-using-sum/m-p/781992#M39335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-08-11T06:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when using SUM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-using-sum/m-p/781993#M39336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jefery,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think, the reason is your line-size , which is &amp;gt; 255.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz -&amp;gt; F1 on report / LINE-SIZE col &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2004 07:22:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-using-sum/m-p/781993#M39336</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2004-08-11T07:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when using SUM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-using-sum/m-p/781994#M39337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help, Andreas.&lt;/P&gt;&lt;P&gt;I've tried to reduce the &amp;lt;b&amp;gt;line-size&amp;lt;/b&amp;gt; to less than 255 but the problems still occur.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Aug 2004 02:53:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-using-sum/m-p/781994#M39337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-08-12T02:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when using SUM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-using-sum/m-p/781995#M39338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jefery,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want the grand total displayed only on the last page, to not write itab-total when you are at end of name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2004 20:29:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-using-sum/m-p/781995#M39338</guid>
      <dc:creator>nablan_umar</dc:creator>
      <dc:date>2004-08-30T20:29:20Z</dc:date>
    </item>
  </channel>
</rss>

