Skip to Content
Technical Articles
Author's profile photo Xavier Le Garrec

Making standard compensation statements always fit on one page 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 (see screenshot below).
  • 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

 

 

Please note there is a known limitation with this workaround that if you use tokens to display information on the main body text and the token is for a numeric field (amount, money), the field formatting displayed on the right side will not carry over to the main body text. Only custom compensation statements would allow this.

 

 

If you would like to get more insights on tips and tricks regarding standard statements, I highly recommend the following posts :

 

 

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 :

 

 

Assigned Tags

      5 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Lopamudra Chakraborty
      Lopamudra Chakraborty

      Well done!

      Author's profile photo Mike Abel
      Mike Abel

      Thanks - great tips!

      Author's profile photo Antra Mirza
      Antra Mirza

      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.

      Author's profile photo Xavier Le Garrec
      Xavier Le Garrec
      Blog Post Author

      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

      Author's profile photo Romina Warns
      Romina Warns

      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