Q
Problem solve Get help with specific problems with your technologies, process and projects.

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...

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. .




Some IDoc handlers write application logs, so it would be neat to kill those entries also, unless the app log is not cleaned on a regular basis.

Dig Deeper on SAP ABAP

SearchERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchContentManagement

SearchHRSoftware

Close