<?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: Sub total problem in SAP Script in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sub-total-problem-in-sap-script/m-p/10436822#M1846181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you paste the logic also for your page break, plus the main page settings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jul 2014 07:20:19 GMT</pubDate>
    <dc:creator>former_member201275</dc:creator>
    <dc:date>2014-07-14T07:20:19Z</dc:date>
    <item>
      <title>Sub total problem in SAP Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sub-total-problem-in-sap-script/m-p/10436816#M1846175</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 am using sap script for check print. I have two windows Main and right below it window for page total as below&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/495937" width="450" /&gt;&lt;/P&gt;&lt;P&gt;I wrote a perform in main window to calculate page totals. In the perform i am getting 22 lines as total is getting calculated perfectly. But in the print I am able to see only 21 lines so there is a mismatch between line items total in one page and the page total value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I expanded the window a bit but then, In perform i am getting 23 entiries in a page but only 22 in print. there is a mismatch again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please sugest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ujwal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 13:42:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sub-total-problem-in-sap-script/m-p/10436816#M1846175</guid>
      <dc:creator>former_member420959</dc:creator>
      <dc:date>2014-07-11T13:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sub total problem in SAP Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sub-total-problem-in-sap-script/m-p/10436817#M1846176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So... you are not calculating page totals, you are counting the number of lines on the page. Is that correct?&lt;/P&gt;&lt;P&gt;Can you provide a screenshot of your main window where this calculation logic is, and then also a screenshot/s for the Totals window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 13:51:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sub-total-problem-in-sap-script/m-p/10436817#M1846176</guid>
      <dc:creator>former_member201275</dc:creator>
      <dc:date>2014-07-11T13:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sub total problem in SAP Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sub-total-problem-in-sap-script/m-p/10436818#M1846177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Glen,&lt;/P&gt;&lt;P&gt;I am trying to calculate page totals look into below screen shots of two windows and two performs code&lt;/P&gt;&lt;P&gt;I am summing up variable in main window and filling that page total in page total window and clearing the sum variable.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/495998" 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/495999" 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/496000" 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/496001" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 14:00:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sub-total-problem-in-sap-script/m-p/10436818#M1846177</guid>
      <dc:creator>former_member420959</dc:creator>
      <dc:date>2014-07-11T14:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sub total problem in SAP Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sub-total-problem-in-sap-script/m-p/10436819#M1846178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First you say you are trying to create page totals, then you say you get 22 lines? Then you go on to say you expand the window a bit to get 23 entries, but only 22 in print! How is that Pages!?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Then in your subroutines you are using WRBTR which is currency, and in the other using a function to convert a currency and then passing this value to a field to use as a page count! What are you doing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 14:17:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sub-total-problem-in-sap-script/m-p/10436819#M1846178</guid>
      <dc:creator>former_member201275</dc:creator>
      <dc:date>2014-07-11T14:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sub total problem in SAP Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sub-total-problem-in-sap-script/m-p/10436820#M1846179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See Glen you are not getting the requirement correctly.&lt;/P&gt;&lt;P&gt;I need to sum the amount column in a page and display it in the page total window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So why iam saying it in lines is, for my main window height that i specified i am getting page break for every 22 lines. but I am able to see only 21 lines(item data 21 lines) in print.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the print I am getting sum for amount for 22 line items but the no of line items displayed is only 21 line items.&lt;/P&gt;&lt;P&gt;Please see the print below.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/496003" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 14:27:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sub-total-problem-in-sap-script/m-p/10436820#M1846179</guid>
      <dc:creator>former_member420959</dc:creator>
      <dc:date>2014-07-11T14:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sub total problem in SAP Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sub-total-problem-in-sap-script/m-p/10436821#M1846180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any Body to help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 14:56:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sub-total-problem-in-sap-script/m-p/10436821#M1846180</guid>
      <dc:creator>former_member420959</dc:creator>
      <dc:date>2014-07-11T14:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sub total problem in SAP Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sub-total-problem-in-sap-script/m-p/10436822#M1846181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you paste the logic also for your page break, plus the main page settings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 07:20:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sub-total-problem-in-sap-script/m-p/10436822#M1846181</guid>
      <dc:creator>former_member201275</dc:creator>
      <dc:date>2014-07-14T07:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sub total problem in SAP Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sub-total-problem-in-sap-script/m-p/10436823#M1846182</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;check post &lt;A __default_attr="1791279" __jive_macro_name="thread" class="jive_macro_thread jive_macro" data-orig-content="counting lines in SAP script" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also count lines like described in above post. Simply define a "counter"-variable and add 1 for each line you print.&lt;/P&gt;&lt;P&gt;this counting is very static but works good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Stefan Seeburger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 07:58:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sub-total-problem-in-sap-script/m-p/10436823#M1846182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-14T07:58:48Z</dc:date>
    </item>
  </channel>
</rss>

