cancel
Showing results for 
Search instead for 
Did you mean: 

print total at the last page footer

Former Member
0 Kudos

hi all,

I have to print records in the smartform.i need to print the grand total only on the last page footer(ex: if there are 4 pages).In the previous pages (first 3 pages footer) i need to print a message 'continue' in footer.and total amount on the 4th pages footer.

i tried using sfsy-formpages & jobpages to know the total pages but this logic is not working.

can any one let me know how to print the total on the last page .

thanks

anusha

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Anusha,

Your Requirement: Print Total only on last page Footer.

Solution: In "Conditions" tab of the text/Footer, tick below option:

"Only After End of Main Window"

Regards,

Amee Tewar

Former Member
0 Kudos

Hi Anusha,

Use Template or text in main window right after table line

table line:

header

main area

footer

text

and for grand total

in conditions tab under additional events check on 'Only Before end of main window' Footer Section of table line.

Cheers,

Dep

Former Member
0 Kudos

HI..

Try this,

Make your Total Window's Window Type as Final Window in General Attribute tab.

In Conditions tab put SFSY-PAGE = SFSY-FORMPAGES. Your problem will get solved.

Regards,

Suraj

arul_murugan
Active Participant
0 Kudos

Hi,

u can use &SFSY-JOBPAGES& for total number of pages and check your pages general attributes, whether the increase counter mode is selected or not.

Thanks

Arul

satyajit_mohapatra
Active Contributor
0 Kudos

Follow the steps......

1. Under Footer window create a program line and set a flag say FLAG as 'X' in it. Also, declare the flag in global attributes.

In the program line select 'Only after end of main window' in conditions tab.

2. Create an Alternative in same window with condition FLAG EQ 'X'. Create two text elements with text 'CONTINUE' under node false and the other for sum under node true.