Skip to Content

Those of you who had to monitor iDocs certainly had to get rid of some unwanted iDocs by either deleting them or archiving them.

This article is the fruit of my research on the internet on the subject.

First of all, if you want to get rid of old iDocs, a good way is to set them to status 68, which means they are flagged for destruction.

You probably don’t want to delete them, but rather put them in a status that would not be reported in your monitoring reports.

There are a couple a ways to update an iDocs status: Mass update (on certain SAP products only) or One-by-one.

For mass update, you can use a report that is available in SAP ERP 6 EHP 4:  RC1_IDOC_SET_STATUS.

This report lets you change the iDocs status for a list/range of iDocs based on selection criterias.

/wp-content/uploads/2013/01/image048_179754.jpg

I find it pretty usefull when performing implementations and a lot of irrelevant iDocs are generated during cut-overs.

Tim Yates has built a very detailled document about this report :

http://www.dataxstream.com/2009/10/mass-status-change-sap-idoc

When it comes to s products where this report is not available, only one option comes to mind.

It is a function module called IDOC_STATUS_WRITE_TO_DATABASE.

You can only change one iDoc at a time.  You can always build an ABAP program to perform automated status updates (see this post:http://www.sapfans.com/forums/viewtopic.php?t=257678)

You can call IDOC_STATUS_WRITE_TO_DATABASE through Tcode SE37:

You just need to specify the iDoc number in parameter IDOC_NUMBER and the desired status in parameter IDOC_STATUS.  Normally the desired status when you want to get rid of old iDocs is 68.

I don’t have the list of authorizations needed for this function, but I’d bet they are pretty close to those required to run mass update using RC1_IDOC_SET_STATUS report.

For both, report and function, proceed with extreme caution.  The results may cause problems in your systems if you don’t know what you are doing.


To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply