cancel
Showing results for 
Search instead for 
Did you mean: 

How to display subtotals in every page and the grand total in the last page

0 Kudos

Hello Abapers,

I am working with Smartforms. I am not able to print the subtotal in every page ie the Price for that particular page alone should be summed and in the final page I want the grand total also to be displayed. I tried the Total option in the Calculations tab but the value is just getting incremented on every page..How can I achieve this..

With Regards,

Bennet.

Accepted Solutions (1)

Accepted Solutions (1)

bpawanchand
Active Contributor
0 Kudos

Hi

Check this thread

Regards

Pavan

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Declare two different variables for subtotal and total

Use them in the calculation tab of the table node.

After displaying the subtotal create a program lines node to clear the value of the subtotal. And dont forget to mention the condition in the condition tab of the text node of your subtotal as only before end of main window.

display the grand total in the text another text node with condition... only after end of main window.

regards

padma

Former Member
0 Kudos

Hi bennet,

Create the text node in the footer area of the table in main window w_subtot and declare in the global definitions.

Refer the standard smartforms:

sf_totals

sf_subtotals

Regards,

Sravanthi