NEW-PAGE PRINT ON (Obsolete Additions)

Extras:

9. ... PRINT ON ...

   ... DESTINATION dest


   ... COPIES cop


   ... LIST NAME name


   ... LIST DATASET dsn


   ... COVER TEXT text


   ... LIST AUTHORITY auth


   ... IMMEDIATELY flag


   ... KEEP IN SPOOL flag


   ... NEW LIST IDENTIFICATION flag


   ... DATASET EXPIRATION days


   ... LINE-COUNT line


   ... LINE-SIZE  col


   ... LAYOUT layout


   ... SAP COVER PAGE mode


   ... RECEIVER user


   ... DEPARTMENT dep


   ... ARCHIVE MODE armode


Addition 9

... PRINT ON ...

  ... DESTINATION dest (Output device)

  ... COPIES cop (Number of copies)

  ... LIST NAME name (Name of list)

  ... LIST DATASET dsn (Name of spool dataset)

  ... COVER TEXT text (Title of spool request)

  ... LIST AUTHORITY auth (Necessary display authorization)

  ... IMMEDIATELY flag (Print immediately ?)

  ... KEEP IN SPOOL flag (Hold list after printout ?)

  ... NEW LIST IDENTIFICATION flag (New spool request ?)

  ... DATASET EXPIRATION days (Retain list for days days)

  ... LINE-COUNT line(line Lines per page)

  ... LINE-SIZE  col ( col Columns per line)

  ... LAYOUT layout (Print layout)

  ... SAP COVER PAGE mode (Print SAP cover page ?)

  ... RECEIVER user (SAP user name of recipient)

  ... DEPARTMENT dep (Name of department)

  ... ARCHIVE MODE armode (Archiving mode)

The syntax check performed in an ABAP Objects context is stricter than in other ABAP areas. See Print Parameters Missing in NEW-PAGE Statement.

Note

These additions form a unit and must constitute a complete and correct set of print parameters. They are represented by the small number of additions under NEW-PAGEPRINT ON which are set through a function module. As a result, they are less prone to errors and should therefore be used instead.

Effect

Page break and redirection of output to the SAP spool.

Starting with the new page, all WRITE statements (and also SKIP, ULINE, ...) are interpreted as print statements (see Printing in ABAP). Before the first page is printed, the user sees a screen for setting the print parameters unless the addition NO DIALOG has been specified. With LINE-SIZE and LINE-COUNT, the values defined for NEW-PAGE PRINT ON are copied into this screen. Default values can be used alternatively. The LINE-COUNT and LINE-SIZE options defined in the report header are of no relevance here. Using the remaining additions, you can propose or (for NO DIALOG) determine the individual print parameters.

In case of the parameters IMMEDIATELY, KEEP IN SPOOL and NEW LIST IDENTIFICATION, flag must be a literal or a character field of length 1. If flag is blank, the parameter is disabled. All other characters enable the parameter. It is possible to omit any of the additions for PRINT ON. mode for SAP COVER PAGE can have the values ' ', 'X', and 'D'. These values have the following meaning:
' ' : Do not print cover page
'X' : Print cover page
'D' : Print cover page according to printer setting

armode for ARCHIVE MODE can have the values '1', '2', and '3'. These values have the following meaning:
'1' : Print only
'2' : Archive only
'3' : Print and archive

Notes

Additional help

Printing Lists