← All integrations
Shopware → SAP Business One

Shopware SAP Business One integration

Last updated:

In short

This integration writes each Shopware order into SAP Business One through the Service Layer as a Sales Order or A/R Invoice, matched to the right Business Partner and Item codes. Item master data, price lists and warehouse stock are polled from SAP as deltas and written back to Shopware, so availability stays current.

Two systems that both claim the customer and the product

Shopware is where the sale happens - the customer, the basket, the chosen payment method, the shipping address, the tax the storefront calculated. SAP Business One is where the business is run - the Business Partner ledger, the item master, warehouse stock, pricing, and every document from Sales Order to A/R Invoice to incoming payment. Both systems think they own the customer and the product. Neither is wrong, and that is the problem.

The integration settles which system owns what. Orders flow from the shop into the ERP as the correct documents against the correct Business Partner and Items; item master data, price lists, and warehouse stock flow back so the storefront sells what exists at the price finance agreed. Nobody re-keys an order into SAP, and nobody edits a stock figure in Shopware by hand.

How Shopware customers, orders and lines land in B1

Shopware object / eventBecomes in SAP Business OneNotes
Registered / guest customerBusiness Partner (Customer, CardCode)Matched to an existing BP first; new BPs get a defined CardCode series and group
Placed orderSales Order (ORDR)Header + line items mapped to Item codes; document numbering left to SAP series
Paid / fulfilled orderA/R Invoice + Incoming PaymentDocument stage driven by Shopware payment and fulfilment status
Order line itemDocument line, per ItemSales unit vs inventory unit and UoM conversion resolved here
Tax on order linesVAT group / tax code per lineDomestic, EU OSS, and reverse-charge each map to the correct SAP tax code
Item master (from SAP)Product in ShopwareItemCode as the product number; description, attributes, active flag
Price list (from SAP)Customer-group / net prices in ShopwareCurrency and price-list-per-BP respected
Warehouse stock (from SAP)Available stock in ShopwareWhich warehouse(s) feed the shop, on-hand vs committed, agreed once

Field mapping, CardCode logic, tax codes and the warehouses that feed the shop are worked out with you and your SAP partner during scoping. The pipeline then applies those decisions to every order and every stock update without further manual mapping.

Why polling, UoM and CardCodes trip up simple imports

A nightly CSV import or a generic connector handles a straightforward B2C order and leaves your SAP partner to clean up the rest:

Webhooks in, delta polling out: the running pipeline

Shopware orders are pulled from the Admin API or received by webhook, validated, resolved against SAP Business Partners and Items, and written into SAP Business One through the Service Layer as the agreed documents. Item master, price lists, and warehouse stock are polled from SAP on a delta schedule and written back into Shopware.

The Shopware order number is written onto every SAP document the order produces. When a Service Layer session drops between the Sales Order and the invoice, the retry finds the Sales Order by that reference and continues with the invoice, rather than posting the order a second time. Order and customer data is processed on EU-hosted infrastructure, so the personal data in your web orders stays in the EU.

Monitoring, alerting and incident response are part of the service, together with tracking Shopware Admin API and Service Layer changes after B1 patches. You get an SLA in place of a script nobody wanted to own.

Order volume where SAP re-keying becomes a liability

If you push a handful of orders a day and someone re-keys them into SAP in ten minutes, keep the manual process; we will not talk you out of it. The integration becomes the better deal when order volume makes re-keying a job in itself, when overselling because Shopware stock lags SAP costs you real money, when B2B customers with existing debtor accounts and price lists need to be matched correctly, or when your SAP partner is billing you to clean up duplicate Business Partners and mis-coded documents that a pipeline would have prevented.

Frequently asked questions

Do you write into SAP Business One via the Service Layer or the DI-API?
By default the Service Layer (OData v4), because it is the supported, HANA-friendly interface for SAP Business One 9.x and 10 and it handles concurrent load cleanly. Where a customer runs an older SQL-based install without a usable Service Layer, or needs a specific add-on object, we fall back to the DI-API. We agree the interface, the company database, and the licensing up front so nothing surprises your SAP partner.
How do you avoid creating duplicate Business Partners for the same customer?
Matching is the hard part, so we make it explicit. Shopware customers are resolved against existing SAP Business Partners by a deterministic key you choose - email, VAT ID, or an external number - before any new BP is created. Guest checkouts and B2B accounts with an existing debtor are handled by separate rules. New BPs get a defined CardCode series and group, never a random one, so your accounting stays clean.
Does the Shopware order become a Sales Order or an A/R Invoice?
Whichever fits your process, and often both in sequence. Many B2C shops post a paid Shopware order straight to an A/R Invoice plus incoming payment; B2B and pick-pack workflows post a Sales Order first, then let SAP drive delivery and invoicing. We map the Shopware payment and fulfilment status to the right document stage so SAP is never ahead of, or behind, what happened in the shop.
SAP Business One has no webhooks - how does stock stay current in Shopware?
Correct, SAP Business One does not push events, so we poll the Service Layer on a short schedule using UpdateDate filters to pull only what changed - item prices, warehouse stock, master data - and write deltas back to Shopware. The interval is tuned to your catalogue size and how fast stock moves, so availability in the shop tracks the ERP without hammering the Service Layer session.
What happens when a Service Layer session expires or an order fails to post?
We get the alert and act on it. The pipeline runs on EU-hosted infrastructure that we monitor, so an expired session, a Shopware or Service Layer change, or an order SAP rejects is handled on our side under the SLA, not found by your team when a customer asks where their order is. One contact on our side is responsible for it, instead of a script on someone's machine.
// scoping request

Need this integration built and permanently operated? Tell us which systems connect and what data has to move. Fixed-price scoping quote within 48 hours.

We reply within one working day. No newsletter, no sales sequence.