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: 

Standard SAP program to delete IDOCS

Former Member

Hi All,

I am working on IDOC deletion. I need to delete all idocs that do not ave status codes of 03 or 53. Is there any standard SAP program which I can used to do this?

Also I need to delete the associated change pointers for the deletd idocs. Is there any way to do so?

Regards,

Yogesh Sharma

1 ACCEPTED SOLUTION

Former Member
0 Kudos

HI,

1. Check the transaction WE11.

2. Program to Delete IDOC : RSEXARCD

3. Use FM EDI_DOCUMENT_DELETE .pass the IDoc Number to it and delete the one which you want.

Edited by: avinash kodarapu on Dec 9, 2008 10:03 AM

5 REPLIES 5

Former Member
0 Kudos

HI,

1. Check the transaction WE11.

2. Program to Delete IDOC : RSEXARCD

3. Use FM EDI_DOCUMENT_DELETE .pass the IDoc Number to it and delete the one which you want.

Edited by: avinash kodarapu on Dec 9, 2008 10:03 AM

0 Kudos

Thanks Avinash for qick reply.

RSEXARCD, this program is used for deleting archived idocs. Is it possible to delete the idocs without archiving it.

Transaction we11 is to used to delete idocs without considering the status of idocs. I need to delete only those idocs which do not have status 03 or 53.

Regards,

Yogesh Sharma

0 Kudos

Hi Yogesh

Why don`t you try transaction code WE11(RSETESTD).

RSETESTD :Using this program you delete the idocs directly from the database.

This program will delete the Idocs with all the status .

Neha

Edited by: Neha Shukla on Dec 9, 2008 10:49 PM

0 Kudos

Simplest solution for you is to copy RSETESTD into a Z one, and add STATUS / and any other fields you want as selection criteria, and change the select stetment to use those new select options.

Former Member
0 Kudos

Thanks all for your responses.