Embed Size (px)
Transcript of IDoc Archiving
Creation of Logical File Path:
Go to transaction FILE and enter the logical file path.
For e.g. Z_IDOC_PATH
Assignment of Physical Paths to Logical Path:
Logical File Name Definition:
Go to transaction SARA.Give the Object Name as IDOC and then select the Customizing Button:
Select the Technical Settings Under Archiving Object-SpecificCustomizing:
Specify your Logical File Name and other customizing parameters asRequired and then save:
Select the Option as Start Automatically under Delete Jobs otherwise you need to start the IDoc Deletion Program Manually!!
Come back to the initial screen of the transaction SARA.Give the Object Name as IDOC and then select the Write Button:
Give the Variant Name and then press the Maintain Button:
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.
Select the Start Date Button:
And then select the immediate button or as required and then hit save
Select the execute Button:
Select the JobOverview Button:
You can see that 3 jobs have been released by the System and processed!!
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
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 possibleExcluded indicates archiving is not possible
IDoc Archiving Programs:
RSEXARCA - Archiving ProgramRSEXARCB - Archiving ProgramRSEXARCD - Deletion ProgramRSEXARCR - Reads from ArchiveRSEXARCL - Reloads from Archive
FILE - Creating Platform independent File NamesSARA - Archiving AdministrationWE02 - IDoc DisplaySM37 - 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