<?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: SUbtotal problem in smartforms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-problem-in-smartforms/m-p/9853518#M1786746</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please attach a screen shot of your calculations and at what time the values are being calculated and displayed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Nov 2013 09:54:25 GMT</pubDate>
    <dc:creator>nabheetscn</dc:creator>
    <dc:date>2013-11-25T09:54:25Z</dc:date>
    <item>
      <title>SUbtotal problem in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-problem-in-smartforms/m-p/9853517#M1786745</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;I have calculated subtotal for every page using calculations &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subtotal for the first page coming correctly,, but from the second page its adding the value of last row of the internal table rather first row value of&amp;nbsp; second page ,,its omitting first row value of every page ,, its happening at each and every page..&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;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 09:10:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-problem-in-smartforms/m-p/9853517#M1786745</guid>
      <dc:creator>former_member211992</dc:creator>
      <dc:date>2013-11-25T09:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: SUbtotal problem in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-problem-in-smartforms/m-p/9853518#M1786746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please attach a screen shot of your calculations and at what time the values are being calculated and displayed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 09:54:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-problem-in-smartforms/m-p/9853518#M1786746</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2013-11-25T09:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: SUbtotal problem in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-problem-in-smartforms/m-p/9853519#M1786747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/330964" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 10:22:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-problem-in-smartforms/m-p/9853519#M1786747</guid>
      <dc:creator>former_member211992</dc:creator>
      <dc:date>2013-11-25T10:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: SUbtotal problem in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-problem-in-smartforms/m-p/9853520#M1786748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi KArthik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In which node you are printing sub total ? Please make sure you have marked at end of page check box.&amp;nbsp; Plus clear the value of sum after it gets printed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 11:14:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-problem-in-smartforms/m-p/9853520#M1786748</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2013-11-25T11:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: SUbtotal problem in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-problem-in-smartforms/m-p/9853521#M1786749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi-&lt;/P&gt;&lt;P&gt;Follow below steps to display Sub-totals in smart forms:&lt;/P&gt;&lt;P&gt;-&amp;gt; Create a new variable in your form which is of type 'I' say gv_sub_total.&lt;/P&gt;&lt;P&gt;-&amp;gt; In your Table -&amp;gt; Main Area -&amp;gt; Create a Program Line under your text cell with below code:&lt;/P&gt;&lt;P&gt; gv_sub_total &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;gv_sub_total + wa_itab&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;val2&lt;SPAN class="L0S55"&gt;. (Don't forget to give this variable in I/P and O/P parameters).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;-&amp;gt; On your table Footer-&amp;gt; Output Options -&amp;gt; Select check box &lt;SPAN style="text-decoration: underline;"&gt;at Page Break.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;-&amp;gt; Inside your Footer create a text to display Sub-Totals value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;-&amp;gt;&amp;nbsp; Just underneath the text create a Program Line and write below code to clear sub total variable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;CLEAR &lt;/SPAN&gt;gv_sub_total&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;-&amp;gt; Now your sub-total value will be displayed whenever their is a page break in Smart Form nut what in case your page ends in middle say last page there sub total will be missing. Hence you have to create a template underneath the table with the text cell displaying gv_sub_total value with a condition gv_sub_total &amp;gt; 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is working for me:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/331064" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/331065" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;-Venkat &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 11:49:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-problem-in-smartforms/m-p/9853521#M1786749</guid>
      <dc:creator>venkat_aileni</dc:creator>
      <dc:date>2013-11-25T11:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: SUbtotal problem in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-problem-in-smartforms/m-p/9853522#M1786750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nabheet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im using footer of the table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 11:53:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-problem-in-smartforms/m-p/9853522#M1786750</guid>
      <dc:creator>former_member211992</dc:creator>
      <dc:date>2013-11-25T11:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: SUbtotal problem in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-problem-in-smartforms/m-p/9853523#M1786751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have done as you said but problem is in the second page ther is one line item ,,but its value calculated in the first page itself .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;page 1&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; 10&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; 10&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; 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;subtotal = 30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;page2&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; 5&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 06:41:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-problem-in-smartforms/m-p/9853523#M1786751</guid>
      <dc:creator>former_member211992</dc:creator>
      <dc:date>2013-11-27T06:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: SUbtotal problem in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-problem-in-smartforms/m-p/9853524#M1786752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please share your code which you have written for calculating sub-totals in program lines?&lt;/P&gt;&lt;P&gt;Also paste the screen shot of your footer expanding till your text cells.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 06:51:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-problem-in-smartforms/m-p/9853524#M1786752</guid>
      <dc:creator>venkat_aileni</dc:creator>
      <dc:date>2013-11-27T06:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: SUbtotal problem in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-problem-in-smartforms/m-p/9853525#M1786753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF it_final-shkzg = 'S'.&lt;/P&gt;&lt;P&gt;&amp;nbsp; w_debit_sum = w_debit_sum + it_final-wrbtr.&lt;/P&gt;&lt;P&gt;ELSEIF&amp;nbsp; it_final-shkzg = 'H'.&lt;/P&gt;&lt;P&gt;&amp;nbsp; w_credit_sum = w_credit_sum + it_final-wrbtr1.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ENDIF.&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;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/332530" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 08:18:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-problem-in-smartforms/m-p/9853525#M1786753</guid>
      <dc:creator>former_member211992</dc:creator>
      <dc:date>2013-11-27T08:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: SUbtotal problem in smartforms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-problem-in-smartforms/m-p/9853526#M1786754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi-&lt;/P&gt;&lt;P&gt;Please write below code under Main Window -&amp;gt; Table -&amp;gt; Main Area -&amp;gt; Text Cell -&amp;gt; Program Line.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;IF it_final-shkzg = 'S'.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp; w_debit_sum = w_debit_sum + it_final-wrbtr.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;ELSEIF&amp;nbsp; it_final-shkzg = 'H'.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp; w_credit_sum = w_credit_sum + it_final-wrbtr1.&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;-Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 08:41:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subtotal-problem-in-smartforms/m-p/9853526#M1786754</guid>
      <dc:creator>venkat_aileni</dc:creator>
      <dc:date>2013-11-27T08:41:13Z</dc:date>
    </item>
  </channel>
</rss>

