Show TOC

PagesLocate this document in the navigation structure

Procedure

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:

  • Name of the next page

  • Page counter mode

    INC

    Increases the counter by 1

    HOLD

    Counter remains unchanged

    START

    Sets the counter to 1

    Note

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

    • Numbering type of the page counter

      ARABIC

      Arabic numerals

      LETTER

      Letters

      ROMAN

      Roman numerals

      Note

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

      • Output length for page numbering with numerals

      • Upper or lower case for numbering with Roman numerals or letters

      • Resource name

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

        In the Resource Name field, 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 supported by the printer)

        • TRYMN: Switch the printer to manual paper feed (if supported by the printer). The printer pauses until you feed a sheet of paper into it.

        • TRYME: Switch the printer to manual envelope feed (if supported by the printer). The printer pauses until you feed an envelope into it.

          Note

          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, and KYOFS1500.

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

      • Print Mode

        In the Print Mode field, you can specify single or double-sided printing for a page. Possible values:

        • No entry: Currently active printing mode continues unchanged.

        • S: The page is printed in simplex mode. That is, the printer prints 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 page and continues printing 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.

          Note

          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 following print controls are defined for these functions: 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

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 duplex 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 are printed only on the front sides of new sheets of paper.

These settings are required for Print Mode for the following reason: When SAPscript sends a page with print mode D or T to the printer, it not only activates the print mode, but also informs the printer to print the front side of a page. This ensures that the first page is correctly output in the new mode. 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.

Example

You define a form to be printed in duplex mode. You therefore define a starting page named FIRST and then set the Print Mode for this page to D.

Now you have to define a following page named FOLLOWER. For this page, you leave the Print Mode field blank. In the form definition, you specify FOLLOWER as the follow-on page for FIRST and for itself as well.

Your form 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 adopts 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

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.