Show TOC

Text is Shifted or Wrongly PositionedLocate this document in the navigation structure

Use

The following explains how you can correct the position of text if the entire output or individual texts are shifted to the left or right.

Procedure

Do the following to localize the error:

  • Check if tabs were used in the incorrectly positioned text, and then check the lengths of the character strings in those lines. If a character string is so long that it extends past a tab stop, then the following tab is forced over to the next tab stop. The text may then be shifted too far to the right or may even be forced onto the next line.

    Example

    Assume that the following paragraph format and text line are in your text:

    T4 ,,STRING1,,&TABLE-FIELD1&,,STRING2,,STRING3

    The doubled commas are interpreted by SAPscript as tabs.

    If the content of TABLE-FIELD1 is longer than the space between the second and third tab stop (depending on the font and output device used), then STRING2 is shifted to the fourth tab stop. As a result, STRING3 may then cause a line break and be forced to the next line. Also check the alignment of the texts: LEFT; CENTER; RIGHT; DECIMAL; SIGN.

  • Printing on a device type that is controlled by the standard driver (STN2) for line printers can result in horizontal or vertical shifting of text. This shifting occurs because the standard driver cannot overprint text (print text on top of other text) and can work only within a fixed-width scheme for character and line spacing.

    Such shifting occurs when any of the following is true:

    • The device type SAPWIN is used with the "page printer"attribute set incorrectly. This problem has been fixed as of SAP release 2.2E/2.1K (see also SAP Note 19807).

    • A non-integer line spacing (for example, 0.6 LINES) has been set for the paragraph. The STN2 driver has to round this up to the next integer number of lines.

    • Characters or strings have been defined to be on top of others (for example, in the case of overlapping windows). When using a page-oriented printer (HP LaserJet, PostScript or Kyocera) this usually is no problem (page-oriented printers can print characters on top of others). However, the STN2 driver has to shift strings that overlap others either to the left or the right.