Pages 

You must define at least one page for every form. And you must designate a "first" page in the form header. Otherwise text formatting is not possible. In addition, you should inform the system which page is to be used after reaching the end of the first page. If you do not specify a next page, the output of your text ends at the end of the current page.

To define a page, give it a name and specify attributes for it:

INC

Increases the counter by 1

HOLD

Counter remains unchanged

START

Sets the counter to 1

You can display the contents of the page counter with the system symbol&PAGE&.

ARABIC

Arabic numerals

LETTER

Letters

ROMAN

Roman numerals

Although CHAR is displayed as an entry option for the numbering type of the page counter, internally CHAR is converted to ARABIC.

With Resource name, you specify that the paper for this page should be taken from a particular paper tray at the printer.

In Resource name, enter the print control that has been defined for switching to the paper tray you want to use. In printer types pre-defined by SAP, these print controls are generally as follows:

TRY01

Select first paper tray

TRY02

Select second paper tray (if available at the printer)

TRY03

Select third paper tray (if available at the printer)

TRYEN

Print envelopes (if available at the printer)

TRYMN

Switch the printer to manual paper feed (if available at the printer). The printer pauses until you feed a sheet of paper into it.

TRYME

Switch the printer to manual envelope feed (if available at the printer). The printer pauses until you feed an envelope into it.

You can use all tray selection print controls except TRY03 with suitably equipped printers that are defined with the following SAP device types: HPLJSTND, HPLJ_II, HPLJIIID, HPLJ4, LX4039, and SNI20XX8.

You can use TRY01, TRY02, TRY03, and TRYMN on suitably equipped printers that are defined with these device types: KYOF1000, KYOF1200, KYOFS1500.

See the spool system (transaction SPAD) to check on how your printers are defined.

With Print mode, you can specify single- or double-sided printing for a page. You can choose from the following values:

' ' Currently active printing mode continues unchanged.

S The page is printed in simplex mode. That is, the printer should print on only one side of the paper. If another mode was previously active, then the printer is switched to simplex mode with the start of the page.

D The 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 with the start of the pageand continues in this mode.

T The page is printed on the first side of a sheet in tumble duplex mode. That is, the printer prints on both sides. 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.

If another mode was previously active, then the printer is switched to tumble duplex mode with the start of the page and continues printing in this mode.

Print modes are currently supported for printers that use the PCL-5 language. These are printers that are defined with the following SAP device types: HPLJ_II, HPLJIIID, HPLJ4, LX4039, SNI20XX8.

See the spool system (transaction SPAD) to check on how your printers are defined.

The print controls for these functions are SPMSI (begin simplex printing); SPMDU (begin duplex printing); SPMTU (begin tumble duplex printing); SPMFS (print on first side of sheet in duplex or tumble duplex mode); and SPMBS (print on second side of sheet in duplex or tumble duplex mode).

Defining Follow-On Pages in Duplex Print Modes

You switch to duplex or tumble duplex mode with a form page for which one of these modes is specified. To continue printing in the current mode, for follow-on pages you must define another page in which the Print mode field is empty. Otherwise, the following pages after the mode switch will continue to be printed only on the front sides of new sheets of paper.

The reason: When SAPscript sends a page with Print mode D or T to the printer, it not only sets the print mode accordingly. To ensure that the first page in the new mode is correctly output, SAPscript also instructs the printer to output the page on the front side of a sheet. If SAPscript sends a sequence of D or T pages to the printer, the output is printed only on the front side of each sheet.

You define a first page named FIRST for a form to be printed in duplex mode. You therefore set the Print mode in FIRST to D.

To make the duplex printing work correctly, you must define a second page FOLLOWER in which Print mode is left empty. In the form definition, you specify FOLLOWER as the follow-on page for FIRST and for itself as well.

Your text is then printed in duplex mode. FIRST switches the printer to duplex mode and forces printing of the first page on the front side of a new sheet. FOLLOWER accepts the duplex mode and sends no further mode print controls to the printer. The printer therefore alternately prints FOLLOWER pages on the fronts and backs of sheets.

Testing Tray Selection and Print Mode Selection

SAP provides predefined SAPscript documents with which you can test whether tray selection and print mode selection are working properly on your printers.

For tray selection, print the SAPscript document SAPSCRIPT-TRAYTEST, ID ST, Language D or E.

For print mode selection, print the SAPscript document SAPSCRIPT-PRINTMODETEST, ID ST, Language D or E.