SAP transaction codeObjectBD12ModuleBTP_INTEGRATION

BD12 — Send Customer Master via ALE

BD12 triggers ALE distribution of customer master data by generating DEBMAS IDocs for selected customers, based on the receivers defined in the distribution model (BD64). It is a manual, selective send tool used for initial loads or resends, not for ongoing automatic replication, which instead relies on change pointers tied to the DEBMAS message type.

This page covers BD12, the transaction used to manually trigger outbound ALE distribution of customer master data as DEBMAS IDocs. It focuses on the difference between manual send and automatic change-pointer replication, the tables the run writes to, and the failure patterns that show up as missing or incomplete customer data on the receiving system.

Reviewed by an ERPClimb SAP consultant on 15 Sept 2026· 1,121 words

Purpose

BD12 reads the customer master tables for a selected set of customers and generates outbound DEBMAS IDocs, sending them to whichever logical systems are configured as receivers in the ALE distribution model (BD64). It builds the general data segment, company code segment and sales area segment for each customer and hands the resulting IDocs to the ALE layer for dispatch. The structural fact that causes most confusion: BD12 is a one-shot, selective send. It does not set up an ongoing subscription. If a customer is created or changed after the BD12 run, that change is not picked up automatically unless change pointers are active for DEBMAS and a separate job or BD21 run processes them. Consultants who run BD12 once and expect future updates to flow are the most common source of downstream data drift tickets.

When it is used

BD12 is reached for during initial system connection, when a new logical system, subsystem or non-SAP downstream application needs the existing customer base loaded before any ongoing sync starts. It is also used to resend a specific customer or a small range after an IDoc failed, after a mapping fix, or after a customer was extended to a new sales area and the receiver needs the updated segment. It is not the tool for real-time single-customer creation triggered by a transaction save, and it is not a substitute for setting up change pointers when the business requirement is continuous synchronization. Interface teams sometimes reach for BD12 as a quick manual override when a scheduled distribution job has stalled, which is legitimate for catching up a backlog but should not become the permanent replication mechanism.

How to use it in practice

  • Call BD12.
  • Enter the customer number or a selection range, optionally narrowed by sales organization or company code.
  • Specify the receiving logical system, or leave blank to let the distribution model determine receivers automatically.
  • Execute to generate the DEBMAS IDoc(s) for each matching customer and receiver combination.
  • Check the result count on screen, then monitor the generated IDocs in WE05 or BD87 to confirm they left the outbound queue with status 03.

Key data objects

  • EDIDC - IDoc control record created for each customer/receiver combination, holding message type DEBMAS, sender, receiver, and status.
  • EDID4 (or EDIDD on older releases) - the IDoc data segments, including E1KNA1M for general customer data, E1KNB1M for company code data and E1KNVVM for sales area data.
  • KNA1, KNB1, KNVV - source customer master tables read to populate the segments; BD12 does not write to these.
  • TBDLS and the distribution model tables behind BD64 - read to determine which logical systems receive the message type and which filter conditions apply.

How to prove it in the data

Go to SE16 on EDIDC and filter on MESTYP = DEBMAS, CREDAT/CRETIM around the run time, and RCVPRN for the target logical system. Note the DOCNUM values returned, then look those up in EDID4 filtered by SEGNAM in E1KNA1M, E1KNB1M or E1KNVVM to confirm the expected data actually made it into the segment. Cross-check the STATUS field on EDIDC: 03 means dispatched successfully from this side, 51 or 56 means the receiver rejected it, and those status values point to where the real problem sits.

ECC vs S/4HANA

BD12 remains available on S/4HANA and behaves the same way for classic ALE customer master distribution. SAP has increasingly moved newer master data integration scenarios, particularly business partner synchronization, toward other replication mechanisms, but where a landscape still relies on customer master ALE, BD12 is unchanged. There is no Fiori app equivalent; this is a backend integration transaction typically run by an interface or basis resource rather than through the Fiori launchpad.

Common pitfalls and how to diagnose them

  • No IDoc generated at all: the run completes with zero IDocs and no error message. Check BD64 first for a missing entry linking DEBMAS to the target logical system, and check any filter group condition attached to the model - a sales organization or account group filter can silently exclude the selected customers with no warning on screen.
  • Segment missing on receiver side: the IDoc is created and sent successfully but the sales area segment E1KNVVM is absent. This is almost always because the customer is not extended to that sales area in KNVV, not a BD12 defect. Confirming this means checking customer extension before touching any ALE configuration.
  • IDoc stuck at status 30 or 03 with no further movement: the outbound partner profile in WE20 is missing the message type or process code, or the port defined in WE21 points to a dead RFC destination. Confirm the port test works independently of BD12 before assuming a data problem.
  • IDoc arrives but application error on receiving side (status 51): the failure is on the inbound partner profile or a missing dependency there, for example a plant or sales area not yet set up on the receiving system. This requires looking at the IDoc on the receiver, not re-running BD12 repeatedly.
  • Expecting ongoing sync after a single BD12 run: subsequent customer changes are not distributed because change pointers for DEBMAS were never activated in BD61, or a periodic job to process them was never scheduled. Re-running BD12 manually every time is a symptom that the automatic mechanism was never properly configured.

Whose problem this is

Ownership splits between SD/MM functional, who is responsible for the correctness of the customer master data and its extension to the right sales areas, and basis or integration, who owns the partner profile, port, and distribution model configuration. A clean handover states the message type DEBMAS, the customer number involved, the receiving logical system, the IDoc number and status code, and whether the issue reproduces on a fresh manual BD12 run or only through the scheduled job.

Related SAP objects

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

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