Programme SAP RINV_ARCH_REMADV - Analyze and Archive Bill Documents

Purpose
This report is the first step in archiving bill documents. It comprises:
Analysis of bill documents with respect to possible archiving
Writing of bill documents to an archive file, based on the analysisperformed in the step above
RESET N1
INCLUDE INV_ARCH_AOBJ_REMADV OBJECT DOKU ID TX
The INV_REMADV archiving object comprises the following bill documentdata:

  • TINV_INV_HEAD: Bill Header

  • TINV_INV_DOC: Bill Document

  • TINV_INV_LINE_B: Bill Line Item with Posting Information

  • TINV_INV_LINE_I: Bill Line Item with Information

  • TINV_INV_DOCPROC: Executed Processes

  • TINV_INV_DOCREF: Reference Information for Header/Document

  • TINV_INV_DOCREL: Release Information for Bill Document

  • TINV_INV_EXTID: External Identification Characteristics

  • TINV_INV_LOGHD: Log Table - Header

  • TINV_INV_LOGLINE: Log Table - Lines

  • TINV_INV_LOGPARM: Log Table - Parameters

  • TINV_INV_PRCSUPP: Document Subprocesses (Suppressed)

  • TINV_INV_STS: Control Data for Sales Tax Documents

  • You can find the definition of the archiving object and thecorresponding Customizing via transaction AOBJ.
    You can find archiving management and the corresponding Customizing viatransaction SARA.
    You can find the technical view of the archived bill documents viatransaction SARI.

    Integration
    INCLUDE INV_ARCH_REMADV_INTEGRATION OBJECT DOKU ID TX LANGUAGE EN

    Features
    The archiving report selects the following bill documents:

    • Documents that are within the specified bill number range, and have the
    • specified type, sender and recipient range
      • Documents that have the status completed or completed with
      • errors in the bill header
        • Documents that have exceeded their retention period

        • You define this period in Customizing under Define Retention Periodfor Archiving Objects.
          You can use the INV_REMADV_ARCHIVE BAdIto define additional checks on the archiving-compatibility of thebilling documents in subsequent analyses. For more information, see theBAdI documentation.

          Selection
          When you start the report, you can make various settings on the initialscreen:

          • Bill number: limits the data to be analyzed to certain bill
          • numbers.
            • Type of bill: limits the data to be analyzed to certain bill
            • types
              • Bill sender: limits the data to be analyzed to certain bill
              • senders
                • Bill recipient: limits the data to be analyzed to certain bill
                • recipients
                  • Test run: if you start the report as a test run, no changes are
                  • made to the database
                    • Productive run: changes are made to the database

                    • Detailed log: activates a detailed log with additional data on
                    • each analyzed data record (can be unclear with large data volumes)
                      • Comments on archive run: enables you to enter comments on archive
                      • runs

                        Notes on Error Messages (for system administrators)
                        If one of the following system messages occurs during the program run,correct the cause of the message and restart the archiving report.

                        • Program stop: error opening the archive file

                        • The system could not open an archive file
                          • Program stop: error reading a database table

                          • An error occurred while the system was reading the database table. Whenyou restart, the system creates a second archive file.
                            • Program stop: deletion error in a database table

                            • An error occurred while the system was deleting entries in a databasetable.
                              • Program stop: error closing archive file

                              • The system could not close an archive file
                                • Program stop: Customizing (commit counter) not permitted

                                • An error occurred while the system was reading the Customizing entriesfor the archiving object.