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 Idocs

Former Member
0 Kudos

Hi All,

To delete the outbound idocs is it enough to delete the contents of the table

<b>EDIDC , EDID4 and EDIDS</b>.

Is there any other tables where the data is linked and need to be deleted.

Is it advisable to delete or archive the idocs and if it's archiving is there any standard report to do the same.

Thanks and Regards,

Siva.

7 REPLIES 7

former_member181962
Active Contributor
0 Kudos

Don't delete the data from the tables:

Instead, use this FMs:

EDI_ARCHIVE_IDOCS

EDI_DELETE_ARCHIVED_IDOCS

First to archive and the second to delete them.

Regards,

Ravi

Former Member
0 Kudos

Hi,

You should not delete the IDOCS from the table like that.

Take a look at this.

From note 40088

"There is no special deletion program for IDocs.

Use the archiving programs. IDoc is a separate archiving class. The following programs are available:

1. Archive RSEXARCA and RSEXARCB (as of Release 3.0C)

2. Delete RSEXARCD

3. Read archiveRSEXARCR

4. Restore RSEXARCL

Archiving is better as you might have legal requirements to retain the data for a specific period.

Regards,

Ravi

Note : Please mark the helpful answers

Former Member
0 Kudos

Hi Siva,

You can call the function EDI_DOCUMENT_DELETE, pass the IDoc Number to it and delete the one which you want.

Reward points if helpful,

Regards,

Sumana

Former Member
0 Kudos

Hi,

Is there any function module where I can give the associated message type or the statuses of related idoc which I need to delete,rather than deleting each idoc one by one using Fm EDI_DOCUMENT_DELETE.

We need to delete quite a lot of idocs.

Rgds,

Shiva.

0 Kudos

Hi Siva,

YOu can get the idocs from the edi* tables for your selection criterion into an internal table and then

loop at itab.

call function 'EDI_DOCUMENT_DELETE'.

.

.

endloop.

Regards,

Ravi

0 Kudos

Siva,

Why can't you use the program RSEXARCD to schedule a job that will delete the IDOCS accordingly the SELECTION criteria, not sure why you are preferring to custom code the same, when a standard program is available.

Regards,

Ravi

Note : Please mark all the helpful answers