Formatting is Incorrect

If paragraph or character formats are incorrect when you print out a form, do the following to localize the error:

Some applications (such as the Reportwriter) that use the SAPscript editor for maintaining texts do their printing using the "normal" ABAP list printing. In this case, SAPscript formatting options will have no effect at all.

You can check whether SAPscript is being used for printing by checking attributes of the spool request in transaction SP01. If the spool request uses ABAP printing, then a format name beginning with X_ will appear in the Format field. If the spool request uses SAPscript formatting, then a name such as DINA4, INCH12 that does not begin with X will appear in Format. :

In the print programs in some SAP applications (for example RFDUZI00), you can request on-screen formatting of the form that is to be printed. This is realized in SAPscript by setting DEVICE=SCREEN. This switch causes SAPscript not to format the output as for a printer, but instead to format the output as a normal list for screen display. The screen display then includes a Print button, which, however, merely causes the screen list to be printed using the normal ABAP list printing functionality. A print preview for DEVICE=PRINTER (which can be printed by SAPscript) can be identified by the fact that "print preview" appears in the title bar of the screen

SAPscript must choose a printer font (font available on the target printer) that meets the font attributes specified for the form. If the requested typeface does not exist on the target printer, then SAPscript chooses a substitute. If the substitute is not an exact match to the SAPscript typeface, then this substitution can produce output errors.

To test a text element, do the following:

  1. Copy the form to a name in the customer name space, Z<xxxx>, ZTEST, for example. Use transaction SE71 to do this.
  2. Edit the copy of the form. Specify the text element that you want to test as the default text element in the window in which it is defined. That is, put the text element right at the start of the window text, and do not use the /e element_name identifier with it.
  3. Activate the test form.
  4. Create or change a standard text. Assign your test form to the document by choosing Format ® Form. You can do this in the standard SAPscript text processing function (transaction SO10).
  5. Print the test document on the printer at which the output errors occurred.

If the text element is incorrectly formatted, you can correct it in your standard text document. You can then transfer the corrections to the original text element in its form.