Show TOC

Storing Print ListsLocate this document in the navigation structure

Use

Print lists are stored asynchronously, and the storage system is regarded as an additional logical printer. ABAP has been enhanced so that, from the point of view of the application, storing appears to be carried out in the same way as a print operation.

Procedure

A request structure ARC_PARAMS (internal table TOA_ARCAS) was defined.

The commands SUBMIT TO SAP-SPOOL and NEW-PAGE PRINT ON were enhanced to include ARCHIVE PARAMETERS. The additional field ARMOD (indicating whether storing is performed) was added to the parameter PRI_PARAMETERS. The command is:

SUBMIT TO SAP-SPOOL ARCHIVE

PARAMETERS Arparams

Where the variable Arparams contains the ARC_PARAMS sought.

If print output does not occur ONLINE and under the control of the user, the parameters ARCHIVE PARAMETERS must have values. The necessary information can be determined using the function module GET_PRINT_PARAMETERS.

If you want to use the command NEW-PAGE PRINT ON or SUBMIT TO SAP-SPOOL, transfer one of the following values in the supplement ARCHIVE MODE:

  • 2

    Store

  • 3

    Store and print

To determine the export parameters OUT_ARCHIVE_PARAMETERS, the import parameters AR_OBJECT (document type) and SAP_OBJECT (business object type) must have values.

Note

For SAP_OBJECT and AR_OBJECT, a link must be maintained in Customizing so that no error scenario arises.

Note

The program OACONTA2 is available as an example report.

To obtain the ARCHIVE_PARAMS, call the function module GET_PRINT_PARAMETERS. For more information, see the documentation for the commands SUBMIT TO SAP-SPOOL and NEW-PAGE PRINT ON, and for the function module GET_PRINT_PARAMETERS.