SAP B1 ↔ Supplier EDI (ORDERS Out, INVOIC In → 3-Way-Match Draft)

Outbound ORDERS EDI from SAP B1 PurchaseOrders; inbound INVOIC mapped to a SAP B1 Purchase Invoice landed as a Draft (DocObjectCode) after a 3-way match against the PO + GRPO, translating the supplier's item codes via the BP catalog-number cross-reference and enforcing price/qty tolerance before human review. Idempotent per supplier invoice number.

Steps in this flow

  1. PO Approved (SAP B1) / INVOIC In
  2. SL Login (B1SESSION)
  3. GET /PurchaseOrders (for ORDERS)
  4. Export ORDERS → Supplier (EDI/JSON)
  5. INVOIC Received Webhook
  6. Guard: Supplier Invoice No
  7. Translate Supplier Codes → ItemCode
  8. 3-Way Match: INVOIC vs PO vs GRPO
  9. POST /Drafts (oPurchaseInvoices, base=GRPO 22)
  10. Retry on 401 (re-login)
  11. Notify AP: INVOIC Draft for Review

All templates