IDoc statusObject65ModuleBTP_INTEGRATION

IDoc status 65 — IDoc Status 65 Error in ALE Service

Status 65 means the inbound IDoc failed inside the ALE distribution layer before it was ever handed to the application posting function module. The error sits in filtering, version conversion, or distribution model evaluation, not in the business document itself. No sales order, delivery, or material master has been touched yet, which makes this status safer to reprocess than an application-side error, but only after the underlying ALE configuration fault is corrected.

This page covers inbound IDoc status 65, Error in ALE service, and explains why it stops processing before any business document is created. It walks through the configuration causes that produce it, the sequence of transactions to check, and why blanket reprocessing without fixing the distribution model or partner profile just regenerates the same failure across a batch.

Published 16 Sept 2026· 1,006 words

What the status means

Status 65 is an inbound status. It is raised while the IDoc is still moving through the ALE service layer, the technical machinery that sits between the tRFC transport and the application inbound function module: distribution model check, segment filtering, IDoc type version conversion, and any ALE-level user exits. If any of these steps throws an error, the IDoc is parked at 65 and never reaches the point where an application posting is attempted. This distinguishes it clearly from statuses like 51, which mean the application function module ran and rejected the data. At 65, the application has not been called at all, so no partial document, no sales order, no material master change exists yet.

Why it appears

  • Distribution model mismatch: the receiving system has no active model entry for the sender, message type, and (where used) filter object combination the inbound IDoc actually carries, so the ALE service cannot validate the transfer.
  • Segment filtering configuration is inconsistent between sender and receiver, so a segment the receiver expects to filter or convert does not match what was actually sent, causing the conversion service to abort.
  • IDoc type or extension version mismatch between systems: the sender used a newer or differently released segment definition than the receiver's local IDoc type, and the version-change service cannot map the fields.
  • Filter object values (plant, sales organization, distribution channel) referenced in the distribution model no longer exist or were deleted after the model was set up, so filtering fails at runtime.
  • Custom ALE service exits or BAdIs implemented for filtering, conversion, or version change raise an unhandled exception.
  • Serialization group configuration referencing a queue or grouping field that is inconsistent with the segment data delivered.
  • Client copy or transport inconsistency where the distribution model exists in one client but the IDoc partner profile points at another.

What to inspect

  • WE02 or WE05: open the IDoc, read the status record text in full, it usually names which ALE service step failed and sometimes the missing filter value or segment.
  • BD64: check whether an active distribution model entry exists for the sender, message type, and any filter object combination the IDoc carries.
  • WE20: confirm the inbound partner profile message type, process code, and any filtering settings match what the sender is actually transmitting.
  • WE30 or WE60: compare the IDoc type and segment version used by sender and receiver if a version mismatch is suspected.
  • SLG1: filter on the ALE or IDoc application log objects for the same timeframe, the detailed exception text often has more detail than the status segment.
  • ST22: check for a short dump if a custom exit in the ALE service raised an unhandled exception rather than a controlled error.

How to reprocess safely

Because status 65 stops before any application posting, there is no document to reverse and no duplicate-posting risk from the IDoc's own data. The risk is different: reprocessing before the distribution model, partner profile, or version mismatch is corrected simply reproduces the same error on every retry, and if this IDoc is one of many queued behind a serialization group, retrying blindly can back up the whole group. Fix the actual configuration gap first: add or correct the BD64 model entry, align the filter object values, resolve the IDoc type version mismatch, or patch the failing exit. Once the underlying cause is confirmed fixed on a test IDoc or in a sandbox check, reprocess through BD87, selecting the affected IDoc or the full batch stuck at 65. Watch the resulting status; a clean run moves the IDoc to 53 or into application processing and possibly 51 if a genuine application error was hiding underneath the ALE fault.

The fix people try first (and why it fails)

The default reflex is to select every IDoc at status 65 in BD87 and mass-reprocess immediately, assuming it is a transient timing or lock issue. It is not; the ALE service failure is deterministic and configuration-driven, so the retry fails at exactly the same step every time. The visible cost is a flood of repeated failures in SM58 and SLG1 that obscures the original root cause, and on systems with serialization groups active, the retried IDocs can jam the queue further, delaying every IDoc behind them even after the real fix is eventually applied.

Whose problem this is

This is primarily an interface or Basis integration problem, since the fault lies in distribution model and partner profile configuration rather than business logic. Functional teams may need to confirm which filter values or organizational units should be valid, but the fix itself, correcting BD64 entries, partner profiles, or IDoc type versions, belongs to whoever owns ALE configuration. Hand over the IDoc number, the full status text, and the relevant distribution model entry when escalating.

Common pitfalls

Status 65 is frequently mistaken for an application data error because consultants jump straight to checking the business document fields, when the actual fault sits in technical ALE configuration that has nothing to do with the payload's business content. The status text is often generic and does not name the specific missing filter value, forcing a manual comparison between the distribution model and the IDoc's actual segment content. It can also appear intermittently for only some IDocs of a message type if the distribution model has multiple filter entries and only one combination is broken, which makes the fault look random until the filter values are checked systematically.

Related SAP objects

Reviewed pages this object connects to in the ERPClimb knowledge graph.

Source: ERPClimb — https://erpclimb.com/sap-idoc/status-65ERPClimb is an independent platform and is not affiliated with SAP SE. Reference pages are written and reviewed by SAP consultants for learning and troubleshooting.