Show TOC

Import Parameters for Storing Outgoing DocumentsLocate this document in the navigation structure

Use

You can store outgoing documents that have been created using SAPscript or SAP Smart Forms. The storage system is considered an additional logical printer.

Storing SAPScript Documents

The SAPscript function modules OPEN_FORM and PRINT_TEXT have the following import parameters for storing:

  • ARCHIVE_INDEX

  • ARCHIVE_PARAMS

The SAPscript function module START_FORM has the following import parameters for storing:

  • ARCHIVE_INDEX.

For more information, see the SAPscript documentation under OPEN_FORM, PRINT_TEXT, and START_FORM.

Storing SAP Smart Forms Documents

A function module is generated by SAP Smart Forms that has the following parameters for storing:

  • ARCHIVE_INDEX

  • ARCHIVE_INDEX_TAB

  • ARCHIVE_PARAMETERS

For more information, see the documentation for SAP Smart Forms, under Parameters of the Generated Function Module.

ARCHIVE_INDEX

ARCHIVE_INDEX has the structure TOA_DARA as type. This creates the application for indexing. When printing or saving, the DARA index lines are generated from the values in the fields of the structure TOA_DARA. A file usually consists of several documents to be stored. DARA index lines are also included in the file for precise identification of the individual documents.

The application has to transfer the values for fields in the structure TOA_DARA. The lines in the structure have the following format:

Field in Structure TOA-DARA

Offset

Length (bytes)

Description

FUNCTIONS

0-3

4

Name of the function to be called (DARA)

CLIENT

4-6

3

Client

DEL_DATE

7-14

8

Date when the table entry referring to the stored document is deleted

SAP_OBJECT

15-24

10

Business object type

AR_OBJECT

25-34

10

Document type

OBJECT_ID

35-84

50

Business object key

FORM_ID

85-124

40

Document ID for the form, which is assigned to outgoing documents

FORMARCHIV

125-126

2

Storage ID for form

RESERVE

127-153

27

Reserve

NOTE

154-409

256

Note that can be stored in the storage system with a stored document

The fields SAP_OBJECT, AR_OBJECT, and OBJECT_ID must have values to guarantee assignment of the individual documents to the business object. The other fields are optional.

Note

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

ARCHIVE_PARAMS (for SAPscript documents) ARCHIVE_PARAMETERS (for SAP Smart Forms documents)

If the print output is not ONLINE and controlled by the user, the parameter ARCHIVE_PARAMS (for SAPscript documents)/ ARCHIVE_PARAMETERS (for SAP Smart Forms documents) must contain a value. The necessary information can be determined using the function module GET_PRINT_PARAMETERS.

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

OPTIONS (for SAPscript documents) OUTPUT-OPTIONS (for SAP Smart Forms documents)

In addition to the parameters for storing, the SAPscript function modules OPEN_FORM and PRINT_TEXT also have the parameter OPTIONS. This has the structure ITCPO as its type.

In addition to the parameters for storing, the function module generated by SAP Smart Forms also has the parameter OUTPUT_OPTIONS. This has the structure SSFCOMPOP as its type. For a description of the fields of this structure, see the documentation on SAP Smart Forms, under Output Options.

In both the above cases, you need to transfer a value for the field TDARMOD. The value can be one of the following storage methods:

  • 1

    Print

  • 2

    Store

  • 3

    Store and print

To store the outgoing document, you need to enter 2 (store) or 3 (store and print) in the field TDARMOD.

Note

The program OALINES is available as an example report.