IDoc Archiving

Abdul Hakim

Step: 1

Creation of Logical File Path: Go to transaction FILE and enter the logical file path.


For e.g. Z_IDOC_PATH

Step: 2 Assignment of Physical Paths to Logical Path:

Step: 3 Logical File Name Definition:


Step: 4 Go to transaction SARA. Give the Object Name as IDOC and then select the Customizing Button:

Step: 5 Select the Technical Settings Under Archiving Object-Specific Customizing:


Step: 6

Specify your Logical File Name and other customizing parameters as Required and then save:


Select the Option as Start Automatically under Delete Jobs otherwise you need to start the IDoc Deletion Program Manually!!

Step: 7 Come back to the initial screen of the transaction SARA. Give the Object Name as IDOC and then select the Write Button:


Step: 8 Give the Variant Name and then press the Maintain Button:

Step: 9 Maintain the Variant as required and then save it:


I have maintained the Creation Date as 11.08.2004,Direction as 2 and the Message type as DEBMAS. This would archive the Inbound IDocs for the message type DEBMAS created on 11.08.2004. List of Inbound IDocs for the above specification is given below.


As you can see that there are 15 Inbound IDocs found for the above specification in WE02. 11 IDocs are in 53 Status and 4 IDocs are in 51 Status.

Step: 10


Select the Start Date Button:

And then select the immediate button or as required and then hit save

Step: 11 Select the execute Button:

Step: 12

Select the JobOverview Button:


You can see that 3 jobs have been released by the System and processed!!

Job Logs


Now Checking the IDocs in WE02

You can see that all 53 Status IDocs have been Archived and deleted from the system. But 51 Status IDocs remains as this status cannot be archived. How to archive 51 Status IDocs? It is quite simple to archiving the IDocs, which are in statuses that are not meant for Archiving. In our scenario I don’t want this 4 IDocs that are in Status 51 anymore.


Go to SE38 and execute the program RC1_IDOC_SET_STATUS. Give all the IDoc numbers, which are in status 51.Specify the status as 51 and New Status as 68.Also remove the Test Flag. Press execute button

Report Output:

Go to WE02 and Check the IDocs


Now you can archive these IDocs. IDoc Status Codes that Permit Archiving: Go to transaction WE47->select a particular status code and then select the Magnifying glass button.

Check the radio buttons under Archiving Block. Poss indicates archiving is possible Excluded indicates archiving is not possible


Appendix: IDoc Archiving Programs: RSEXARCA RSEXARCB RSEXARCD RSEXARCR RSEXARCL - Archiving Program - Archiving Program - Deletion Program - Reads from Archive - Reloads from Archive

Transactions: FILE - Creating Platform independent File Names SARA - Archiving Administration WE02 - IDoc Display SM37 - Job Overview Some Additional Information on transaction FILE: File Names that you specify in the system are Platform Specific. In order to make your ABAP Programs portable across multiple Platforms you need to create a file name independent of the Platform. This can be achieved by using the transaction FILE. The Procedure used to create a platform independent file name is given in the Steps 1 to 3. Some Additional Information on Archiving: Archiving is a two-step process. 1. Documents such as IDocs, Work items and Purchase Orders etc are offloaded to an archive file at the OS Level.


2. Archive File is read and the Objects are deleted from the System



Sign up to vote on this title
UsefulNot useful