Start of Content Area

Description of all SAPscript Print Controls  Locate the document in its SAP Library structure

SAPscript drivers use the following print controls:

Name

Description

S0001 - S9999

Sets the character set required for a SAPscript printer font. <nnnn> is the spool system's ID number for a character set. Issued when a printer font is selected and a character set number (code page) has been assigned to the font family in SAPscript. Example: font family OCRA, codepage 4001. The instruction is sent just before the SF<xxx> print control, which selects the font.

You can define these print controls with empty Control character sequences if the SF<nnn> print controls select both the printer font and character set. The standard SAP system is set up as follows: Character set changes are activated using SF<nnn> print controls, and the S<nnnn> print controls are blank.

Be sure to define all standard S<nnnn> print controls (even if they have empty definitions). Otherwise, the spool system generates print–error logs reporting that the S<nnnn> print control is missing.

SF<nnn>

Use the SAPscript printer font designated by the ID number <nnn>. Sent whenever the font is changed. Use these print controls to set both the printer font and printer character set as required. You can then leave the S<nnnn> print controls empty. This simplifies maintenance of your device types.

The SAPscript OTF drivers use these print controls to set the printer to the printer-specific font corresponding to the SAPscript font.

To make an SF<nnn>-instruction available for SAPscript, enter it for the corresponding font in the SAPscript font maintenance function: Administration CCMS Print ® Font Maintenance.

Non-proportional fonts: Note that the step size specified in SAPscript font maintenance must match the actual step size setting at the printer. For example: Font LNPRINT 85 is defined with CPI 15.00. The printer must therefore be set to 15 characters per inch.

You should make it a practice to set the printer step size along with the font in the SF print control.

Proportional fonts: Note that the step sizes at the printer must match the Adobe Font Metrics (AFM Metrics) specified in the SAPscript definition of the font used. Only the SAPscript HPL2, PRES, and POST drivers support proportional fonts.

You can use a test print to determine if the printer step sizes and are compatible with the AFM-metrics. Character spacing in the print out should be correct, neither too wide nor too tight nor uneven.

OCR-A and OCR-B fonts: SAP has maintained SF print controls for switching to OCR printing for the device types shown in the following section: Printer Types with Predefined OCR Support.

SBP<nn>

Bar code prefix, the escape sequence that must be sent before printing bar codes in a SAPscript form.

<nn> is an arbitrary number used to distinguish different types of bar codes.

This bar code is maintained for all standard SAP device types that support bar code printing. For a list of predefined bar codes, see Predefined Bar Codes.

NoteThe PRES printer driver encloses the data marked by the SBP and SBS escape sequences in single quotation marks.

The POST driver encloses the data marked by the SBP and SBS escape sequences in parentheses. This marks the data as a PostScript constant.

The other printer drivers pass the bar code data without modification at the printer. If quotes or other markings are required for bar code data, then you must enter these as part of the SBP and SBS print control definitions.

SBS<nn>

Bar code suffix, the escape sequence that must be sent after printing a bar code.

<nn> is an arbitrary number used to distinguish different types of bar codes.

This bar code is maintained for all standard SAP device types that support bar code printing. For a list of predefined bar codes, see Predefined Bar Codes.

Print controls for duplex mode:

SPMSI

Begin simplex printing (front side of paper only) with the current page. If another mode was previously active, then the printer is switched with start of page to simplex mode and continues in this mode.

SPMDU

Begin duplex printing (both sides of paper). The current page is printed on the first side of a sheet in duplex mode. If another mode was previously active, then the printer is switched to duplex mode at the start of the page. Duplex mode also remains active from then on.

SPMTU

Begin tumble duplex printing (both sides of paper, top and bottom reversed on second sides). The current page is printed on the first side of a sheet in tumble duplex mode. The printer continues printing in tumble-duplex mode. The page on the second side is always inverted, so that the footer of the second page is printed opposite the header of the first page.

SPMFS

Print on first side of sheet in duplex or tumble -duplex mode. For PostScript, define this print control with an empty Control character sequence.

SPMBS

Print on second side of sheet in duplex or tumble-duplex mode. For PostScript, define this print control with an empty Control character sequence.

SPORT

Switch to portrait mode at the start of a page.

This instruction is sent to the printer at the start of every page printed in portrait mode.

You only need to maintain this print control for printers that can switch modes (page printers). You can define the print control with an empty Control character sequence where it is not needed (for printers that do not support landscape printing and for line printers that print on continuous–feed paper).

SLAND

Switch to landscape mode at the start of a page.

This instruction is sent to the printer at the start of every page printed in landscape mode.

You only need to maintain this print control for printers that can switch modes (page printers). You can define the print control with an empty Control character sequence where it is not needed (for printers that do not support landscape printing and for line printers that print on continuous–feed paper).

SLINE

Line end command, sent at the end of every line except the last line on a page.

Normally, set to CARRIAGE RETURN, LINEFEED (hexadecimal $0D $0A).

You have the option of defining this print control with an empty Control character sequence, instead entering CR LF in the End of line action in your device type formats. Both SLINE and End of line are issued at the end of each output line

SPAGE

Command for ending a page, sent at the end of the last line on a page.

Normally, set to CARRIAGE RETURN, FORMFEED (hexadecimal $0D $0C).

You have the option of defining this print control with an empty Control character sequence, instead entering CR LF in the End of page action in your device formats. Both SPAGE and End of page are issued at the end of each output page.

SUL<<

Start underlining text.

SUL>>

Deactivates underlining.

SUP<<

Start printing superscripts..

SUP>>

Deactivates superscript.

SUB<<

Start printing subscripts.

SUB>>

Deactivates subscripts.

SL<ab.c>

Set the initial line feed to AB.C lines per inch. Note that SAPscript does not use LI print controls.

Enter a line feed as a three digit number. The last digit is read as the first decimal place. For example, a line feed of 6 lines per inch is represented by the print control SL060. The system reads the value as "6.0".

You must ensure that SL060 is defined, since all SAPscript forms use this setting. Only enter other values if they are supported by an output device. SL080 and SL040 are usually supported, for example.

SC<ab.c>

Sets the initial step size to AB.C characters per inch. Note that SAPscript does not use CI print controls.

Enter step sizes as three-digit numbers. The last digit is read as the first decimal place. For example, 10.0 characters per inch is represented by the print control SC100. The system reads the value as "10.0".

You must ensure that SC100 is defined, as all SAPscript forms use this setting. You only need to maintain other step sizes if an output device supports them. SC120 and SC150 are usually supported, for example.

Print controls for tray selection

You should define all of these print controls in a new device type, as the SAPscript OTF drivers may call any of them. If one is missing, then the driver puts an error message in the output request log. Define those TRY print controls that your printer cannot support with an empty Control character sequence. They will then be ignored.

TRY01, TRY02, TRY03...

Switch to a particular paper tray at a printer.

TRYEN

Print an envelope.

TRYME

Switch to manual envelope feed.

TRYMN

Switch to manual paper feed.

This graphic is explained in the accompanying text SAP Printing Guide start page

 

 

End of Content Area