Print Controls for List Output

The list below shows the print control keywords used in the SAP system for list output.

Print controls are inserted in list output with the ABAP statements FORMAT and PRINT-CONTROL. List output is handled differently by the System depending upon whether a list is printed as it is being generated or directly from the display screen. If printed upon generation, then both PRINT-CONTROL and FORMAT print controls are used. If from the display, then only FORMAT print controls are used.

FORMAT and PRINT-CONTROL both use a variety of "built-in" print controls, that is, print controls which are accessed using of FORMAT or PRINT-CONTROL arguments. PRINT-CONTROL also offers the FUNCTION argument, with which any print control defined in the SAP spool system can be inserted into the output data.

Note that SAP script uses its own private set of print controls when it formats text for output. These print controls are listed separately under SAPscript Print Controls .

ABAP Statement

Print Controls Used by this Statement

FORMAT

For more information, see the ABAP User’s Guide

COL<xx>: Sets list colors for color and halftone printing (SWIN driver and Microsoft Windows printers).

The FORMAT statement and associated COL<xx> print controls supersede color setting with PRINT-CONTROL and CO00<n>.

The SAP standard includes these COL<xx> print controls:

COL0H: Color off, font intensified

COL0N: Color off, normal font

COL0V: Color off, inverse font

COL1H: Title color, font intensified

COL1N: Title color, normal font

COL1V: Title color, inverse font

COL2H: Standard color, font intensified

COL2N: Standard color, normal font

COL2V: Standard color, inverse font

COL3H: Total color, font intensified

COL3N: Total color, normal font

COL3V: Total color, inverse font

COL4H: Key color, font intensified

COL4N: Key color, normal font

COL4V: Key color, inverse font

COL5H: Positive color, intensified font

COL5N: Positive color, normal font

COL5V: Positive color, inverse font

COL6H: Negative color, font intensified

COL6N: Negative color, normal font

COL6V: Negative color, inverse font

COL7H: Group color, font intensified

COL7N: Group color, normal font

COL7V: Group color, inverse font

PRINT-CONTROL

For more information, see the ABAP User’s Guide

CI<cpi>: Character pitch (characters per inch)

The character pitches in existing CI print controls are three digit numbers that are read without a decimal place. For example, character pitch 10 is represented by the control code CI010. The system reads the value as "10".

The SAP standard includes these CI print controls:

CI005: 5 characters per inch (CPI)

CI008: 8 CPI

CI010: 10 CPI

CI012: 12 CPI

CI015 15 CPI

CI016: 16 CPI

CI024: 24 CPI

PRINT-CONTROL

CO00<n>: Obsolete Replaced by the COL<xx> print controls of the FORMAT instruction.

When used, sets the color of text to one of the following supported colors:

CO001: Black

CO002: Red

CO003: Blue

CO004: Green

CO005: Yellow

CO006: Pink

PRINT-CONTROL

LI<lpi>: Leading (lines per inch)

The leadings in existing CI print controls are three digit numbers that are read without a decimal place. For example, a leading of six lines to the inch is represented by the control code LI006. The system reads the value as "6".

The SAP standard includes the following LI instructions:

LI006: Six lines per inch leading. This leading is used for defining page lengths in SAP standard device formats for line printers.

LI008: Eight lines per inch leading.

PRINT-CONTROL

LM<nnn>: Left margin.

The value is in characters. For example: LM005 sets the left margin to five characters.

PRINT-CONTROL

FO<nnn>: Selects a font or typeface. As implemented in the standard FO print controls, the command sets the following:

The character set (such as ISO 10 Swedish),

the font (Courier or other fixed-width typeface)

The character pitch (characters per inch)

The character thickness (for example thin / bold)

The value of <nnn> in the name of an FO print control must correspond to the argument <nnn> given in the PRINT-CONTROL that uses the font.

PRINT-CONTROL FUNCTION argument

(direct entry of a print control by name)

Since any print control can be invoked with PRINT CONTROL FUNCTION <pcname>, there is no comprehensive list of print controls that are invoked in this way in the standard SAP system.

The following lists show SAP standard print controls. If you are creating a new device type, use a related device type or one with similar capabilities, if possible, as a guide as to the print controls you will actually need to define.

Bar codes: Used only in certain device types (such as those for Kyocera printers). Most bar code printing from the SAP system is done in SAPscript using separate bar code print controls.

BAROF: Ends bar code printing.

BARON: Starts bar code printing.

BC<nnn>: Prints a bar code. <nnn> must correspond to the actual name of the print control. Obsolete, should no longer be used.

Other print controls:

RESET: Reset sequence for returning a printer to its default settings. By preference, leave this print control empty and enter the required commands in the RESET AFTER EXIT action in your device formats.

SABLD: Starts boldface printing. Superseded by the COL<xx> print controls that are used with the ABAP FORMAT statement. You should still define the print control, however, to support older reports.

SAULN: Starts underlining. Superseded by the COL<xx> print controls that are used with the ABAP FORMAT statement. You should still define the print control, however, to support older reports.

SAOFF: Stops boldface printing and underlining. Superseded by the COL<xx> print controls that are used with the ABAP FORMAT statement. You should still define the print control, however, to support older reports.

SI<nnn>: Font size. The font sizes in existing SI print controls are three digit numbers which are read without a decimal place. There is no convention for entering font sizes at this time. Select SI001 for a normal font size, SI002 for a larger font.

SAP Printing Guide start page