07-11-2014 2:42 PM
Hello All,
I am using sap script for check print. I have two windows Main and right below it window for page total as below
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.
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.
Please sugest.
Ujwal
07-11-2014 2:51 PM
So... you are not calculating page totals, you are counting the number of lines on the page. Is that correct?
Can you provide a screenshot of your main window where this calculation logic is, and then also a screenshot/s for the Totals window.
07-11-2014 3:00 PM
Hi Glen,
I am trying to calculate page totals look into below screen shots of two windows and two performs code
I am summing up variable in main window and filling that page total in page total window and clearing the sum variable.
07-11-2014 3:17 PM
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!?
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?
07-11-2014 3:27 PM
See Glen you are not getting the requirement correctly.
I need to sum the amount column in a page and display it in the page total window.
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.
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.
Please see the print below.
07-14-2014 8:20 AM
Can you paste the logic also for your page break, plus the main page settings.
07-11-2014 3:56 PM
07-14-2014 8:58 AM