Show TOC

Function documentationTerritory Archiving

 

You use this function in Territory Management to remove obsolete data, such as activities or sales transactions that belong to a completed business process, from the database so as to keep data growth from affecting performance. The archived data is saved in archive files outside the database, but read-only access is still possible within the CRM system. Once you have archived your data, you can delete it from the CRM database.

The Archive Development Kit (ADK) which is delivered with SAP NetWeaver is the technical framework and basis for the Territory Management data archiving solution. For more information, see Introduction to Data Archiving (CA-ARC).

You can archive and delete data from the database with the help of various archiving objects. Which archiving object you use depends on the business transaction type. The archiving object for territory management is CRM_TERR.

Prerequisites

  • You have checked the following before archiving a territory:

    • The rule or rules associated to the territory you want to archive have all expired.

    • The territory you want to archive does not have an associated active business document.

Features

The territory management archiving object CRM_TERR contains programs to preprocess, read, write, and delete territories.

To initiate these programs:

  1. Use transaction SARA. The Archive Administration: Initial Screen appears.

  2. Enter CRM_TERR in the Archiving Object field and choose Enter

You can now execute these programs to archive territories:

  • Preprocessing Program: This program displays all expired territories in the system and checks if these territories are associated to an active business document. For more information on how to do this, see Scheduling Preprocessing Programs.

  • Write Program: This program writes into archive files, all the territories that can be archived, from the territory management database table. For more information on how to do this, see Creating Archive Files.

  • Delete Program: This program deletes from the online database all data that was successfully written into the archive files. For more information on how to do this, see Deleting Archived Data from the Database.

  • Read Program: All data that has been successfully archived can be retrieved and viewed in a read-only mode. For more information on how to do this, see Reading Archive Files.