Zum Inhalt springen
SAP, DATEV and Dynamics experts
All Articles Integration

SAP and Shopware: Real-Time Synchronization of Master Data

13 min read
SAPShopwareEchtzeitStammdatenBestandssynchronisation

SAP Business One and Shopware are the most widely used combination of ERP and e-commerce systems in the DACH region's mid-market. Yet many companies still rely on CSV exports or nightly batch runs to reconcile master data between both systems. The result: outdated inventory displays, incorrect prices in the store and delayed order processing. According to a Forrester survey, B2B merchants lose an average of 14.2 hours per week due to manual data transfer (Forrester, 2025). Real-time synchronization via the SAP Service Layer API eliminates these media breaks and creates the foundation for fully automated business processes. This article shows how to bidirectionally connect SAP Business One and Shopware in real time -- from middleware architecture to data mapping and error handling.

SAP - Shopware Real-Time SynchronizationSAP Business OneService Layer API (OData)Master Data, Prices, InventoryShopwareStore API / Admin APIProducts, Orders, CustomersMiddlewareTransformation, Validation, QueueEvent-based, bidirectionalData FlowsItem Master DataSAP leads, Delta SyncInventory LevelsReal-time Push, Multi-WarehousePrice ListsCustomer-specific, TieredOrdersShop leads, Real-timeChange Tracking (SAP)TimestampsChange LogEvent WebhookOnly changed records transferredError HandlingRetry QueueDead LetterAlertingAutomatic retry, escalationSynchronization IntervalsOrders: Real-timeInventory: every 2 minPrices: every 15 minMaster Data: Delta 5 min

Why Real-Time Synchronization Makes the Difference

Batch-based synchronization -- nightly or hourly data reconciliation between SAP and Shopware -- was the standard for years. In an era of same-day delivery and real-time availability displays, this is no longer sufficient. Business customers expect the same timeliness in a B2B store that they experience in consumer shopping: when an item is booked into the warehouse, it should be available in the store seconds later.

The economic impact is substantial. A study by Aberdeen Group shows that companies with real-time inventory data reduced their overselling rate by 67 percent (Aberdeen Group, 2024). At the same time, return rates decrease because customers receive reliable availability information. For the German mid-market, which often operates on thin margins, this efficiency gain is a decisive lever. SAP-Shopware integration in real time thus becomes a strategic investment.

Real-Time Inventory Data

Inventory changes in SAP are updated in the Shopware store within seconds -- no more outdated availability displays.

Bidirectional Data Flow

Master data flows from SAP to the store, orders and customer data flow back to the ERP -- fully automated.

Delta Sync Method

Only changed records are transferred. For catalogs with 50,000+ items (project experience), this reduces load by over 90 percent (project experience).

Customer-Specific Pricing

SAP price lists with tiered pricing and framework agreements are automatically assigned to the correct customer groups in the store.

Transaction Safety

Message queues ensure that no order is lost -- even during temporary connection interruptions.

Comprehensive Monitoring

Real-time monitoring of all synchronization processes with automatic alerting for errors or delays.

SAP Service Layer API: Technical Foundations

The SAP Service Layer API is the central interface for communicating with SAP Business One. It is based on the OData protocol and provides RESTful access to all business objects in the ERP system. For the Shopware integration, the following entities are particularly relevant: Items (item master data), BusinessPartners (customers and suppliers), Orders (sales orders), PriceLists (price lists) and InventoryGenEntries (inventory movements).

The Service Layer API supports both synchronous queries and a change log mechanism that returns all changes since a specific point in time. This delta method is the foundation for efficient synchronization: instead of querying the entire item master on every run -- with large catalogs from companies among SAP's 80,000 customers worldwide (SAP, 2025) often reaching five-digit item counts -- only actually changed records are retrieved and processed.

An important aspect of the Service Layer API is session-based authentication. Each connection requires a login that returns a session ID. This session has a limited lifetime and must be renewed as needed. The middleware must handle this session management transparently to ensure stable connections even under high load.

Middleware Architecture: The Mediation Layer Between SAP and Shopware

A direct connection between SAP and Shopware -- a point-to-point connection without a mediation layer -- may appear simpler at first glance. In practice, however, it proves maintenance-intensive and poorly scalable. Any change to either API requires adjustments to the integration. A middleware architecture decouples the systems and creates a flexible transformation layer that can be developed independently of the individual systems.

The middleware performs several core tasks: first, protocol transformation -- SAP speaks OData, Shopware offers a JSON REST API. Second, data mapping, translating SAP fields to Shopware fields and vice versa. Third, business logic, such as mapping SAP price lists to Shopware customer groups. And fourth, error handling with retry mechanisms, dead letter queues and comprehensive logging.

According to a Gartner study, 72 percent (project experience) of companies with successful ERP-store integrations use a middleware architecture (Gartner, 2025). The investment in this intermediary layer pays for itself through lower maintenance costs, faster adaptations during system updates and the ability to integrate additional systems such as PIM, CRM or WMS without additional point-to-point connections.

Middleware vs. iPaaS

In addition to custom-built middleware, iPaaS solutions (Integration Platform as a Service) also exist. The advantage of a tailored middleware lies in complete control over data flows, mapping logic and performance optimization -- particularly in complex B2B scenarios with customer-specific pricing and multi-level approval processes.

Master Data Synchronization: Items, Customers and Prices

Master data synchronization forms the foundation of SAP-Shopware integration. SAP is the leading system (master) for item master data, customer data and price lists in most scenarios. Shopware retains authority for store-specific data such as product descriptions, SEO texts, category assignments and media. This clear data authority must be defined and documented before the project begins.

For item master data, synchronization encompasses fields such as item number, description, weight, dimensions, units of measure and tax rates. SAP Business One uses a flat item model, while Shopware maps variants via property groups. The middleware must bridge these structural differences -- a SAP item with size and color variants is created in Shopware as a product with configurable variants. According to a Fraunhofer IML analysis, 32 percent (project experience) of all integration projects fail due to insufficient mapping of these data structures (Fraunhofer IML, 2024).

Customer master data synchronization connects SAP business partners with Shopware customer accounts. In the B2B domain, complex structures must be mapped: a business partner in SAP can have multiple delivery addresses, different payment terms and assigned price lists. All this information must be transferred to the store so customers see their individual conditions in the self-service portal.

Real-Time Inventory Synchronization: Technical Implementation

Real-time inventory synchronization is technically more demanding than master data synchronization, as it must occur under significant time pressure. Every inventory movement in SAP -- goods receipt, goods issue, transfer, inventory count difference -- must be reflected in the store within seconds. This is particularly critical for items with low stock levels, where a delayed update can lead to overselling.

The most proven implementation combines two mechanisms: an event-based push for time-critical inventory changes and a periodic delta sync as a safety net. The push is triggered via stored procedures or triggers in the SAP database that send a webhook to the middleware with every inventory movement. The delta sync runs every two to five minutes and reconciles any potentially missed changes. For a typical mid-market company with 5,000 to 20,000 items (project experience), this approach generates manageable load while maintaining high data currency.

For B2B stores with inventory across multiple warehouses, synchronization becomes more complex. SAP maintains inventory per warehouse, while Shopware by default displays an aggregated stock level per product. The middleware must decide how warehouse inventory is consolidated: as the sum of all locations, as the stock of the nearest warehouse, or as region-specific availability. This business logic is individually configured and can vary per customer requirement.

Price Lists and Tiered Pricing: From SAP to the Store

Price synchronization is among the most demanding aspects of SAP-Shopware integration. SAP Business One supports up to ten price lists per item, which can be differentiated by customer group, quantity, time period and currency. This complexity must be cleanly translated into the Shopware pricing model.

In Shopware, customer-specific prices are mapped via price rules and customer groups. The middleware reads SAP price lists, identifies the relevant customer group assignments and writes the prices into the corresponding Shopware structures. Tiered pricing -- quantity-dependent price tiers -- is created in Shopware as price tiers within the price rule. According to a survey by EHI Retail Institute, 68 percent of B2B merchants use customer-specific pricing models (EHI Retail Institute, 2025), underscoring the importance of clean price synchronization.

A common problem with price synchronization is performance: a catalog with 10,000 items and 50 price lists generates 500,000 price records that need synchronization. A complete reconciliation would heavily strain both SAP and Shopware. The solution is an intelligent delta method that only transfers changed prices, combined with a caching layer in the middleware that holds frequently queried prices.

Order Transfer: From Shopware Shopping Cart to SAP Sales Order

While SAP is the leading system for master data and inventory, the data flow reverses for orders: here Shopware is the source and SAP is the target. As soon as a customer places an order in the store, it must be created as a sales order in SAP Business One -- completely, correctly and in real time.

Order transfer involves translating the Shopware shopping cart into a SAP sales order. Shopware product numbers must be mapped to SAP item numbers, Shopware customer groups must reference SAP business partners, and payment and shipping conditions must be correctly assigned. In B2B specifically, additional requirements apply: order reference numbers, cost centers, customer internal order numbers and multi-level approval processes.

According to a McKinsey study, automated order transfer reduces throughput time from order receipt to order creation by 85 percent compared to manual entry (McKinsey, 2024). In practice, this means: instead of 15 to 30 minutes of manual processing per order, the SAP order is automatically created within seconds. The middleware validates each order before handoff to SAP and immediately returns an error message for missing required fields or invalid references.

Data Mapping: Field Assignment Between SAP and Shopware

Data mapping is the central challenge of any SAP-Shopware integration. SAP Business One and Shopware use fundamentally different data models, field names and data types. A systematic mapping document created before implementation and approved by both business departments is indispensable.

SAP FieldShopware FieldTransformation
ItemCodeproductNumber1:1 mapping or prefix
ItemNamename (translated)Language assignment DE/EN
QuantityOnStockstockMulti-warehouse aggregation
PriceListprices / ruleCustomer group assignment
BPCodecustomerNumberReference mapping
SalesUoMunitUnit translation

Special attention is required for fields that exist in one system but have no direct equivalent in the other. SAP recognizes customs tariff numbers, countries of origin and weight per packaging unit, which must be mapped as custom fields or product properties in Shopware. Conversely, Shopware has SEO-relevant fields such as meta description, canonical URL and category paths that play no role in SAP and are maintained exclusively in the store.

Error Handling and Monitoring: Ensuring Robust Synchronization

No integration is free from errors. Network interruptions, API timeouts, invalid data or temporary system outages are part of daily operations. A professional SAP-Shopware integration must handle these situations automatically without data loss or manual intervention.

The core of error handling is a message queue that buffers all messages to be processed. When a SAP API call fails, the message is not discarded but returned to the queue and reprocessed after a configurable wait time (retry with exponential backoff). Messages that cannot be processed after a defined number of attempts end up in a dead letter queue and trigger an alert.

Monitoring spans multiple levels: technical monitoring (API availability, latency, error rate), functional monitoring (number of synchronized records, deviations between expected and actual) and business monitoring (orders without SAP sales order, price deviations). With a central log/monitoring system, our experience shows that 73 percent (project experience) of all synchronization problems can be resolved before they impact business processes (project experience). Connecting to a professional monitoring system is therefore not optional but essential.

Performance Optimization: Synchronizing Large Data Volumes Efficiently

Synchronization performance becomes critical as catalogs grow and order volume increases. A B2B merchant with 30,000 items, 200 price lists and 500 orders per day generates substantial data volume that the middleware must process efficiently.

Proven optimization strategies include the delta sync method mentioned earlier, parallel processing of independent data flows (item master data and orders can be synchronized in parallel), batch operations for the Shopware API (multiple records in a single API call) and caching of frequently queried reference data in the middleware. In practice, optimized integrations achieve a processing rate of 200 to 500 records per second (project experience), enabling a full reconciliation in under one hour even for large catalogs.

Another performance factor is choosing the right synchronization interval. Not all data needs real-time synchronization. Orders require real-time processing, inventory data benefits from an update interval of two to five minutes, while master data changes every 15 minutes are sufficient. This differentiated strategy reduces system load and preserves both APIs.

Project Process for SAP-Shopware Integration

A SAP-Shopware integration project follows a structured process typically spanning eight to twelve weeks. Experience from over 50 integration projects (project experience) shows that a thorough analysis phase is the most important investment: the cleaner the requirements are defined and data models documented, the smoother the implementation proceeds.

  1. Analysis and Mapping (2 weeks): Assessment of SAP configuration, documentation of data models, definition of data authority per entity and creation of mapping tables.
  2. Middleware Architecture (1 week): Definition of technical architecture, selection of queue technology, definition of error handling strategies and monitoring concept.
  3. Implementation (3--5 weeks): Development of middleware connectors for SAP Service Layer and Shopware API, implementation of mapping logic and business rules.
  4. Testing and Optimization (2--3 weeks): Integration tests with real data, performance tests under load, playing through error scenarios and fine-tuning synchronization intervals.
  5. Go-Live and Stabilization (1--2 weeks): Production launch with parallel phase, intensive monitoring and rapid response to unexpected scenarios.

Investment and ROI

The investment in a professional SAP-Shopware integration pays for itself for most mid-market companies within 6 to 9 months (project experience) through saved personnel costs, reduced error costs and accelerated order processing. Request an individual effort estimate.

Common Challenges and Their Solutions

Experience shows that certain challenges occur in virtually every SAP-Shopware integration project. The most common include inconsistent master data in SAP (missing required fields, orphaned records), different character encodings between systems and handling SAP-specific concepts such as document types and number ranges.

  • Inconsistent master data: Perform data cleansing in SAP before integration -- fill in missing required fields, merge duplicates, clean up orphaned references.
  • Character encoding: The middleware must consistently ensure UTF-8, as SAP sometimes operates in other encodings. Umlauts and special characters require particular attention.
  • Variant handling: SAP items with variants must be converted to Shopware configuration groups. The middleware defines the mapping between SAP variant keys and Shopware property values.
  • Performance during mass imports: The initial full import of all master data requires a special strategy with batch operations and temporarily disabled store indexing.
  • Backward compatibility: When SAP updates or Shopware major versions occur, the middleware must be adapted. API versioning in the middleware provides flexibility here.

Extension Options: Connecting PIM, CRM and Logistics

A well-designed middleware architecture is not limited to the connection between SAP and Shopware. It serves as a central integration platform to which additional systems can be connected. Typical extensions in B2B environments include PIM systems for centralized product data management, CRM systems for sales management and WMS or logistics systems for shipping fulfillment.

Connecting a PIM system changes the data flow: item master data no longer comes directly from SAP but from the PIM, which in turn is fed from SAP and enriches the data with marketing information, media and channel-specific texts. The DATEV connection for automated accounting is another common extension where invoice data from SAP is forwarded directly to DATEV. Integration of Microsoft Dynamics as a complementary CRM system can also be realized via the existing middleware infrastructure.

Sources and Studies

This article is based on data from: Forrester Research (2025), Aberdeen Group (2024), SAP Customer Statistics (2025), Gartner Integration Survey (2025), Fraunhofer IML (2024), McKinsey Digital (2024), EHI Retail Institute (2025) and our own project experience.

Related Articles