How to update iDoc status

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.

 

 

 

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.

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值