<?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: Total for two different types on same output in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241133#M1828319</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;I developed it on ABAP 7.02 system, and you must be on a lower version then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this attachment please - I&amp;nbsp; rewrote it while trying to use 4.70 syntax only and it works on my system. If it still doesn't compile, get rid of SORTED and KEY additions in the table altogether.. you'd probably need to adjust the READ and MODIFY statements as well then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Janis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 May 2014 07:22:51 GMT</pubDate>
    <dc:creator>Private_Member_7726</dc:creator>
    <dc:date>2014-05-21T07:22:51Z</dc:date>
    <item>
      <title>Total for two different types on same output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241114#M1828300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a smartform in which for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it shows an output of 5 pages.Out of 5 pages, 2 pages shows Type 3 output and 3 pages shows Type 53 output.The pages of Type 3 comes in sequence and then the pages of Type 53 in sequence (Or of Type 53 first in sequence then Type 3 in sequence). I want to have the grand total of "amount" at the end of page where Type 3 gets ended and &lt;SPAN style="font-size: 10pt;"&gt;the grand total of amount values at the end of page where Type 53 gets ended.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example which I have presented here is of 5 pages. It can of any number of pages. So I want to count Type 3 pages and Type 53 pages separately with there respective Grand Total amount at respective end pages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help Experts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Titiksha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2014 18:09:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241114#M1828300</guid>
      <dc:creator>former_member386063</dc:creator>
      <dc:date>2014-05-01T18:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Total for two different types on same output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241115#M1828301</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;You'd need two variables that will hold the numbers of last page for each type (l_page_type_3 and l_page_type_53, for example). I hope you are able to determine those... If not, one would need to see how you control the smartfrom page breaks to figure that out... Once you have figured out those, create &lt;A href="http://help.sap.com/saphelp_snc70/helpdata/en/81/e2685ef2be11d4b65a006094192fe3/content.htm" style="padding: 0 0 1px; font-family: Arial, Helvetica, 'Microsoft YaHei', Meiryo, 'Malgun Gothic', sans-serif; color: #226ca9;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;final windows&lt;/SPAN&gt;&lt;/A&gt; for totals output, with condition sfsy-page = l_page_type_3 and&amp;nbsp; sfsy-page = l_page_type_53.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Jānis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2014 18:58:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241115#M1828301</guid>
      <dc:creator>Private_Member_7726</dc:creator>
      <dc:date>2014-05-01T18:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Total for two different types on same output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241116#M1828302</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;I am sure that you are displaying type 3 and 53 inside a loop. So, what you can do is take two variables for type3 and 53. Inside your loop after displaying all of your cell you can create a program lines and there you can put sum3 = sum3&amp;nbsp; + itab-amount.&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum5 = sum5 + itab-amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also take a look into &lt;A href="http://wiki.scn.sap.com/wiki/display/ABAP/Subtotal+In+SAP+SMARTFORMS"&gt;subtoal in smartforms&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abhijit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2014 19:11:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241116#M1828302</guid>
      <dc:creator>Abhijit74</dc:creator>
      <dc:date>2014-05-01T19:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Total for two different types on same output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241117#M1828303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me how to determine type 3 is ending in which page on runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Titiksha &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 11:41:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241117#M1828303</guid>
      <dc:creator>former_member386063</dc:creator>
      <dc:date>2014-05-02T11:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Total for two different types on same output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241118#M1828304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In smartforms, use event to achieve this. In Tables node, first define "type" as your sort field and check the checkbox "Event on Sort End". In calculations tab, add your subtotals field.Then create a table line on event and place your variable in a text element. After subtotal text node, create program lines and clear the subtotal variable. you can search this further on SCN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 11:50:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241118#M1828304</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2014-05-02T11:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Total for two different types on same output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241119#M1828305</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;Do you already have an existing smartfom to adjust, or are you building a new one..? How is the data for which you calculate totals structured - one internal table, the way Abhijit and Mehwish assume, or something else? If you already do have a form - what pages are defined (one page to output both types, or a separate page for each type?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Janis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 May 2014 08:47:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241119#M1828305</guid>
      <dc:creator>Private_Member_7726</dc:creator>
      <dc:date>2014-05-03T08:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Total for two different types on same output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241120#M1828306</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;I have an already existing smartform to adjust and separate pages for both the types. One internal table is displaying the total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Titiksha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 May 2014 17:10:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241120#M1828306</guid>
      <dc:creator>former_member386063</dc:creator>
      <dc:date>2014-05-04T17:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Total for two different types on same output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241121#M1828307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, then simply add a "dummy" Secondary Window on each page (or use the page header window, if there already is one in the form) and place the Abap code to assign current page number (variable sfsy-page) to &lt;SPAN style="color: #333333; font-size: 12px;"&gt;l_page_type_3&lt;/SPAN&gt; or &lt;SPAN style="color: #333333; font-size: 12px;"&gt; l_page_type_53 in&amp;nbsp; those windows. Don't forget to clear the l_ variables in Initialization &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/776/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Final Window will permit you to output the totals at a static position "at the end of page". If the data to be summed is processed via Tables node and the total needs to come immediately after the end of table, try the Mehwish suggestion. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Jānis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 May 2014 18:07:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241121#M1828307</guid>
      <dc:creator>Private_Member_7726</dc:creator>
      <dc:date>2014-05-04T18:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Total for two different types on same output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241122#M1828308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello Mehwish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done exactly as u said.&lt;/P&gt;&lt;P&gt;The thing is, it is already created smartform and total of every page is been done already by some other person in the footer part of table node.&lt;/P&gt;&lt;P&gt;I have to take those total into consideration, and have to do grandtotal at the end of respective types(Type 3 and Type 53).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done the things as u said, but if I create table line on event, it is created in Main area of table node. But I have to show the Grand total in the footer part below the total (which is already been done) at the end of respective types only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Titiksha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 03:20:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241122#M1828308</guid>
      <dc:creator>former_member386063</dc:creator>
      <dc:date>2014-05-06T03:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Total for two different types on same output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241123#M1828309</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;Then, I'm afraid, the only way would be to use code in sorting events to clear and set the flag that controls the output of type total and placing the actual output of type total in table footer (after page total). Basically, you have to clear the flag at Event on Sort Begin, and you set the flag at Event on Sort End.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To place the code within sorting events you have to "wrap" it in the table line node... Just make sure there is only the code node assigned to some cell and no nodes doing any actual output. Such a line type will be executed but will not produce any actual output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still don't know how your smartform controls page break per type... but I´have created and attached&amp;nbsp; a simple SF with one page that illustrates the principle. This SF is using SPFLI as data table and CARRID as type. You would need some data in SPFLI to run it; program SAPBC_DATA_GENERATOR generates the data. The SF gets the data within INTIALIZATION of global SF data. Make sure there is at least 2 different CARRID selected... Hope you can figure it out; if not - just ask &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_emote jive_macro" src="https://community.sap.com/776/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Janis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 May 2014 07:45:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241123#M1828309</guid>
      <dc:creator>Private_Member_7726</dc:creator>
      <dc:date>2014-05-07T07:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Total for two different types on same output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241124#M1828310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for the help. Sorry for late reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Titiksha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 11:26:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241124#M1828310</guid>
      <dc:creator>former_member386063</dc:creator>
      <dc:date>2014-05-16T11:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Total for two different types on same output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241125#M1828311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome; I know one day you'll help with that someone else &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/776/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Jānis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 11:39:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241125#M1828311</guid>
      <dc:creator>Private_Member_7726</dc:creator>
      <dc:date>2014-05-16T11:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Total for two different types on same output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241126#M1828312</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;I need one more help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to display the page numbers according to 'Type' (3 or 53).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Page: ____ of Total _____ Pages. at the header of the every page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are two pages for Type 3 and two Pages to Type 53 then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Page: 1 of Total 2 Pages -----( for Type 3).&lt;/P&gt;&lt;P&gt;Page: 2 of Total 2 Pages -----( for Type 3).&lt;/P&gt;&lt;P&gt;Page: 1 of Total 2 Pages ------( for Type 53).&lt;/P&gt;&lt;P&gt;Page: 2 of Total 2 Pages ------( for Type 53).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Titiksha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 04:36:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241126#M1828312</guid>
      <dc:creator>former_member386063</dc:creator>
      <dc:date>2014-05-19T04:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Total for two different types on same output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241127#M1828313</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;Are there currently page counters somewhere in the form? If yes, I hope their output is not tied somehow to the table footer, because then we would need to find a way to calculate the total number of pages per type in advance...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Janis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 06:23:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241127#M1828313</guid>
      <dc:creator>Private_Member_7726</dc:creator>
      <dc:date>2014-05-19T06:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Total for two different types on same output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241128#M1828314</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;Nothing is been coded for this.&lt;/P&gt;&lt;P&gt;We need to do it ina separate window in header part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Titiksha&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;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 06:35:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241128#M1828314</guid>
      <dc:creator>former_member386063</dc:creator>
      <dc:date>2014-05-19T06:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Total for two different types on same output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241129#M1828315</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;Have you found out any solution for this?&lt;/P&gt;&lt;P&gt;I need to do it as early as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Titiksha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 06:09:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241129#M1828315</guid>
      <dc:creator>former_member386063</dc:creator>
      <dc:date>2014-05-20T06:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Total for two different types on same output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241130#M1828316</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;Sorry, I couldn't attend to this yesterday evening, and this morning... I seem to be unable to solve this seemingly simple requirement...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;I'll try to solve it tonight. I'm starting to think it may be better idea to split the table in driver program an call the form per type.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit in: Ok, I was overthinking it, trying to use SFSY-PAGE and SFSY-FORMPAGES variables...&amp;nbsp; I have now solved it in my example SF ZJBTT3 (see attached) as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) defined an internal table GT_PAGES, which will hold the page counters per type;&lt;/P&gt;&lt;P&gt;2) added an Abap node SET_PAGE_NUMBERS in data Table Footer-&amp;gt;Total per page, which populates the type and TOTAL_PAGES columns in this table pro type ;&lt;/P&gt;&lt;P&gt;3) added a Final Window (will be processed when the rest of form logic is finished), where:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;- in the Abap node GET_PAGE_NUMBERS:&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;- I'm reading first record in GT_PAGES; increasing the current page number, and, if the current page number = total page numbers per type, deleting GT_PAGES entry, otherwise modifying GT_PAGES with current page number;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;- returning the GT_PAGES entry via GS_PAGES;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;- in the text node I'm outputing GS_PAGES counters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also changed the way ZJBTT3 handles table footers for the last page (via Flag in Table Footer definition, and not via explicit page break), because the previous version was producing extra white page at the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As always, it is important not to forget to clear/initialize the global variables in SF INITIALIZATION logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason why we need to use Final Window(s) here is - we will know the total pages per type only when the table processing is finished. Sorry for the somewhat chaotic description of algorithm - I hope you'll again figure out the principle from my example SF. If not - please ask again &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/776/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Janis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Jānis B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 07:26:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241130#M1828316</guid>
      <dc:creator>Private_Member_7726</dc:creator>
      <dc:date>2014-05-20T07:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Total for two different types on same output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241131#M1828317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And thanks for the question, I learned quite a bit trying to solve it! &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/776/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Janis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 12:40:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241131#M1828317</guid>
      <dc:creator>Private_Member_7726</dc:creator>
      <dc:date>2014-05-20T12:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Total for two different types on same output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241132#M1828318</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/456876" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is showing the error in Global Definition which is shared in above image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: No component exists with the name 'PRIMARY_KEY'.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Titiksha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 04:41:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241132#M1828318</guid>
      <dc:creator>former_member386063</dc:creator>
      <dc:date>2014-05-21T04:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Total for two different types on same output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241133#M1828319</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;I developed it on ABAP 7.02 system, and you must be on a lower version then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this attachment please - I&amp;nbsp; rewrote it while trying to use 4.70 syntax only and it works on my system. If it still doesn't compile, get rid of SORTED and KEY additions in the table altogether.. you'd probably need to adjust the READ and MODIFY statements as well then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Janis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 07:22:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/total-for-two-different-types-on-same-output/m-p/10241133#M1828319</guid>
      <dc:creator>Private_Member_7726</dc:creator>
      <dc:date>2014-05-21T07:22:51Z</dc:date>
    </item>
  </channel>
</rss>

