Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Display sub totals of each page at the top of every page in smartforms

former_member554223
Participant
0 Kudos

Hello all i am using a page break I have sub totals on my every page in smartforms but I also want this subtotal to be print in the template at the top of every page i am just displaying this total amount field but the value is not coming pls guide me

2 REPLIES 2

muttepawar-2009
Active Participant
0 Kudos

Hi

Use the counter for counting the number of records , say if each page can display 5 records , then after every 5 record calculate the subtotal and ,Create a seperate window for subtotal and display it.

Go to Mainwindow -> Table Node -> Calculation Tab ->In Operation select total , give quantity field name , target field name and time after loop .sub totals in SMARTFORMS

http://help.sap.com/saphelp_nw2004s/helpdata/en/a3/80bae8dfd911d3b576006094192fe3/frameset.htm

you can do the subtotals at page level using the Calculation Tab available in the Table.

Make a table in your main window and in the footer of your table print the sub total.

You can subtotal your field in the 'Calculation' tab of the table. Just make sure to reset this field after every page.

In the conditions tab of the footer check the boxes 'At Page Break' and 'At end of table'.

regards

Prashant

0 Kudos

Hello Prashant thank you for you answer I have already done the calculation and my subtotal at the footer is displaying but I have other windows too at the same page i want this footer subtotal to be display in one of those windows of the same page like page 1 subtotal = 100 (this amount 100 should also display at the top of page too) same goes to page 2 subtotal = 50 (then print 50 at the top of second page) and etc.