If paragraph or character formats
are incorrect when you print out a form, do the following to
localize the error:
Is SAPscript actually being used for printing?
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
What are the typeface attributes in the form? The typeface used
for printing a piece of text is determined by the following
Default type setting for the form (in Header data
® Font attributes)
Font attributes of the paragraph used or of the default
paragraph (in Paragraphs ® Font
Font attributes of any character format used (in Character
formats ® Fontattributes)
Fonts and type faces supported by the device type in use
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.
Are both the paragraph and character formats defined in the
If the incorrectly formatted text is inserted into the main
window (MAIN) using INCLUDE, then check that no style is assigned
to the text that is included. If a style (or form that includes
styles) is assigned to the document, then these formats are used to
format the included text.
If the incorrectly formatted text is inserted with the
INCLUDE... PARAGRAPH <format name> command, then check to be
sure that there are no INCLUDE commands in the included document.
Specifying a paragraph format for an INCLUDE does not work for
Use the following procedure to test whether a text element in a
form is correctly formatted. This procedure lets you test without
having to start the print program in the SAP application, which may
require considerable knowledge of the application.
To test a text element, do the following:
Copy the form to a name in the customer name space,
Z<xxxx>, ZTEST, for example. Use transaction SE71 to do
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 /eelement_name identifier
Activate the test form.
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
Print the test document on the printer at which the output
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.