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: 

Deleting the Outbound error Idcos with status 05

Former Member
0 Kudos

Hi,

I have a problem with outbound IDOCS. We have 3 IDOCS got the status 05.We are not able to process these IDOCS with BD88 transaction. So we created 3 more IDOCS with the same data and processed. It was successful. Now we want to delete the old IDOCS with the status 05.

Please tell me how can we do that.

Thanks,

Madhusudan.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Madhusan,

IDocs are not typically deleted. They can be archived, but you usually don't delete them.

What you can do is update the IDoc's status to reflect that it is not to be sent. You could use status 03, but I believe there are other outbound statuses that indicate an error has occurred but the IDoc should not be sent.

Use function module IDOC_STATUS_WRITE_TO_DATABASE to update the status for an individual IDoc. This function is pretty straightforward. You format one or more IDoc status messages and pass the IDoc number.

If you need to do this in a production environment, you can use the Test sequence option in SE37 to run IDOC_STATUS_WRITE_TO_DATABASE, and then BAPI_TRANSACTION_COMMIT.

I hope that makes sense,

John

2 REPLIES 2

Former Member
0 Kudos

IDocs can not be deleted, but they can be archived.

This link can be useful.

http://www.sapfans.com/sapfans/forum/intface/messages/3820.html

Thanks,

Former Member
0 Kudos

Hi Madhusan,

IDocs are not typically deleted. They can be archived, but you usually don't delete them.

What you can do is update the IDoc's status to reflect that it is not to be sent. You could use status 03, but I believe there are other outbound statuses that indicate an error has occurred but the IDoc should not be sent.

Use function module IDOC_STATUS_WRITE_TO_DATABASE to update the status for an individual IDoc. This function is pretty straightforward. You format one or more IDoc status messages and pass the IDoc number.

If you need to do this in a production environment, you can use the Test sequence option in SE37 to run IDOC_STATUS_WRITE_TO_DATABASE, and then BAPI_TRANSACTION_COMMIT.

I hope that makes sense,

John