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: 

Regarding printing totals in smartforms

bala_krishna007
Participant
0 Kudos

Hi Gurus,

I am using a smartform to print totals, totals need not be printed or each page should be printed at the end of all the line items . for that I had used a template and printed using at the end of main window event. Now i got an additional requirement to add one more page after the totals. If I add that new page the event end of main window is not triggering where as if I remove the new page the end of main window is triggering. Please help how to overcome this.

thanks,

balu

1 ACCEPTED SOLUTION

Jelena
Active Contributor
0 Kudos

If there are totals then there is likely a relevant table. In that table, add a footer and check "at end of table" checkbox. Put totals in the footer.

If you placed an additional page within the same main window then, naturally, end of main will occur when the whole main window ends. This seems logical.

4 REPLIES 4

mmcisme1
Active Contributor
0 Kudos

Please search on google or other search engine:

sap smartforms totals on end page

I found the very first link gave the snswer.

0 Kudos

Hello Michelle,

I already searched a lot in google, and all the posts explain when the total need to be printed at the end of the main page using event only after at the end of main, but in my case there is one more page to be printed thats not my last page.

thanks,

balu

mmcisme1
Active Contributor
0 Kudos

OK - I've used this before - so it is not copying:

Write your totals using this if statement:

sfsy-page eq sfsy-formpages.
If you want to go to the next page - in your code block add one to sfsy-formpages.

Thank you for searching first,

Michelle

Jelena
Active Contributor
0 Kudos

If there are totals then there is likely a relevant table. In that table, add a footer and check "at end of table" checkbox. Put totals in the footer.

If you placed an additional page within the same main window then, naturally, end of main will occur when the whole main window ends. This seems logical.