Skip to Content
Author's profile photo Brendan O'Callaghan

Adjusting Margins for SAPScript and Smartform Printouts

Sometimes when printing a custom SAPScript or Smartform, some of the printout is truncated or cropped or the margins go outside the printable area of the page.  The spool print preview looks fine, but the physical printout can be missing a few millimetres of the right-hand side of the print for example.

This problem is discussed in the SAP note 101266, and you can use the ‘Horizontal Move’ and ‘Vertical Shift’ settings for your output device in transaction SPAD to adjust your margins.

  • 101266 – SAPscript: printable area for laser printers

The Horizontal Move and Vertical Shift settings shifts the printout (or effectively adjusts the margins) on the page when you create a new spool for the output device.  In transaction SPAD, select your output device, and go to the Output Attributes tab.  Here you have the ‘Additional SAPscript and Smartform information’ section:


The default value is millimetres.  Horizontal move will shift the print left or right on the printout.  Vertical shift will adjust the print up or down on the printout.

For example, if your spool has the last line cut-off at the end of the printout, you may wish to shift the print upwards on the page.  To do this, enter a value

for example -5 in the Vertical shift option and save your change.  This will move the print 5 mm upwards when you create a new spool with this output device

and print:


Remember that any change you make to these settings will only effect new spools that are created with your new settings.  Old spools are not effected by your changes when printed.

These settings only effect SAPScript and Smartform spools (not ABAP Lists or PDF spools).  The problem usually occurs in the first place with custom Z forms because the custom form has been created slightly too wide or too long.  The real, or alternative, solution to these problems is usually to adjust the custom form itself in SE73 (SAPScript) or transaction smartforms.

Assigned Tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo Buddhika Krishantha
      Buddhika Krishantha

      Very usefull document.