IDoc Archiving
IDoc Archiving
Abdul Hakim
Abdul Hakim
Step: 1 Step: 1For e.g. Z_IDOC_PATH For e.g. Z_IDOC_PATH
Step: 2 Step: 2
Assignment of Physical Paths to Logical Path: Assignment of Physical Paths to Logical Path:
Step: 3 Step: 3
Step: 4 Step: 4
Go to transaction SARA. Go to transaction SARA.
Give the Object Name as IDOC and then select the Customizing Button: Give the Object Name as IDOC and then select the Customizing Button:
Step: 5 Step: 5
Select the Technical Settings Under Archiving Object-Specific Select the Technical Settings Under Archiving Object-Specific Customizing:
Step: 6 Step: 6
Specify your Logical File Name and other customizing parameters as 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
Select the Option as Start Automatically under Delete Jobs otherwise you need to start the IDocto start the IDoc Deletion Program Manually!!
Deletion Program Manually!!
Step: 7 Step: 7
Come back to the initial screen of the transaction SARA. Come back to the initial screen of the transaction SARA.
Give the Object Name as IDOC and then select the Write Button: Give the Object Name as IDOC and then select the Write Button:
Step: 8 Step: 8
Give the Variant Name and then press the Maintain Button: Give the Variant Name and then press the Maintain Button:
Step: 9 Step: 9
Maintain the Variant as required and then save it: Maintain the Variant as required and then save it:
I have maintained the
I have maintained the Creation Date as 11.08.2004,DirecCreation Date as 11.08.2004,Direction as 2 tion as 2 and the Message type and the Message type asas DEBMAS. This would archive the Inbound IDocs for the
DEBMAS. This would archive the Inbound IDocs for the message type DEBMAS created onmessage type DEBMAS created on 11.08.2004.
11.08.2004.
List of Inbound IDocs
As you can see that there are
As you can see that there are 15 Inbound IDocs found for the above specification in WE02.15 Inbound IDocs found for the above specification in WE02. 11 IDocs are in 53 Status and 4 IDocs are in 51 Status.
11 IDocs are in 53 Status and 4 IDocs are in 51 Status.
Step: 10 Step: 10
Select the Start Date Button: Select the Start Date Button:
And then select the immediate button or as required and then hit save And then select the immediate button or as required and then hit save
Step: 11 Step: 11
Select the execute Button: Select the execute Button:
Step: 12 Step: 12
Select the JobOverview Button: Select the JobOverview Button:
You can see that 3 jobs have been released by the System and processed!! You can see that 3 jobs have been released by the System and processed!!
Job Logs Job Logs
Now Checking the IDocs in WE02 Now Checking the IDocs in WE02
You can see that all 53 Status IDocs have been Archived and deleted from the 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.
system. But 51 Status IDocs remains as this status cannot be archived. How to archive 51 Status IDocs?
How to archive 51 Status IDocs?
It is quite simple to archiving the IDocs, which are in statuses that are not meant 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
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
Go to SE38 and execute the program RC1_IDOC_SET_STATUSRC1_IDOC_SET_STATUS . Give all the. Give all the IDoc numbers, which are in status 51.Specify the status as 51 and New Status 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
as 68.Also remove the Test Flag. Press execute button
Report Output: Report Output:
Go to WE02 and Check the IDocs Go to WE02 and Check the IDocs
Now you can archive these IDocs. Now you can archive these IDocs.
IDoc Status Codes that Permit Archiving: IDoc Status Codes that Permit Archiving:
Go to transaction WE47->select a particular status code and then select the Go to transaction WE47->select a particular status code and then select the Magnifying glass button.
Magnifying glass button.
Check the radio buttons under Archiving Block. Check the radio buttons under Archiving Block. Poss indicates archiving is possible
Poss indicates archiving is possible
Excluded indicates archiving is not possible Excluded indicates archiving is not possible
Appendix: Appendix:
IDoc Archiving Programs: IDoc Archiving Programs: RSEXARCA
RSEXARCA - - Archiving ProgramArchiving Program RSEXARCB
RSEXARCB - - Archiving ProgramArchiving Program RSEXARCD
RSEXARCD - - Deletion Deletion ProgramProgram RSEXARCR
RSEXARCR - Reads - Reads from from ArchiveArchive RSEXARCL
RSEXARCL - - Reloads Reloads from from ArchiveArchive Transactions:
Transactions: FILE
FILE - - Creating Creating Platform Platform independent independent File File NamesNames SARA - Archiving Administration
SARA - Archiving Administration WE02 - IDoc Display
WE02 - IDoc Display SM37
SM37 - - Job Job OverviewOverview
Some Additional Information on transaction FILE: Some Additional Information on transaction FILE:
File Names that you specify in the system are Platform Specific. In order to make 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 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 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 FILE. The Procedure used to create a platform independent file name is given in the Steps 1 to 3.
2.