09-28-2005 9:29 PM
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.
09-28-2005 9:51 PM
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
09-28-2005 9:48 PM
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,
09-28-2005 9:51 PM
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