SAP Program RFKKINV_ARCH_INVDOC_ARCHIVE - Archive Invoicing Documents

Purpose
The report carries out the first step in archiving invoicing documents.
It covers:

  • The analysis of invoicing documents with respect to possible archiving

  • Writing the invoicing documents to an archive file, based on the
  • analysis performed in the first step

    Archiving object
    The archiving object that belongs to the archiving of invoicingdocuments is FKKINVDOC.
    The archiving object includes the following data of the invoicingdocuments:

    • DFKKINVDOC_H

    • DFKKINVDOC_I

    • DFKKINVDOC_P

    • DFKKINVDOC_C

    • DFKKINVDOC_CH

    • DFKKINVDOC_S

    • DFKKINVDOC_O
    • Note
      Create the FI-CA document before you archive invoicing documents.Otherwise this could cause problems with performance.

      Integration

      Transactions
      Use the following transactions:

      • View cluster maintenance (AOBJ) - takes you to
      • the definition of the archiving object and the related Customizing.
        • Archive administration ( SARA) - takes you to
        • archive administration and the related Customizing.
          • Archive information system ( SARI) - provides a
          • technical view of the archived billing documents.

            Reports
            Archiving of invoicing documents consists of the followingreports:

            • Archive Invoicing Documents
            • (RFKKINV_ARCH_INVDOC_ARCHIVE)
              Using this report you archive invoicing documents. The system analyzesall specified invoicing documents with respect to possible archiving.
              • Delete Archived Invoicing Documents

              • (RFKKINV_ARCH_INVDOC_DELETE)
                You use this report to delete the invoicing documents written to thearchive file from the corresponding database tables.
                • Display Archived Invoicing Documents
                • (RFKKINV_ARCH_INVDOC_READ)
                  You use this report to display the archived invoicing documents.

                  Prerequisites
                  You can archive an invoicing document only if the followingprerequisites are met:

                  • The document was already invoiced and printed.

                  • The posting date and creation date of the document are before the
                  • defined residence time (residence time check).
                    • The document is not simulated.

                    • There is no BI trigger.
                    • Customizing
                      Make the necessary settings in Customizing for Contract AccountsReceivable and Payable under Integration -> Invoicing in ContractAccounts Receivable and Payable -> Archiving ->Define Standard Retention Period forArchiving of Invoicing Documents.
                      To archive invoicing documents with different residence times perdocument type, in Customizing for Contract Accounts Receivable andPayable, choose Integration -> Invoicing in Contract AccountsReceivable and Payable -> Archiving ->
                      Define Retention Period for Invoicing Documents per Document Type.

                      Selection
                      The archiving report selects the following invoicing documents:

                      • Invoicing documents with a document number that falls within the
                      • selection entered
                        • Invoicing documents whose residence time has expired

                        • Before starting the report, you can limit the data volume to be analyzedby the document type, invoicing document numbers, contract accounts, andbusiness partners.
                          In the Comment for Archiving Run field, you can enter your owncomment for the archiving run.
                          INCLUDE ILM_STND_DOC_INCLUDE OBJECT DOKU ID TX

                          Output
                          If you start the report as a test run, no changes are made to thedatabase.
                          In an update run, changes are made to the database.
                          The detailed log displays comprehensive data for each analyzed datarecord.