Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

1 Comment