Shopify → SAP B1 Orders + Stock/Price Sync
Bidirectional e-commerce integration. Inbound: Shopify orders/create webhook → resolve/create Business Partner by email → post SAP B1 Sales Order with DocumentLines (ItemCode, Quantity, UnitPrice, WarehouseCode). Outbound: after posting, push item stock availability back to the store. Idempotency via U_WebOrderId UDF prevents duplicate orders on webhook retries.
Steps in this flow
- Shopify: orders/create Webhook
- Guard: U_WebOrderId
- SL Login (B1SESSION)
- SL: Lookup BP by Email
- BP Found?
- SL: Create BP (or generic B2C fallback)
- SL: POST /Orders
- SL: Read Item Stock
- Shopify: Push quantity_available