‎2005 Oct 31 2:25 PM
all,
i am trying to sum the totals by page.. i cannot store the sum in a global variable..coz that only gives me net total(not by page)..tried using summing command..it's not working...any thoughts...appreciate ur help..
Regrads..
mob.
‎2005 Oct 31 2:38 PM
Try displaying ur total in the footer rather than the main window . By doing this youe cumulative total will be shown in every page .
‎2005 Oct 31 2:38 PM
Try displaying ur total in the footer rather than the main window . By doing this youe cumulative total will be shown in every page .
‎2005 Oct 31 2:49 PM
i'm not displaying totals in main-window, i have a total window.. how do you cumulate by page??
‎2005 Oct 31 2:55 PM
Hi
I think you have two possibility:
- To use command SUMMING:
/: SUMMING PROGRAM_SYMBOL INTO TOTAL_SYMBOL
The PROGRAM_SYMBOL is the global variable you want to sum, TOTAL_SYMBOL is a variable defined in the sapscript:
/: DEFINE TOTAL_SYMBOL = '0'.
You should try to define TOTAL_SYMBOL just once (for example in a window you use only once).
- To use a routine to sum:
/: PERFORM DO_SUM IN ZMYPROGRAM USING PROGRAM_SYMBOL
CHANGING TOTAL_SYMBOL.
Max