# SPS Commerce Fulfillment and SAP S/4HANA: EDI for retail partners

> Source: https://netray.co/stack/sps-commerce-fulfillment-edi-sap-s4hana
> Publisher: Netray (netray.co), AI and integration engineering for ERP and manufacturing systems.
> Section: ERP Stack

## Short answer

SPS Commerce Fulfillment for SAP is retail and distribution EDI delivered as a managed service, with SPS maintaining the maps to retailers. SAP exchanges data with the SPS network, typically as IDocs, so you avoid building and maintaining each retailer spec yourself. It suits manufacturers selling to large retailers.

## Erp

SAP S/4HANA (also SAP ECC)

## Erp Key

sap-s4hana

## On Prem

true

## Product

SPS Commerce Fulfillment for SAP

## Vendor

SPS Commerce

## Category

EDI

## Integration

**Method:** IDoc exchange with the SPS network

**Detail:** SAP outputs and receives IDocs such as ORDERS, ORDRSP, DESADV and INVOIC, which SPS translates to and from each retailer's EDI format. SPS says it runs this as a managed integration, including map maintenance. The exact IDoc types and transport (for example file, AS2 or SAP PI/PO) are agreed during onboarding.

## Data Flows

**From:** Retailer

**To:** SAP

**Data:** Purchase order (EDI 850 mapped to ORDERS IDoc)

**Trigger:** Retailer sends the order

**From:** SAP

**To:** Retailer

**Data:** PO acknowledgment (855)

**Trigger:** Order confirmed in SAP

**From:** SAP

**To:** Retailer

**Data:** Advance ship notice (856 from DESADV)

**Trigger:** Post goods issue

**From:** SAP

**To:** Retailer

**Data:** Invoice (810 from INVOIC)

**Trigger:** Billing document released

**From:** Retailer

**To:** SAP

**Data:** Remittance or status messages

**Trigger:** Retailer payment or compliance cycle

## Setup

### Scope trading partners

**Detail:** List retailers, their required documents and any compliance scorecards.

### Agree IDoc types and transport

**Detail:** Confirm with SPS which IDoc message types, partner profiles and connection method are used.

### Configure SAP partner profiles

**Detail:** Set up logical systems, ports and partner profiles (WE20, WE21) for inbound and outbound.

### Map customer and material identifiers

**Detail:** Maintain customer-material info records and retailer item numbers, GTINs and ship-to codes.

### Run test cycles per retailer

**Detail:** Retailers often require certification test transactions before go-live.

### Set up monitoring

**Detail:** Use WE02 and BD87 for IDoc status and decide who handles errors daily.

## Pitfalls

- Missing customer-material or GTIN data causes inbound ORDERS IDocs to error in WE02 at the item level.
- ASN timing wrong: shipping notice sent before packing or HU data is complete triggers retailer chargebacks.
- Unit of measure differences between retailer packs and SAP base units cause quantity errors.
- Retailer spec changes land on the SPS side, but SAP-side fields that must supply the new data are not updated.
- Duplicate POs from resent files if idempotency is not checked.

## Ai Layer

### IDoc error triage

**Description:** An assistant reads failed IDocs in WE02 and the partner spec and says in plain language what data is missing, drafting a master data fix for approval.

### Chargeback analysis

**Description:** Link retailer compliance fines to the shipment and ASN data to find repeating causes.

### Order status questions

**Description:** Let customer service ask where a retailer PO is, answered from IDoc and delivery data.

## Alternatives

- Self-managed EDI through a VAN or SAP Integration Suite is an option if you have an EDI team and want control of maps.
- A broader B2B platform such as SEEBURGER or OpenText Trading Grid may fit if you also trade outside retail.
- For a handful of partners, SAP standard EDI with a simple translator may be cheaper.

## Faq

### Does SPS Commerce work with SAP ECC as well as S/4HANA?

**Answer:** SPS lists solutions for SAP enterprise users on both S/4HANA and ECC. Because the exchange is IDoc-based, a move from ECC to S/4HANA usually leaves the retailer side unchanged, though partner profiles and some fields need retesting.

### Who maintains the maps?

**Answer:** SPS positions this as a managed service that includes map maintenance, so retailer spec changes are handled on its side. You still own the SAP data quality that feeds those maps.

### What documents are typical?

**Answer:** Orders, order acknowledgments, ship notices and invoices are the core set for retail fulfillment. Others, like inventory feeds, depend on the retailer program.

## Source

https://www.spscommerce.com/eur/integrated-fulfillment/system-integrations/sap-solutions/

## Search terms

sps commerce sap s/4hana edi, sps commerce sap idoc, retail edi sap ecc, sps commerce fulfillment sap, edi 856 asn sap, sap edi retailer

---
Talk to an engineer: https://netray.co/contact?intent=erp_ai | Machine catalog: https://netray.co/agent/catalog.json
