04-27-2006 10:22 AM
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.
04-27-2006 10:27 AM
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
04-27-2006 10:28 AM
just go through this link...
http://help.sap.com/saphelp_erp2005/helpdata/en/61/4aa49b8aeb11d389bb0000e8216438/frameset.htm
04-27-2006 10:28 AM
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
04-27-2006 11:25 AM
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
04-27-2006 12:32 PM
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.
04-27-2006 12:35 PM
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
04-27-2006 3:27 PM
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