One of your earlier responses indicates that "In nearly most cases it is safe to delete IDoc that come from an...
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
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 Basis administration and NetWeaver administration
Related Q&A from Axel Angeli
An SAP user wants to know how to upload data into SAP R/3 when SAP Scripting is not enabled.continue reading
An SAP user is receiving an error message while integrating SAP iDoc PORDCR1 for a purchase order.continue reading
An SAP user is having difficulty with PERNR iDoc while transporting data from SAP to an external system.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.