Customer Engagement Talking to SAP and Finance and Operations During a Phased Finance Migration
How to route orders by legal entity, keep one owner per order, make messages idempotent and cut over entity by entity so no order is booked twice, and where dual-write fits.
During a phased move from SAP to Finance and Operations, Customer Engagement can feed both ERPs without double-booking an order if four rules hold. Route every order by its selling legal entity, using one routing table with an owning ERP and effective date per entity. Give each order a single owner: Customer Engagement until submission, then exactly one ERP. Make every message idempotent, with a stable order key the receiver checks before creating anything. Cut over one legal entity at a time, draining or migrating open orders first. Dual-write fits the entities already on Finance and Operations; it cannot reach SAP. Solzet builds the Customer Engagement side and the integration, implements Finance and Operations, and does not implement SAP.
Why do orders get booked twice when one CRM talks to two ERPs?
Because during a migration two paths exist for the same order, and nothing in the design says which one is allowed to act. The old SAP interface still runs for every legal entity it was built for, a new Finance and Operations path is switched on for the first migrated entity, and on cutover weekend both fire. Or a message times out, the sender retries, and the receiver had already created the order the first time. The causes are almost always one of these.
- Two integrations listen to the same order event: the legacy SAP interface and the new Finance and Operations path both pick up orders for an entity that has just moved.
- Retries without a key: a timeout or a middleware restart resends an order, and the ERP creates a second sales order because nothing identifies the first.
- Edits treated as new orders: a change to quantity or delivery date in Customer Engagement is sent as a create instead of an update.
- Open orders migrated and resent: orders open in SAP at cutover are loaded into Finance and Operations by the data migration and sent again by the integration.
- No owner for the error queue: a failed message is fixed by hand in the ERP, then reprocessed from the queue by someone else.
How does routing by legal entity work while both ERPs are live?
Every account, quote and order in Customer Engagement carries the selling legal entity, and one routing table decides where it goes. The table is data, not code: the integration reads it for every message, so moving an entity from SAP to Finance and Operations is a change to one row on a planned date rather than a deployment. Keep it in one place both the middleware and Customer Engagement can read, with an owner in the migration programme and an audit trail on every change.
| Column | Example of what it holds | Why it matters |
|---|---|---|
| Selling legal entity | The entity code used in Customer Engagement | The routing key on every order |
| Target ERP | SAP or Finance and Operations | The only system allowed to receive orders for that entity |
| Effective from | The cutover date and time for the entity | Orders submitted before it go to the old ERP, after it to the new one |
| ERP company identifier | The SAP company code or the Finance and Operations legal entity | Translates the CRM entity into the identifier each ERP expects |
| Order intake state | Open, frozen for cutover, or closed | Lets the programme stop new submissions for one entity during its cutover window |
What is the single order ownership rule, and who may change an order?
An order has exactly one system of record at any moment, and the rule says which. Customer Engagement owns the order while sales works on it. On submission the order is sent once, to the ERP the routing table names, and from then on that ERP owns it: confirmation, delivery, invoicing and any commercial change. Customer Engagement shows the status and can request a change, but the change is applied in the ERP and the result flows back. An order never changes owner from one ERP to the other except through the planned cutover of its entity.
| Stage | System of record | What Customer Engagement may do |
|---|---|---|
| Quote and draft order | Customer Engagement | Create and edit freely |
| Submitted, not yet confirmed | The ERP named by the routing table | Show status; edits blocked until confirmation or rejection comes back |
| Confirmed, in delivery | The same ERP | Show status, deliveries and stock; request changes through a defined change message |
| Invoiced | The same ERP | Show invoices and balances, read rather than copied where possible |
How do idempotent messages stop duplicates when messages are retried?
Assume every message will be delivered more than once, and make that harmless. The receiving side must be able to recognise an order it has already processed and answer with the existing result instead of creating a new one. That needs a few design decisions made once for both ERP paths.
- A stable order key generated in Customer Engagement, sent with every message and stored on the ERP sales order, so the receiver looks it up before it creates anything.
- A version or sequence number on each change, so an older update arriving late is ignored rather than applied over a newer one.
- An outbox in Customer Engagement or the middleware: the order and the message to send are recorded together, so a crash between the two cannot lose or double a submission.
- The ERP order number written back to the Customer Engagement order as soon as the ERP confirms, which is also the clearest signal to sales that the order has landed.
- A dead-letter queue with one named owner per legal entity, and a rule that failed messages are reprocessed from the queue, never re-keyed by hand in the ERP.
Where does dual-write fit during the migration, and where does it not?
Dual-write is Microsoft's near-real-time, two-way integration between customer engagement apps and finance and operations apps through Dataverse. It fits the legal entities that have already moved to Finance and Operations: customers, products, prices and, where the process uses it, quotes and orders stay in step without custom code, and virtual entities let Customer Engagement read balances or stock without copying them. When to synchronise and when to read live, and the pitfalls of each, are covered in dual-write and virtual entities explained.
Dual-write does not reach SAP. The entities still on SAP keep a middleware path, typically on Azure Integration Services, calling the interface your SAP team exposes. The danger is the overlap: if dual-write synchronises orders for all companies while the middleware also sends SAP entity orders, the same order can travel both ways. Keep each entity on exactly one path. Dual-write is configured for selected legal entities, so bring each entity into dual-write only at its cutover, and test that an order for an entity still on SAP never appears in Finance and Operations or its error log. How legal entities are added and filtered changes between versions, so check the current Microsoft Learn documentation for dual-write before designing the sequence.
How do you cut over one legal entity from SAP to Finance and Operations?
Treat each entity as its own small go-live, rehearsed like any other, with the routing table change as the switch. The sequence we run for each entity is below.
- Agree the cutover date with finance and sales, away from period end, and announce the order intake freeze window for that entity.
- Decide per open order whether it finishes in SAP or moves: short-lived orders usually finish where they started; long-running orders and contracts are migrated with their Customer Engagement order key, so the integration recognises them.
- Freeze order intake for the entity in the routing table, let in-flight messages drain, and confirm the SAP queue for that entity is empty.
- Load master data and the migrated open orders into Finance and Operations, and bring the entity into dual-write with its initial synchronisation.
- Switch the routing row to Finance and Operations with the effective time, reopen intake and submit a set of test orders end to end.
- Reconcile: every Customer Engagement order for the entity has exactly one ERP order, in exactly one ERP, and the SAP interface no longer receives anything for it.
What about customers who buy from entities on both sides of the migration?
A customer that buys from one entity still on SAP and one already on Finance and Operations has two ERP customer records and one Customer Engagement account. Keep a cross-reference on the account with the SAP customer number and the Finance and Operations customer account per entity, and decide who owns each field: the CRM owns contacts and sales attributes, each ERP owns its credit limit, payment terms and balances for its own entity. Sales then sees credit and open items per entity from the system that holds them, rather than a merged number neither ERP recognises. Consolidated reporting across both ERPs during the migration is a separate design; keep it out of the order path.
What does Solzet build, and what stays with your SAP team?
Solzet builds the Customer Engagement side and the integration, and implements Finance and Operations. That covers the legal entity model and the routing table in Customer Engagement, the order ownership rule and change messages, the idempotent middleware for both ERP paths, dual-write and virtual entities for the migrated entities, the per-entity cutover runbook and the reconciliation checks. Solzet does not implement SAP: the interface on the SAP side is provided by your SAP team or SAP partner, and we build to it against a written contract of messages, keys and error responses. Our own senior consultants and developers do the work. The service line is CRM and ERP integration, and the Finance and Operations side is Finance and Operations implementation. Whether to move from SAP to Finance and Operations or to S/4HANA in the first place is a separate decision, covered in SAP ECC to Finance and Operations when you run Dynamics 365 Sales. Buyers who would rather not carry Microsoft licensing on the sales side can choose a custom CRM that follows the same routing and ownership rules.
We recommend the right solution: Dynamics 365 (Customer Engagement, Business Central or Finance and Operations), Power Platform, or a custom-built CRM. One team for CRM, ERP and the integration between them.
What do people ask us?
How do we stop orders being booked twice while Customer Engagement talks to SAP and Finance and Operations?
Route each order by its selling legal entity from one routing table with effective dates, give each submitted order exactly one ERP owner, and make every message idempotent with a stable order key the ERP checks before creating anything. Cut over one entity at a time and keep each entity on exactly one integration path.
Can dual-write connect Customer Engagement to SAP?
No. Dual-write connects customer engagement apps and finance and operations apps through Dataverse. Entities still on SAP need a separate middleware path to the interface your SAP team exposes, and each entity should be on only one of the two paths at a time.
What is an idempotent order message?
A message the receiver can process more than once with the same result. The order carries a stable key from Customer Engagement, the ERP stores it on the sales order and looks it up before creating, so a retry returns the existing order instead of creating a second one.
What happens to orders that are open in SAP on cutover day?
Decide per order. Short-lived orders usually finish in SAP; long-running orders and contracts are migrated to Finance and Operations with their Customer Engagement order key, so the integration recognises them and does not send them again.
Who owns an order once it has been sent to the ERP?
The ERP the routing table names for its legal entity. Customer Engagement shows status and can request changes through a defined change message, but confirmation, delivery, invoicing and commercial changes are applied in that ERP and flow back.
How do sales see credit limits for a customer that buys from entities on both ERPs?
Keep a cross-reference of ERP customer numbers per entity on the Customer Engagement account and show credit and open items per entity from the ERP that holds them. Avoid a merged figure that neither ERP recognises.
Does Solzet implement SAP?
No. Solzet builds the Customer Engagement side and the integration, and implements Finance and Operations. The SAP side of the interface is provided by your SAP team or SAP partner, and we build to it against a written message contract.
Where should you go next?
CRM and ERP integration
Customer Engagement with Business Central or Finance and Operations, designed by one team.
Dual-write vs virtual entities, explained
When to synchronise with Finance and Operations and when to read it live.
SAP ECC to Finance and Operations
When leaving SAP for Finance and Operations is sound, and a fair five-year cost model.
Finance and Operations implementation
Finance, Supply Chain Management, X++ extensions, data migration and support.
Dynamics 365 and Azure integration
Middleware, queues and monitoring for integrations that must not lose a message.
Which solution is right for your business?
Tell us what you need. A senior consultant replies within one business day with a recommendation (Customer Engagement, Business Central, Finance and Operations, Power Platform or a custom-built CRM), not a sales script.