Formatting Is Incorrect
Use
This section explains what to do if paragraph or character formats are incorrect when you print out a form.
Procedure
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 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_ appears in the Format field. If the spool request uses SAPscript formatting, then a name such as DINA4, INCH12 that does not begin with X appears.
-
What are the typeface attributes in the form? The typeface used for printing a piece of text is determined by the following settings:
-
Default type setting for the form (in )
-
Font attributes of the paragraph used or of the default paragraph (in )
-
Font attributes of any character format used (in )
-
Fonts and type faces supported by the device type in use
-
-
Are both the paragraph and character formats defined in the form?
-
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 "nested"INCLUDEs.
-
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 this.
-
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.
-
Activate the test form.
-
Create or change a standard text. Assign your test form to the document by choosing . You can do this in the standard SAPscript text processing function (transaction SO10).
-
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.
-

