Skip to Content
*Archiving*:  Archiving involves Compressing & Transferring the data which is accessed less frequently, from the database to an external storage device so that the data can be reused at a later date.    *Need for archiving*: 1. Archiving resolves memory space and performance problems caused by large volumes of transaction data. 2. Ensures that data growth remains moderate so that the database remains manageable in the long term.    *Archiving IDoc’s*: IDoc’s are stored in several database tables. To keep the access times small (to reduce the database load), without losing any IDoc’s, we archive the IDoc’s at operating system level. These archives can then be moved to external storage media, such as disks (using Archive Link) or magnetic tape.    *How are the IDoc’s archived?
*Two steps are involved in archiving the IDoc’s   • Firstly the IDoc’s are archived. • Secondly, the IDoc’s in the database which are archived are deleted from the database. This helps us in having data integrity. Unless until the archived files are verified with the files in the database, the files in database are not deleted. Data is usually archived via the central transaction SARA. In the case of IDoc’s, the corresponding tables are addressed via the ‘archiving object IDoc’. Various processing methods are assigned to the archiving class IDOC’S. The IDoc archiving tools were developed with the Archive Development Kit (ADK), which supports object-oriented programming methods. This has led to the use of archiving object IDOC, which contains the necessary database tables and the archiving class IDOC, which has the function modules required for processing. The archiving object IDOC is accessed “from outside” using reports which (indirectly) call the ADK function modules. The selection parameters for these reports are configured in the variant maintenance function for the central archiving transaction. The ADK function modules, in turn, use the function modules from archiving class IDOC to access the database tables.  *Prerequisite*: *Procedure for Archiving an IDoc*: •  Search the IDoc’s (not only with the control or address information, but also with the data it contains) using transaction WE09.  • After searching the IDoc’s, we need to check the status of the IDoc’s we need to archive. Certain IDoc statuses are classified as archivable in the standard system, while others are not. The current status of an IDoc must be archivable before the IDoc can be archived. We can archive IDoc’s with status which facilitates archiving. For example, an idoc which was not processed yet cannot be archived. And the idoc with the status code 53 (posted successfully) can be archived. So in order to archive an idoc we need to check the status of that idoc. There are two ways to archive an idoc 1. Through standard report programs or 2. Through the central archiving transaction SARA.     +*Through standard report programs*+: The following are the programs used for archiving IDoc’s RSEXARCA – program for archiving. RSEXARCD – program for deleting archived IDoc’s from the database. RSEXARCR – program to read the IDoc’s from archive file. RSEXARCL – Program to Retrieve IDoc’s from the archive into the database.    +To archive idoc using report program RSEXARCA+: This program helps to archive the data .After archiving successfully, we need to delete the data in the database.                                                          This report program has the following important select options for selecting IDoc’s to archive. 1. Time at which the control record was last changed  2. Time of IDoc creation  3. Current status  4. Logical message  5. Direction  6. IDoc number  7. Partner The system displays the status after writing the archive file. After archiving use the program RSEXARCR to read the data of the archived file (After reading the archived file a log is generated with the fields of control record) and then use program RSEXARCD to delete the IDoc’s from the database. To reload the archived IDoc’s into database: To reload the archived IDoc’s into the system use program RSEXARCL.This program checks the client, preventing data to be loaded in the wrong client. It also checks whether the idoc number that is being reloaded already exists in the database. The IDoc’s reloaded into the database have status 35(for inbound) and 71 (for outbound IDoc’s) i.e. status as ‘reloaded’. So when we start archiving again these IDoc’s are not archived. To archive these IDoc’s again we need to change the status of these IDoc’s.     +*Using the transaction SARA*+: 1. Enter the archiving object name (An archiving object name deals with related business data that is read from the database by a write program and deleted by the associated delete program after the data has been successfully archived).   !../../../../weblogs/images/251880871/4.JPG|height=329|alt=image|width=596|src=../../../../weblogs/images/251880871/4.JPG|border=1!  2. To customize the object, click on the ‘customizing’ button and enter the appropriate data. !../../../../weblogs/images/251880871/8.JPG|height=398|alt=image|width=402|src=../../../../weblogs/images/251880871/8.JPG|border=1! 3. Click on ‘write’ to find the ‘archive administration screen’. Enter the variant name. The variant determines the parameters with which the archiving program is to be started. To create a variant:  Enter a name for the variant, and choose Maintain. The program selection screen appears with available options and selection criteria. Enter the desired values and choose Variant -> Attributes. You go to the variant attribute maintenance. Enter the necessary data and save your entries. !../../../../weblogs/images/251880871/5.JPG|height=307|alt=image|width=596|src=../../../../weblogs/images/251880871/5.JPG|border=1!  3. Mention the spool parameters, the start time of archiving and execute.imageimage
To report this post you need to login first.


You must be Logged on to comment or reply to a post.

      1. harish kollipara
        Hi Gautham,
        Similarly did you try any new concepts in Idocs?
        like Continuous status message of Outbound Idoc till getting the idoc posted in receiver system…

Leave a Reply