Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Archiving Processed IDocs

Former Member
0 Kudos

Hi,

How do we archive IDoc's that are already processed. There are many IDoc statuses, does the status make any difference while archiving each IDoc?

Thanks,

Sreekar.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

IDoc archiving is a two-step process:

1. Archive the IDoc.

2. After that another job will be generated. You can see in your SARA for your trigger to delete those archived IDocs.

Have a look at transaction WE47, set "Archiving - Possible" for all statuses to be archived. Use transaction SARA with object IDoc to archive. If the above is set then all IDocs are archived the same way.

Transaction SARA works in the following way:

On the main screen enter IDoc as the object. Click on Customising -> Technical settings. This shows the logical filename (configured via transaction FILE & SF01) that will be used to get a filename when writing the archive files. It also shows the document type (that links to an archive via transaction 0AC0) or the archive, depending on SAP version. You can also set the size of the archive files and whether the deletion and storage jobs should execute automatically or not.

On the main screen there are, amongst others, buttons for ARCHIVE, DELETE and MANAGEMENT. When you click on ARCHIVE you will go to a screen where you can create variants, and set the parameters for the archiving job. The EXECUTE button will schedule this job. If the "start automatic" tic for the deletion program was not set in customising, you will need to go to the DELETE button on the main screen to schedule the deletion jobs, after the archive job has finished. This schedules a job per archive file. In MANAGEMENT you will be able to see the statuses of each archive run.

Reward points if found helpfull...

Cheers,

Siva.

2 REPLIES 2

Former Member
0 Kudos

Hi,

IDoc archiving is a two-step process:

1. Archive the IDoc.

2. After that another job will be generated. You can see in your SARA for your trigger to delete those archived IDocs.

Have a look at transaction WE47, set "Archiving - Possible" for all statuses to be archived. Use transaction SARA with object IDoc to archive. If the above is set then all IDocs are archived the same way.

Transaction SARA works in the following way:

On the main screen enter IDoc as the object. Click on Customising -> Technical settings. This shows the logical filename (configured via transaction FILE & SF01) that will be used to get a filename when writing the archive files. It also shows the document type (that links to an archive via transaction 0AC0) or the archive, depending on SAP version. You can also set the size of the archive files and whether the deletion and storage jobs should execute automatically or not.

On the main screen there are, amongst others, buttons for ARCHIVE, DELETE and MANAGEMENT. When you click on ARCHIVE you will go to a screen where you can create variants, and set the parameters for the archiving job. The EXECUTE button will schedule this job. If the "start automatic" tic for the deletion program was not set in customising, you will need to go to the DELETE button on the main screen to schedule the deletion jobs, after the archive job has finished. This schedules a job per archive file. In MANAGEMENT you will be able to see the statuses of each archive run.

Reward points if found helpfull...

Cheers,

Siva.

Former Member
0 Kudos

Hi Sreekar,

This answer with addition to Shiva, As per archiving IDOC is concern:

Procedure is >

  • Goto SARA > Enter archiving Object IDOC > Check for all Basic and archiving object customizing > Note: Keep Deletion setting (Archiving Object specific customizing) for automation deletion.

  • Create Write Variant > Enter the IDOC number or Created on data (that u want to archive) or IDOC status. Note: IDOC status will depend on business requirement of the client based on that we can change status in WE47.> Click on Attribute and enter the text and save it.

  • Schedule the write job & execute it. This will help you in archiving and deleting the IDOC data from the database. Deletion automatic is based on your customizing.

*Note: You can also store the archived data in archive system if you have connection with archive system. Store data can be displayed as well. through WE10 or AIS.

Reward if it benifits.

-Thanks,

Ajay