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 SAPscript
uses its own private set of print controls when it formats text for output. These print controls are listed separately under SAPscript Print Controls.
Standard ABAP Print Controls for List Printing
ABAP statement |
Print Controls Used by this Statement |
|---|---|
FORMAT For more information, see the keyword documentation. |
COL<xx> Set 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:
|
PRINT-CONTROL For more information, see the keyword documentation. |
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. Example: 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:
|
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:
|
PRINT-CONTROL |
LI<lpi>: Line spacing (lines per inch) The leadings in existing CI print controls are three digit numbers that are read without a decimal place. Example: 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:
|
PRINT-CONTROL |
LM<nnn>: Sets the left margin The value is in characters. Example: LM005 sets the left margin to five characters. |
PRINT-CONTROL |
FO<nnn>: Select a font or typeface. As implemented in the standard FO print controls, the command sets the following:
|
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 SAP
|