<?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: Subtotaling Issue in Smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotaling-issue-in-smartforms/m-p/9256311#M1721358</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vipul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of doing it in calculation tab (as described in your picture)&amp;nbsp; what you can do is take another window for subtotal and inside the window perform your calculation in a program lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take two variables of total and subtotal in Global definition .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside program lines write like below: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_total = Your value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_subtotal = v_subtotal + V_total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then display this subtotal in a text element. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abhijit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Feb 2013 11:30:07 GMT</pubDate>
    <dc:creator>Abhijit74</dc:creator>
    <dc:date>2013-02-16T11:30:07Z</dc:date>
    <item>
      <title>Subtotaling Issue in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotaling-issue-in-smartforms/m-p/9256310#M1721357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an issue with smartforms Subtotal.&lt;/P&gt;&lt;P&gt;I had browsed through SDN many with this particular case but I was not able to get the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had done the required in Calculations tab of Tables in Main Window as shown below ,&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/185607" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Now this thing is working fine for first page , but for second page and later pages it is not calculating properly.&lt;/P&gt;&lt;P&gt;Suppose there are 7 lines in each page then for second and later pages the first line item it is considering is of that of first page and this thing is making subtotal amount wrong for second and all later pages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are many thread related to this issue but majority threads are open and I am not able to figure out the solution.&lt;/P&gt;&lt;P&gt;I would be very grateful for helpful suggestions regarding this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First Page ( this is fine )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/185608" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Second Page ( this is faulty )&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/185654" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;Vipul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2013 11:10:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotaling-issue-in-smartforms/m-p/9256310#M1721357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-16T11:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotaling Issue in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotaling-issue-in-smartforms/m-p/9256311#M1721358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vipul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of doing it in calculation tab (as described in your picture)&amp;nbsp; what you can do is take another window for subtotal and inside the window perform your calculation in a program lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take two variables of total and subtotal in Global definition .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside program lines write like below: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_total = Your value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_subtotal = v_subtotal + V_total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then display this subtotal in a text element. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abhijit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2013 11:30:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotaling-issue-in-smartforms/m-p/9256311#M1721358</guid>
      <dc:creator>Abhijit74</dc:creator>
      <dc:date>2013-02-16T11:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotaling Issue in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotaling-issue-in-smartforms/m-p/9256312#M1721359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Abhijit ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very thanks for your prompt reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I want this thing in footer part of TABLE . So how can I achieve this thing with your solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And one more thing ,&lt;/P&gt;&lt;P&gt;Why system is behaving in such a strange manner i.e it is calculating perfectly for first page but for second page&lt;STRONG&gt; its considering the first line item of first page as first line item of second one.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2013 11:37:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotaling-issue-in-smartforms/m-p/9256312#M1721359</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-16T11:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotaling Issue in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotaling-issue-in-smartforms/m-p/9256313#M1721360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vipul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In footer you can also create a program line inside the table lines. Even another window after the table which i have stated is also possible to show your desire output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your second question .. It's difficult to say from here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abhijit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2013 17:58:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotaling-issue-in-smartforms/m-p/9256313#M1721360</guid>
      <dc:creator>Abhijit74</dc:creator>
      <dc:date>2013-02-16T17:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotaling Issue in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotaling-issue-in-smartforms/m-p/9256314#M1721361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Abhijit ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did the coding using logic on sy-tabix ( Each page consists of 7 lines ). And I appended subtotals in an Internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I want a more Logical solution to this , the above solution is making the code&amp;nbsp; more complex .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I didn't get solution to my below problem :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Why system is behaving in such a strange manner i.e it is calculating perfectly for first page but for second page&lt;/SPAN&gt;&lt;STRONG style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt; its considering the first line item of first page as first line item of second one.&lt;/STRONG&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For that reason only I am keeping this thread open.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 05:22:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotaling-issue-in-smartforms/m-p/9256314#M1721361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-18T05:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Subtotaling Issue in Smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotaling-issue-in-smartforms/m-p/9256315#M1721362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Frankly, I've never done the way your doing the calculation so, it's very hard to say. Anyway just one request could you please check by any chance in the condition tab "Only on First Page" is checked?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you created the next page same as first page ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abhijit &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 08:35:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotaling-issue-in-smartforms/m-p/9256315#M1721362</guid>
      <dc:creator>Abhijit74</dc:creator>
      <dc:date>2013-02-18T08:35:26Z</dc:date>
    </item>
  </channel>
</rss>

