How to delete processed IDocs
One of your earlier responses indicates that "In nearly most cases it is safe to delete IDoc that come from an...
Continue Reading This Article
Enjoy this article as well as all of our content, including E-Guides, news, tips and more.
ALE scenario (like BW) as soon as they are sent out or processed successfully." My question is, how can we delete them? Is this a simple process or do we have to configure everything for archiving? We are on 4.6C. Thanks! There is no regular housekeeping utility to delete the IDocs. The official way is to archive the IDocs via transaction SARA. However, a simple ABAP that deletes the IDocs from the three tables and cleans up the log files will do. Deleting IDocs only is done like this:
Select-options: s_docnum for edidc-docnum. Data: tedidc type standard table of edidc with header line. Select * from edidc Into table tedidc where docnum in s_docnum. Loop at tedidc. Delete edid4 where docnum eq edidc-docnum. Delete edids where docnum eq edidc-docnum. Endloop. Delete from table tedidc. .