Procedure documentationAdding Print Controls to a Device Type Definition

Procedure

To add new print controls to a copy of a device type, proceed as follows:

  1. Choose Start of the navigation path Tools Next navigation step CCMS Next navigation step Spool Next navigation step Spool Administration, Full Administration End of the navigation path. Enter the name of the device type in the Device Types field and confirm your entry.

  2. Choose Print-Controls.

  3. Choose Std. Print Controls to select the print control you want to add to the device type definition.

Specifying Escape Sequences for Print Controls

Enter the attributes and the control character sequence for the new print control.

  • Control character sequence: Enter the appropriate printer command from your printer manual.

    You can enter the command either as:

    • A hexadecimal string. In this case, be sure to select the Hex field.

      If you work in a heterogeneous environment (ASCII hosts that use EBCDIC printers, or EBCDIC hosts that use ASCII printers), then enter the control character sequence in hex, not as plain text. Hex values are not sent through the character set conversion, but are passed directly as entered to the target output device.

      For an ASCII printer, enter the hex values for the ASCII string that is to be sent to the printer. For an EBCDIC printer, enter the hex values for the EBCDIC command string. For more information, see the note on Maintaining print controls in mixed environments, below.

    • Plain text. In this case, you can use the special characters (such as \e for escape) shown at the end of Editing Device Types.

    Be sure that the escape sequence that you enter matches the meaning encoded in the print control name. For example, if you define CI010, then the escape sequence that you enter should configure the printer for character pitch 10.

    If the escape sequence contains trailing spaces (spaces at the end of the string), then enter the escape in single quotation marks:

Notes

You can reach all of the utilities described in the following notes by choosing Start of the navigation path Administration Next navigation step CCMS Next navigation step Print Next navigation step Spool Administration, Full Administration, Device Types End of the navigation path, and then Print Controls (Device Types tab page) and Change.

  • Which print controls do I need? Are you defining the print controls for a new device type from scratch? If this is the case, see Print Controls for List Output and SAPscript Print Controls for the print controls used by the SAP system.

    You can also use a similar device type as a guide to the print controls needed. The set of print controls actually required by different devices varies considerably, so following an example from the SAP standard can save you extra work and/or help you ensure that all required print controls are defined.

    You do not need to define the complete set of standard print controls for a device type. Print controls that are not defined for a particular device type or which are defined with an empty Control character sequence field are ignored.

  • Copying: You can copy the print controls from one device type to another. On the spool administration initial screen, choose Start of the navigation path Utilities Next navigation step For device types Next navigation step Copy device type End of the navigation path.

  • Printing Print Controls with Definitions: With Start of the navigation path Utilities Next navigation step For print control Next navigation step Print PrCtls End of the navigation path, you can print the list of print controls defined for a device type. The list includes both the hexadecimal Control character sequence of each print control and the character representation of the control sequence. Enter the name of the device type in Device type, in Print control enter the name of the print control.

  • Print Controls for Printer Fonts and Bar Codes: Printer fonts and bar codes are defined in SAPscript. To make use of a printer font or bar code, you must also define a print control that selects the printer font or bar code. The name of each print control is determined in the SAPscript printer font/bar code definition.

SAP Printing Guide Start Page