<?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: Smartforms grand total problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-grand-total-problem/m-p/9754425#M1774584</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;time - after loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reset&amp;nbsp; is blank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have tried program code as u said but grand total of first page includes&amp;nbsp; the value in first row of second page.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Oct 2013 09:37:10 GMT</pubDate>
    <dc:creator>former_member211992</dc:creator>
    <dc:date>2013-10-23T09:37:10Z</dc:date>
    <item>
      <title>Smartforms grand total problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-grand-total-problem/m-p/9754422#M1774581</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 have calculated grand total in every page of smartforms but grand total values showing wrong in second page , my output has two pages,,here is an example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First page &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; credit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; debit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 500&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grand total&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2500&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;second page&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; credit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; debit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 500&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grand total&amp;nbsp;&amp;nbsp;&amp;nbsp; 3000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grand total of second page excluded the value in first row of second page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have calculated grand total using 'calculations' tab. how to rectify this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 09:02:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-grand-total-problem/m-p/9754422#M1774581</guid>
      <dc:creator>former_member211992</dc:creator>
      <dc:date>2013-10-23T09:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms grand total problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-grand-total-problem/m-p/9754423#M1774582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Karthik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use a Proram Code at end of last column of the table row.&lt;/P&gt;&lt;P&gt;Create a variable and cummulative it.&lt;/P&gt;&lt;P&gt;Print it at footer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;Let me know What is the Time and Reset&amp;nbsp; values used in the Calculation tab?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 09:06:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-grand-total-problem/m-p/9754423#M1774582</guid>
      <dc:creator>venkateswaran_k</dc:creator>
      <dc:date>2013-10-23T09:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms grand total problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-grand-total-problem/m-p/9754424#M1774583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; As your requirement is to display the grand total amount in the first page only of the line items which are printed on the first page, and the items which are present on the second page only the additions of line item which are present in second page. If you have limted page only 1 or 2 pages then, first you need to check max. line item which can get printed on the first page then in the internal table add the amounts of only those items same for second page, but this will not work if you have more number of pages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt; Zafar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 09:16:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-grand-total-problem/m-p/9754424#M1774583</guid>
      <dc:creator>former_member182379</dc:creator>
      <dc:date>2013-10-23T09:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms grand total problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-grand-total-problem/m-p/9754425#M1774584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;time - after loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reset&amp;nbsp; is blank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have tried program code as u said but grand total of first page includes&amp;nbsp; the value in first row of second page.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 09:37:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-grand-total-problem/m-p/9754425#M1774584</guid>
      <dc:creator>former_member211992</dc:creator>
      <dc:date>2013-10-23T09:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms grand total problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-grand-total-problem/m-p/9754426#M1774585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;time is after loop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 10:06:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-grand-total-problem/m-p/9754426#M1774585</guid>
      <dc:creator>former_member211992</dc:creator>
      <dc:date>2013-10-23T10:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms grand total problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-grand-total-problem/m-p/9754427#M1774586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i had a similar problem.. so i deleted grand total from footer space of a table. Adjusted a new window. For this new window i wrote a code where i called the calculated variable (in your case, credit) as input parameter and assigned it to a new variable(output parameter). It worked after that. So can you loop and calculate "credit", in normal way. then adjust a new window. In this new window take input parameter as "credit". Then in Global definition of SF, declare "credit_sum" (any variable). Then in code of your new window, use "credit_Sum" as "Output Parameters" and in code section:&lt;/P&gt;&lt;P&gt;CLEAR credit_sum.&lt;/P&gt;&lt;P&gt;credit_sum = credit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;KS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 10:07:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-grand-total-problem/m-p/9754427#M1774586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-23T10:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms grand total problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-grand-total-problem/m-p/9754428#M1774587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karhik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to your logic you are displaying grand total per each page, when it comes to first page it correct. In second page it is adding total of first and second page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum = sum + debit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grand = grand + sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check control break statements. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Goutam Kolluru.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 10:21:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-grand-total-problem/m-p/9754428#M1774587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-23T10:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms grand total problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-grand-total-problem/m-p/9754429#M1774588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with time&amp;nbsp; &lt;EM&gt;Before loop&lt;/EM&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 12:12:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-grand-total-problem/m-p/9754429#M1774588</guid>
      <dc:creator>ujjaval-bhalala</dc:creator>
      <dc:date>2013-10-23T12:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms grand total problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-grand-total-problem/m-p/9754430#M1774589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Dear all,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks for all ur replies,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have done the calculation in the&amp;nbsp; footer part by using loop and 'if' condition in sfsy-formpages.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 10:18:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-grand-total-problem/m-p/9754430#M1774589</guid>
      <dc:creator>former_member211992</dc:creator>
      <dc:date>2013-10-25T10:18:23Z</dc:date>
    </item>
  </channel>
</rss>

