Technical Articles
Making standard compensation statements always fit on one page by using variables
Overview
When designing standard compensation statements we often get an additional blank page that gets added at the end of the pdf (sometimes it shows some of the information we added to the right-side sections but other times it is totally blank).
The recording below takes us through some workarounds we can use to prevent that from happening while keeping all of the information needed on the statement. It is based on some explanations I made in the comments section of the blog post below: https://blogs.sap.com/2020/04/14/tips-tricks-to-customize-the-standard-compensation-statement/comment-page-1/#comment-512587
Known limitations of Variables :
- The currency sign and number formatting doesn’t carry over when bringing Money or Amount fields to the main text area.
- When using variables it is easy to receive error messages upon statement generation (if something is just a little bit off statement generation will fail). We recommend following the steps demoed below very carefully and always keeping a backup of the original design when editing from one year to another.
Recording
Conclusion
2 pages statement after initial design : https://drive.google.com/file/d/1P1NFdd3heg_F6XidCvfY9Ni5w1w12bDv/view?usp=sharing
1 page statement after the work around explained in the recording : https://drive.google.com/file/d/1CFxJaLAHgXiMcKuKACiKl6gA28uOjnF3/view?usp=sharing
If you would like to get more insights on tips and tricks regarding standard statements, I highly recommend the following posts :
- https://blogs.sap.com/2020/04/14/tips-tricks-to-customize-the-standard-compensation-statement/
- https://blogs.sap.com/2018/03/26/compensation-statements-in-multiple-languages-and-currencies/
- https://blogs.sap.com/2020/07/23/embedding-images-in-standard-compensation-statements/
In case you are wondering how to upload a new logo or change the size of the existing logo on a standard Compensation Statement, please find a recording below :
Well done!
Thanks - great tips!
Hello Xavier,
we have one requirement that need to get standard statement in one page as the body of the content is quite lengthy and it covers two pages.
could pls help that how we can make the statement in one page.
Hi antra mirza
Unfortunately in standard statements using Admin UI there is no button "stick on one page" to make it fit on one page for all employees you need to test like I do in my recording, move content around and follow my tips.
Custom statements allow control of the number of pages but they require xsl development.
Thanks
Hello Xavier,
Thanks for the detailed information.
I'm still wondering how I can delete the table section at all to have a "full text" document. Do you have a tipp for this aswell?
Thanks!
Romina
Hi Romina Warns
Sorry I missed your message when you posted it, I got married on that day !
Your requirement isn't possible unless you customize the statement through XSL.
All the best
Xavier
Hello Xavier,
We have a custom statement and when we view the pdf it's fit to one page. However when we download the pdf it will be always 2 pages where the second page is empty. Is there any tip&trick how to solve this?
Thanks,
Erika
Hi Erika Toth
For custom statements you would need to have a developer look at it. The language used is pretty basic for any developer, it's called XSL. There is probably an issue with the stylesheet or something like that.
All the best,
Xavier