We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!
PRINT-CONTROL formats$|${FUNCTION code$}
$[LINE line$] $[POSITION col$].
This obsolete variant of the statement PRINT-CONTROL formats areas of spool lists. This applies only to spool lists created using NEW-PAGE PRINT ON, SUBMIT TO SAP-SPOOL, and when selecting Execute and Print on the selection screen. It does not work for screen lists spooled from the display by selecting Print (function code "PRI").
This statement sets a print format starting from the line specified in line and the position specified in col for all subsequent output statements of the current page. The value in col refers to the position within the list buffer. If the additions LINE or POSITION are not specified, the current position of the list cursor (sy-linno, sy-colno) is used. line and col expect data objects of type i whose values are within the current page width or page length. If line or col contain invalid values, the statement is ignored.
The possible print formats formats are listed in the table below. The runtime framework converts
these entries into printer-independent codes called print control. When a list is actually printed, the print control codes are translated into printer-specific control characters.
formats | Print Control | Meaning |
CPI cpi | CIcpi | Characters per inch |
LPI lpi | LIlpi | Lines per inch |
COLOR BLACK | CO001 | Color black |
COLOR RED | CO002 | Color red |
COLOR BLUE | CO003 | Color blue |
COLOR GREEN | CO004 | Color green |
COLOR YELLOW | CO005 | Color yellow |
COLOR PINK | CO006 | Color pink |
FONT font | FOfont | Font |
LEFT MARGIN left | LMleft | Space from the left margin |
SIZE siz | SIsiz | Font size |
The conversion to device-specific control characters takes place using the database tables
TSP03 and
T022D. If a particular option for a particular
printer type (according to table TSP03) is not supported in the table T022D (no entry), this option is ignored during printing. For more information, see the documentation for the tables
TSP03 and T022D.
There are more print control codes than print formats formats than can be specified in the statement
PRINT-CONTROL. All print control codes can also be specified directly in code using the addition FUNCTION. code must be a
flat character-like
data object that contains a valid print control code. Invalid content is ignored. A list of valid print control codes and their assignment to printers is available in spool administration (transaction
SPAD).
Leave us your contact details and we will call you back. Fields marked with * are mandatory.
We offer holistic SAP solutions from a single source to shape digital change and develop new business areas.
Switzerland
Schaffhausen
Germany
Mannheim, Düsseldorf, Munich
USA
Haverhill
Greece
Thessaloniki