Show TOC

Procedure documentationArchiving and Deleting IDocs

Prerequisites

The IDocs to be archived have an archivable status.

Procedure

  1. Go to the central archiving transaction with Start of the navigation path SAP Menu Next navigation step Administration Next navigation step System Administration Next navigation step Administration Next navigation step Data Archiving (transaction code SARA) End of the navigation path. If necessary, check the object-specific Customizing:

    Here, for example, you can set the indicator "detailed statement" in the variant to the deletion program: If required, this can be entered in the archiving log of each individual IDoc which is archived. However, this can lead to very large logs which do not necessarily contain useful information.

  2. Enter the archiving object IDOC and choose the required action, here Write (= Archive) (Write (= Archive)).

    A warning will be displayed if some of the archiving sessions for the archiving object IDoc are still incomplete. You can ignore the warning but you then run the risk of possibly archiving some IDocs twice.

  3. Define the start date of the archiving session and the spool parameters (print output).

    The traffic lights should now be green, indicating that these parameters have been maintained. Please note that you can set the archiving mode for the print output to Store Only and therefore avoid printing every individual archiving log. Enter the object type IDOC as the attachment parameter and use the F4 Help to select a suitable document type for the object type. Also enter a free text as additional information for the archiving report.

  4. Choose Maintain (Maintain) to create a report variant. As selection parameters, enter the message type and a time period within which the IDocs received their last, current status.

    Note Note

    You can specify whether you want to perform this variant as a Test run or Production run, in the Process Flow segment on the selection parameter screen. If you choose Test, you get statistics of the processed IDocs. For a detailed log, select Detailed Log.

    End of the note.

    Choose Continue (Continue) and save your variant.

  5. Return to the archiving screen and choose .

    If you selected immediately as the start date in step 3, the message New archiving job was generated is displayed in the message bar at the bottom of the screen.

  6. You can check whether your archiving session is complete by selecting Job overview. If you choose Administration, an overview of the completed and incomplete archiving runs is then displayed. If IDocs which match your selection parameters were found in the database tables, your archiving session is displayed as a folder full of archive files.

  7. If not defined differently in object-specific Customizing, your IDocs are still located in the database after archiving, that is, your archiving session is incomplete. To delete the IDocs, you must schedule a deletion job with the appropriate variant. Choose the archive file from which the IDocs are to be deleted from the database.