<?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: Wrong Cumulative total in Smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-cumulative-total-in-smartforms/m-p/11062424#M1900755</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Syed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not possible to have fixed line items. Any other solutions ? If you could suggest how to check programmatically a page break has happened or not, that would be great!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 May 2015 20:18:19 GMT</pubDate>
    <dc:creator>former_member207873</dc:creator>
    <dc:date>2015-05-13T20:18:19Z</dc:date>
    <item>
      <title>Wrong Cumulative total in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-cumulative-total-in-smartforms/m-p/11062417#M1900748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having an issue with the calculation of cumulative total in each page of the smartforms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose Page 1 is having line items,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) 1000.00&lt;/P&gt;&lt;P&gt;2) 2000.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subtotal coming as 5000. (because 1000 + 2000 + 3000 (which is in the next page) )&lt;/P&gt;&lt;P&gt;Expected: 3000.&lt;/P&gt;&lt;P&gt;Page 2 is having line items&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) 3000&lt;/P&gt;&lt;P&gt;2) 2000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subtotal coming as 10000.(1000 + 2000 + 3000 + 2000 + 2000 (which is on the next page))&lt;/P&gt;&lt;P&gt;Expected (8000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i noticed while debugging is that the sum is happening including the next page first line item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: v_suntotal is the field which calculates the total in every page in the smartform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 13:54:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-cumulative-total-in-smartforms/m-p/11062417#M1900748</guid>
      <dc:creator>former_member207873</dc:creator>
      <dc:date>2015-05-07T13:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Cumulative total in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-cumulative-total-in-smartforms/m-p/11062418#M1900749</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;View this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://scn.sap.com/thread/954419" title="https://scn.sap.com/thread/954419"&gt;https://scn.sap.com/thread/954419&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="3192141" __jive_macro_name="thread" class="jive_macro_thread jive_macro" data-orig-content="Smartforms - total in every page" href="https://community.sap.com/" modifiedtitle="true" title="Smartforms - total in every page"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="1257838" __jive_macro_name="thread" class="jive_macro_thread jive_macro" data-orig-content="how to display page wise totals in Smartforms" href="https://community.sap.com/" modifiedtitle="true" title="how to display page wise totals in Smartforms"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/thread/1454650" title="http://scn.sap.com/thread/1454650"&gt;http://scn.sap.com/thread/1454650&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helpful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat.V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 14:01:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-cumulative-total-in-smartforms/m-p/11062418#M1900749</guid>
      <dc:creator>VenkatRamesh_V</dc:creator>
      <dc:date>2015-05-07T14:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Cumulative total in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-cumulative-total-in-smartforms/m-p/11062419#M1900750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I already have a look on those threads. But not able to solve my issue with those.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 14:08:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-cumulative-total-in-smartforms/m-p/11062419#M1900750</guid>
      <dc:creator>former_member207873</dc:creator>
      <dc:date>2015-05-07T14:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Cumulative total in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-cumulative-total-in-smartforms/m-p/11062420#M1900751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi P.D,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow This Steps for creating subtotal for each Page:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create A variable in Global Definitions by name V_SUBTOT.&lt;/LI&gt;&lt;LI&gt;Goto Table-&amp;gt;Expand Main Area-&amp;gt;Expand Row-&amp;gt;Expand Last Cell-&amp;gt;Text Will be visible.&lt;/LI&gt;&lt;LI&gt;Right click on the text-&amp;gt;Create--&amp;gt;Flow Logic--&amp;gt;Program Lines.&lt;/LI&gt;&lt;LI&gt;Write the Code for calculating Subtotals.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v_subtot = v_subtot + wa.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Double lick on the Table-&amp;gt;Click on Table Tab.&lt;/LI&gt;&lt;LI&gt;Right click on %LTYPE1-&amp;gt;Insert-&amp;gt;Empty Line UnderNeath.&lt;/LI&gt;&lt;LI&gt;%LTYPE2 will be created.&lt;/LI&gt;&lt;LI&gt;Double lick on Footer-&amp;gt;Create Table Line.&lt;/LI&gt;&lt;LI&gt;Give Line type as&amp;nbsp; %LTYPE2.&lt;/LI&gt;&lt;LI&gt;Automatically 1 cell will be created under Footer&lt;/LI&gt;&lt;LI&gt;Right click on Cell-&amp;gt;Create Text&lt;/LI&gt;&lt;LI&gt;Write Text as &amp;amp;v_subtot(c)&amp;amp;.&lt;/LI&gt;&lt;LI&gt;After Printing the subtotal, We need to clear the value.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Better Clarification Check the Below Scree Shots.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards ,&lt;/P&gt;&lt;P&gt;Surya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 15:20:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-cumulative-total-in-smartforms/m-p/11062420#M1900751</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-07T15:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Cumulative total in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-cumulative-total-in-smartforms/m-p/11062421#M1900752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You got me wrong. I need cumulative sum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st page: 100&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; 200&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; ___&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; 300&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2nd Page 200&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; 300&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; ___&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; 800&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here issue is that page breaking is not working properly. It is considering the second page 1st line item value also while summing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 15:39:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-cumulative-total-in-smartforms/m-p/11062421#M1900752</guid>
      <dc:creator>former_member207873</dc:creator>
      <dc:date>2015-05-07T15:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Cumulative total in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-cumulative-total-in-smartforms/m-p/11062422#M1900753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any help on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 May 2015 03:07:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-cumulative-total-in-smartforms/m-p/11062422#M1900753</guid>
      <dc:creator>former_member207873</dc:creator>
      <dc:date>2015-05-10T03:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Cumulative total in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-cumulative-total-in-smartforms/m-p/11062423#M1900754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure how efficient this would be. but seeing that you are still stuck with same problem i can give you a trick. While processing the first page make sure that you are having a constant number of items to sum up in one page i.e. for eg if 8 items are being printed in one page then sum up the 8 items and force the smartform to next page using 'COMMAND' to trigger the next page. This way you can write logic and makes sure each page has same number of items and your subtotal would be correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 May 2015 06:59:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-cumulative-total-in-smartforms/m-p/11062423#M1900754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-10T06:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong Cumulative total in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-cumulative-total-in-smartforms/m-p/11062424#M1900755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Syed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not possible to have fixed line items. Any other solutions ? If you could suggest how to check programmatically a page break has happened or not, that would be great!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 20:18:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-cumulative-total-in-smartforms/m-p/11062424#M1900755</guid>
      <dc:creator>former_member207873</dc:creator>
      <dc:date>2015-05-13T20:18:19Z</dc:date>
    </item>
  </channel>
</rss>

