{"audience":"Integration and EDI teams, BASIS support and business units exchanging orders, invoices or delivery notes by IDoc.","authorization_objects":[{"note":"IDoc monitoring: display by message type and partner","object":"S_IDOCMONI"},{"note":"Access to the IDoc control record and partner profiles","object":"S_IDOCCTRL"}],"components":[],"countries":[],"effort_days_max":6,"effort_days_min":4,"effort_size":"M","faq":[{"a":"No, the report only lists and passes the selected IDocs to BD87. Reprocessing should be a deliberate decision, for example after master data has been corrected. If needed, a scheduled automatic retry for specific error messages can be added as a separate job.","q":"Does the report reprocess IDocs automatically?"},{"a":"The basic version reads only control and status records; order or invoice segments are not read. This keeps the report fast and only monitoring authorization is needed.","q":"Is the business data inside the IDoc shown?"},{"a":"Yes. EDIDC, EDIDS and the partner profile tables are the same in S/4HANA. Even when integration comes through middleware (e.g. SAP Integration Suite), the report covers it as long as it is processed as an IDoc.","q":"Can it be used on S/4HANA as well?"}],"features":[{"code":"alv","label":"ALV list (sort, filter, subtotals)","note":""},{"code":"layout","label":"User-specific layout variants","note":""},{"code":"drilldown","label":"Double-click drill-down to the document","note":"Double-clicking the IDoc number opens WE02; selected IDocs are passed to BD87."},{"code":"excel","label":"Export to Excel","note":""},{"code":"background","label":"Runs as a background job","note":""},{"code":"email","label":"Send the result by email","note":"The error summary per partner is sent to the partner owner defined in the settings table."}],"functions":[],"gap":"WE02/WE05 list IDocs by status and date and BD87 offers reprocessing; but neither calculates the age of an IDoc in hours, groups and counts IDocs with the same error message for the same partner and message type, or flags IDocs stuck in status 30 or 64 for too long. Emailing the error summary to the partner owner is not available either.","id":"basis-failed-idocs-aging","industries":[],"input_columns":[],"kind":"report","language":"en","lastmod":"2026-11-17","logic":"1. IDocs in error statuses within the selected creation date range are read from EDIDC: outbound 02, 04, 05, 25, 26, 29; inbound 51, 56, 60, 61, 63, 65 (the list is configurable).\n2. Depending on the selection, stuck IDocs are added: status 30 (outbound, ready for dispatch) and 64 (inbound, ready to be processed) older than the hour threshold.\n3. The status record with the highest counter (COUNTR) of each IDoc is read from EDIDS: message class (STAMID), message number (STAMNO), first variable (STAPA1), status text and date.\n4. Age (hours) = now − CREDAT/CRETIM. The number of IDocs in the same partner + message type + STAMID/STAMNO group is calculated.\n5. The process code is added from EDP21 for inbound IDocs and the port from EDP13 for outbound IDocs; IDocs without a partner profile are flagged separately.\n6. In summary mode one row = partner + message type + error; in detail mode one row = IDoc. Double-clicking the IDoc number opens WE02, an action button opens BD87 for the selected IDocs.","module":"BASIS","object_type":"alv_report","output_columns":[{"calculated":false,"formula":"","label":"IDoc number","source_field":"DOCNUM","source_table":"EDIDC"},{"calculated":false,"formula":"","label":"Direction","source_field":"DIRECT","source_table":"EDIDC"},{"calculated":false,"formula":"","label":"Status","source_field":"STATUS","source_table":"EDIDC"},{"calculated":false,"formula":"","label":"Message type","source_field":"MESTYP","source_table":"EDIDC"},{"calculated":false,"formula":"","label":"Basic type","source_field":"IDOCTP","source_table":"EDIDC"},{"calculated":false,"formula":"","label":"Sender partner","source_field":"SNDPRN","source_table":"EDIDC"},{"calculated":false,"formula":"","label":"Receiver partner","source_field":"RCVPRN","source_table":"EDIDC"},{"calculated":false,"formula":"","label":"Created on","source_field":"CREDAT","source_table":"EDIDC"},{"calculated":false,"formula":"","label":"Created at","source_field":"CRETIM","source_table":"EDIDC"},{"calculated":false,"formula":"","label":"Last status date","source_field":"LOGDAT","source_table":"EDIDS"},{"calculated":false,"formula":"","label":"Message class","source_field":"STAMID","source_table":"EDIDS"},{"calculated":false,"formula":"","label":"Message number","source_field":"STAMNO","source_table":"EDIDS"},{"calculated":false,"formula":"","label":"Status text","source_field":"STATXT","source_table":"EDIDS"},{"calculated":true,"formula":"Now − EDIDC-CREDAT/CRETIM","label":"Age (hours)","source_field":null,"source_table":null},{"calculated":true,"formula":"Number of IDocs in the same partner + message type + STAMID/STAMNO group","label":"IDocs with same error","source_field":null,"source_table":null}],"parameters":[{"example":"10.11.2026 – 17.11.2026","kind":"select_option","label":"Creation date","name":"S_CREDT","ref_field":"EDIDC-CREDAT","required":true},{"example":"51, 56, 02, 29","kind":"select_option","label":"IDoc status (blank = error list)","name":"S_STAT","ref_field":"EDIDC-STATUS","required":false},{"example":"ORDERS, INVOIC, DESADV","kind":"select_option","label":"Message type","name":"S_MESTY","ref_field":"EDIDC-MESTYP","required":false},{"example":"","kind":"select_option","label":"Sender partner","name":"S_SNDPRN","ref_field":"EDIDC-SNDPRN","required":false},{"example":"","kind":"select_option","label":"Receiver partner","name":"S_RCVPRN","ref_field":"EDIDC-RCVPRN","required":false},{"example":"X","kind":"checkbox","label":"Add IDocs stuck in status 30 and 64","name":"P_STUCK","ref_field":"","required":false},{"example":"2","kind":"parameter","label":"Stuck threshold (hours)","name":"P_MINAGE","ref_field":"","required":false},{"example":"","kind":"checkbox","label":"Show partner + message type + error summary","name":"P_SUMM","ref_field":"","required":false}],"part_of":["basis-daily-system-check-pack"],"performance":"Narrow EDIDC by status and creation date and use the index on the status field. Read EDIDS only for the selected IDocs with FOR ALL ENTRIES and pick the latest record in ABAP. Data segments (EDID4) are not read. On systems with heavy EDI traffic, limit the date range to 7 days.","quote_url":"https://nekuhub.com/en/request-a-quote/?report=basis-failed-idocs-aging","related":["basis-cancelled-long-running-jobs"],"releases":[],"source":"custom","standard_alternatives":[{"note":"Lists IDocs by status and date; no age, count of the same error or flag for stuck IDocs.","tcode":"WE02"},{"note":"Reprocesses failed IDocs; it does not give an error summary per partner or email distribution.","tcode":"BD87"}],"summary":"A custom ALV report that lists inbound and outbound IDocs in an error status or waiting too long for processing, with partner, message type, last status message and age in hours, and counts the IDocs failing with the same error. In the morning the integration team sees on one screen which error is piling up at which partner and starts with the oldest IDoc.","tables":[{"access":"read","join_on":"","role":"IDoc control record: status, direction, message type, partners, creation time (driving table)","table":"EDIDC","variant":"both"},{"access":"read","join_on":"EDIDS-DOCNUM = EDIDC-DOCNUM","role":"IDoc status records: last error message and date","table":"EDIDS","variant":"both"},{"access":"read","join_on":"EDP21-SNDPRN = EDIDC-SNDPRN AND EDP21-SNDPRT = EDIDC-SNDPRT AND EDP21-MESTYP = EDIDC-MESTYP","role":"Inbound partner profile: process code","table":"EDP21","variant":"both"},{"access":"read","join_on":"EDP13-RCVPRN = EDIDC-RCVPRN AND EDP13-RCVPRT = EDIDC-RCVPRT AND EDP13-MESTYP = EDIDC-MESTYP","role":"Outbound partner profile: receiver port and basic type","table":"EDP13","variant":"both"}],"title":"Failed IDocs Aging Report by Partner and Message Type","url":"https://nekuhub.com/en/reports/failed-idocs-aging-report-by-partner-and-message-type/","vendor_id":"nekudos"}