IDoc Archiving

17
IDoc Archiving Abdul Hakim Step: 1 1

Transcript of IDoc Archiving

Page 1: IDoc Archiving

IDoc Archiving

Abdul Hakim

Step: 1

Creation of Logical File Path:

Go to transaction FILE and enter the logical file path.

1

Page 2: IDoc Archiving

For e.g. Z_IDOC_PATH

Step: 2

Assignment of Physical Paths to Logical Path:

Step: 3

Logical File Name Definition:

2

Page 3: IDoc Archiving

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-SpecificCustomizing:

3

Page 4: IDoc Archiving

Step: 6

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

4

Page 5: IDoc Archiving

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:

5

Page 6: IDoc Archiving

Step: 8

Give the Variant Name and then press the Maintain Button:

Step: 9

Maintain the Variant as required and then save it:

6

Page 7: IDoc Archiving

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.

7

Page 8: IDoc Archiving

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

8

Page 9: IDoc Archiving

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:

9

Page 10: IDoc Archiving

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

Job Logs

10

Page 11: IDoc Archiving

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.

11

Page 12: IDoc Archiving

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

12

Page 13: IDoc Archiving

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

13

Page 14: IDoc Archiving

Appendix:

IDoc Archiving Programs:

RSEXARCA - Archiving ProgramRSEXARCB - Archiving ProgramRSEXARCD - Deletion ProgramRSEXARCR - Reads from ArchiveRSEXARCL - Reloads from Archive

Transactions:

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.

14

Page 15: IDoc Archiving

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

15

Page 16: IDoc Archiving

16