Programme SAP REAARCH_DELETE_HEAD - Delete Archived Billing Documents

Title
Delete archived billing document headers

Purpose
This report covers the third step in archiving billing documentheaders: deleting header data on the basis of the archive previouslygenerated. The first step, analyzing the billing document headers, iscarried out using the REAARCH_ANALYSE_HEAD report. In the second stepthe billing document headers selected by the analysis report arearchived using the REAARCH_READ_HEAD report.
Using the AOBJ transaction, you will find the definition of theISU_BILL archiving object and the related Customizing.
Using the SARA transaction, you will find archiving administration andthe related Customizing.
Using the SARI transaction, you will find the technical view of anarchive.
Using the standard IS-U transaction SISU, you will find the accountingview of an archived billing document.

Integration

  • REAARCH_ANALYSE_HEAD

  • First step in archiving billing document headers: analyzing billingdocuments with a view to possibly archiving them.
    • REAARCH_READ_HEAD

    • Second step: archiving the billing document headers selected in thefirst step.
      • REAARCH_RELOAD_HEAD

      • Use this report to reload data that has been archived and alreadydeleted. Note that you cannot reload individual documents. You have toreload the entire archiving run. This procedure should not normally beused and should be limited to extreme problem cases (for example,incorrect retention period in Customizing).
        • REAARCH_READ_ARCHIVE_HEAD

        • This report allows you to read a billing document header archive and todisplay parts of the data in a list before the deletion program hasbeen executed. It displays the data in a technical view.

          Prerequisites

          Features
          The deletion report reads billing document headers previously archivedin an archiving run from the archive and deletes the correspondingentries in the database tables.
          If you start the report in simulation mode, the following is done foreach document read from the archive:

          • the archive status is checked

          • the number of lines in each archive file is verified
          • Starting the program
            When you start the report you can make various settings on the initialscreen:
            Test run: if you start the report as a test run, no changes are made tothe database (updating the archiving indicator in the print documentheader, deleting data).
            Log type: general statistical data or detail log with detailed data foreach analyzed record (can become confusing with large amounts of data).

            Error messages specific to the report (for system administrators)
            If one of the following system messages appears while the program isrunning, proceed as follows:

            • Program stop: error opening the archive file

            • The system could not open a new archive file. Get rid of the reason forthe error message. Restart the analysis report.
              • Program stop: error reading archiving information

              • After a new archive is opened, system data is read from it. This wasnot possible in the present case. Get rid of the reason for the errormessage. Restart the archiving report.
                • Program stop: Error closing the archive file

                • The system could not close the archive file. Get rid of the reason forthe error message. Restart the archiving report.
                  • Program stop: The CommitConter specified in Customizing is not valid

                  • A CommitCounter less than or equal to zero was specified inCustomizing. Enter a value greater than zero and restart the deletionreport.
                    • Program stop: Error deleting the archiving indicator in the ERCHARC
                    • table
                      A list of billing document numbers is displayed with this errormessage. The line could not be deleted in one of these billingdocuments.
                      Find out for which billing documents the archiving indicator could notbe deleted and get rid of the reason for the error message. Restart theanalysis report.