SAP S/4HANA IDoc to Peppol BIS Billing 3.0 Integration & Schema Crosswalk
Transforming SAP `INVOIC02` IDocs to Peppol BIS Billing 3.0 UBL
Enterprise SAP ECC and S/4HANA systems emit `INVOIC02` IDoc segments (`E1EDK01`, `E1EDKA1`, `E1EDP01`, `E1EDS01`) that require deterministic crosswalk mapping to pass Peppol Schematron 3.0.17:
1. **Partner Functions (`E1EDKA1-PARVW`):** Map `RS` (Invoicing Party) to `cac:AccountingSupplierParty` and `RE` (Bill-To Party) to `cac:AccountingCustomerParty`.
2. **Summary Qualifier `E1EDS01`:** Qualifier `010` (Net value) maps to `BT-106`, `005` (Tax value) maps to `BT-110`, and `011` (Billed value) maps to `BT-112`.
Mandatory SAP S/4HANA IDoc to Peppol BIS Billing 3.0 Field Crosswalk Matrix
Deterministic attribute mapping from SAP S/4HANA IDoc payloads to EN 16931 Business Terms (BT) and UBL-2.1 XPaths.
| SAP S/4HANA IDoc Source Field | EN 16931 Business Term | Target UBL-2.1 XPath | Card. | Transformation & Normalization Rule | Schematron Rule |
|---|---|---|---|---|---|
| E1EDK01-BELNR CHAR(35) | BT-1 (Invoice Number) | /ubl:Invoice/cbc:ID | 1..1 | Trim leading zeros if alphanumeric SAP range | BR-01 ↗ |
| E1EDKA1[PARVW="RS"]-ILNNR CHAR(70) GLN | BT-34 (Seller EndpointID) | /ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cbc:EndpointID[@schemeID="0088"] | 1..1 | Validate 13-digit GS1 GLN checksum and attach schemeID="0088" | PEPPOL-EN16931-R020 ↗ |
| E1EDS01[SUMID="010"]-SUMME CHAR(18) | BT-106 (Sum of Line Net) | /ubl:Invoice/cac:LegalMonetaryTotal/cbc:LineExtensionAmount | 1..1 | Reconcile against sum of E1EDP26[QUALF="003"] line totals | BR-CO-10 ↗ |
Test Your SAP S/4HANA IDoc Peppol BIS Billing 3.0 XML Export Live
Validate your generated UBL-2.1 payload against EN 16931 & Peppol BIS Billing 3.0 rules directly in your browser.
Missing <cbc:CustomizationID> or value does not declare EN 16931 CIUS compliance.
Remediation: Insert <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>.
Found invalid or lowercase currency code "eur". Expected uppercase ISO 4217 (e.g. "EUR").
Remediation: Replace <cbc:DocumentCurrencyCode>eur</cbc:DocumentCurrencyCode> with uppercase "EUR".
Peppol Schematron forbids empty elements such as <cbc:AdditionalStreetName></cbc:AdditionalStreetName> serialized from null ERP fields.
Remediation: Strip empty <cbc:AdditionalStreetName> nodes prior to XML serialization.
Missing <cbc:EndpointID schemeID="..."> inside <cac:AccountingSupplierParty>/<cac:Party>.
Remediation: Add <cbc:EndpointID schemeID="9930">DE123456789</cbc:EndpointID> as the first child of Seller <cac:Party>.
Buyer <cbc:EndpointID> is either missing or lacks the mandatory EAS @schemeID attribute.
Remediation: Add schemeID="9930" (or "0088" for GLN / "0204" for Leitweg-ID) to Buyer <cbc:EndpointID>.
No <cbc:BuyerReference> (BT-10) found. Mandatory in XRechnung 3.0 (BR-DE-15) and required in Peppol BIS 3.0 (PEPPOL-EN16931-R003) when OrderReference is absent.
Remediation: Insert <cbc:BuyerReference>991-12849-74</cbc:BuyerReference> in the document header.
Mathematical discrepancy of 0.05 EUR between InvoiceLine sum (199.95) and LegalMonetaryTotal/LineExtensionAmount (200.00).
Remediation: Set cbc:LineExtensionAmount and cbc:TaxExclusiveAmount to 199.95.
TaxSubtotal/TaxableAmount reports 200.00, but Standard rated ("S") lines total 199.95.
Remediation: Recalculate BT-116 = 199.95, VAT BT-117 = 37.99, and PayableAmount BT-115 = 237.94.
Other ERP to E-Invoicing Compliance Bridges
Unlock Pro Batch XML / PDF Converter ($29/mo) →4 mandatory EN 16931 Business Term mappings
4 mandatory EN 16931 Business Term mappings
4 mandatory EN 16931 Business Term mappings
4 mandatory EN 16931 Business Term mappings