What’s new

Global e-Invoicing

e-Invoicing compliance Timeline

Know More →

Global e-Invoicing

UAE e-Invoicing: The Complete Guide to Compliance and Future Readiness

Read More →

Cygnet Vendor Postbox

Types of Vendor Verification and When to Use Them

Read More →

Cygnet Vendor Postbox

Safeguard Your Business with Vendor Validation before Onboarding

Read More →

Cygnet BridgeFlow

Modernizing Dealer/Distributor & Customer Onboarding with BridgeFlow

Read More →

Cygnet BridgeFlow

Accelerate Vendor Onboarding with BridgeFlow

Read More →

Cygnet Bills

GST Filing 360°: GST, E-Invoicing, E-Way Bills & Annual Returns Made Simple

Read More →

Cygnet Bills

Why Manual Tax Determination Fails for High-Volume, Multi-Country Transactions

Read More →

Cygnet IRP

GST Filing 360°: GST, E-Invoicing, E-Way Bills & Annual Returns Made Simple

Read More →

Cygnet IRP

Key Features of an Invoice Management System Every Business Should Know

Read More →

Cygnature

Automating the Shipping Bill & Bill of Entry Invoice Operations for a Leading Construction Company

Read More →

Cygnature

From Manual to Massive: How Enterprises Are Automating Invoice Signing at Scale

Know More →

What’s new

Data Analytics & AI

AI-Powered Voice Assistant for Smarter Search Experiences

Explore More →

Data Analytics & AI

Cygnet.One’s GenAI Ideation Workshop

Know More →

Digital Engineering

Our Journey to CMMI Level 5 Appraisal for Development and Service Model

Read More →

Digital Engineering

Extend your team with vetted talent for cloud, data, and product work

Explore More →

Quality Engineering

Enterprise Application Testing Services: What to Expect

Read More →

Quality Engineering

Future-Proof Your Enterprise with AI-First Quality Engineering

Read More →

Cloud Engineering

Cloud Modernization Enabled HDFC to Cut Storage Costs & Recovery Time

Know More →

Cloud Engineering

Cloud-Native Scalability & Release Agility for a Leading AMC

Know More →

Managed IT Services

AWS workload optimization & cost management for sustainable growth

Know More →

Managed IT Services

Cloud Cost Optimization Strategies for 2026: Best Practices to Follow

Read More →

Amazon Web Services

Cygnet.One’s GenAI Ideation Workshop

Explore More →

Amazon Web Services

Practical Approaches to Migration with AWS: A Cygnet.One Guide

Know More →

Cygnet TaxAssurance

Tax Governance Frameworks for Enterprises

Read More →

Cygnet TaxAssurance

Cygnet Launches TaxAssurance: A Step Towards Certainty in Tax Management

Read More →

Cygnet TaxAssurance

10 Generative AI Use Cases Driving Enterprise Value

Read More →

Cygnet TaxAssurance

Navigating the Generative AI Landscape

Read More →

Cygnet TaxAssurance

Truly Rise with SAP: The Business Integrators Guide

Read More →

Cygnet TaxAssurance

Mastering SAP S/4HANA Migration: Essential Pre-Migration Strategies and Preparation

Read More →

Germany e-Invoicing

SAP Integration for Germany E-Invoicing: XRechnung & ZUGFeRD

Explore SAP integration for Germany e-Invoicing, including XRechnung and ZUGFeRD formats, ERP data mapping, validation, and exception handling.
By Kesha Shah December 3, 2026 12 minutes read

The time for Germany’s e-Invoicing mandate to become reality has passed. As of 1 January 2025, every company in Germany must be capable of receiving structured e-Invoices for domestic B2B transactions under the Germany e-invoicing requirements. The obligation to generate those invoices is phased into full compliance by 2027, and as of 1 January 2028, it is virtually every domestic B2B supplier’s responsibility.

If your company uses SAP, the important question becomes one of implementation: How can your company obtain compliant XRechnung or ZUGFeRD invoices from your ERP and send them off successfully? This blog provides the steps needed for a successful SAP e-invoicing Germany integration, from data preparation to production monitoring.

SAP Integration Workflow

A repeatable process for SAP e-invoicing in Germany, whether using SAP ECC, S/4HANA, or both.

  1. SAP e-invoice creation—creation of billing documents (SD module), vendor-side postings (MM/FI), or credit memos, as usual.
  2. Extraction—execution of the output trigger (IDoc, e.g. INVOIC, OData/API, or file export) moves the invoice from SAP.
  3. Transformation—data is converted into the EN 16931 semantic model and converted into XRechnung (UBL or CII XML format) or ZUGFeRD (PDF/A-3 with embedded CII XML).
  4. Validation—schema and business rule checks take place before any document leaves the SAP landscape.
  5. Transmission—the invoice is sent to the customer through email, Peppol or another negotiated delivery channel.
  6. Status feedback—delivery and acceptance status is returnedAP for accounting purposes.
  7. Archiving—the original structured file (invoice) is archived in a revision-safe manner as it represents the legal invoice.

However, most companies prefer not to implement all these steps inside the SAP environment. Usually, the pattern is that SAP stays as the system of record and a Germany e-invoicing platform handles format creation, validation and delivery.

Required Data and System Connections

First, reach a consensus on what kind of data needs to be there, and how systems will communicate.

Master data, transaction data and identifiers

XRechnung and ZUGFeRD (EN 16931 profile and above) are more stringent compared to a classic PDF invoice format. The optional elements of your existing invoice template are now required fields in the structured invoice. Find them out early on:

  • Seller data: Legal name, address, tax ID (VAT ID or tax ID), and seller contact (name, phone, and email address). Seller Contact is a mandatory data field for XRechnung but not included in SAP by default.
  • Information on the buyer: Legal name, address, and identifiers. In the case of a governmental buyer, you need to add the Leitweg-ID in the Buyer Reference field.
  • Electronic addresses: Identifiers of sender and receiver endpoints (e-mail address or Peppol Participant ID for routing).
  • Payment information: IBAN, terms of payment, and payment method code.
  • Item-level information: Quantity, UoM (UN/ECE code), unit price, VAT category codes and rates, and any discount/charges.
  • Document-level information: Invoice number, invoice date, invoice type code (invoice/credit note), currency, and any references such as purchase order or contract numbers.

The classic quick win is a master data cleansing activity. Lack of email address, inconsistency in units of measure and unmaintained VAT IDs are the top reasons for validation failure in early projects.

APIs, middleware and access-point connections

Arrange the technical integration in three tiers:

  • SAP and middleware: usually either the SAP Integration Suite (CPI), SAP PI/PO, IDoc/ALE, OData Services, or file transfers. Choose one technology based on your release and available skill set.
  • Middleware and compliance platform: REST APIs or managed connections using secured and encrypted connections.
  • Compliance platform and the outer world: email gateway for attachments like ZUGFeRD and XRechnung, and a Peppol access point for networked delivery or portals for submissions of governmental customers.

In addition, there are native solutions for compliance by SAP, such as SAP Document and Reporting Compliance and related e-document management solutions. Choosing whether to use either of those, or go for a third-party solution, or both, depends on SAP release, transaction volumes, and your ability to customize the solution.

ERP-to-Platform Data Flow

After connections are established, describe the process for the data transfer. Here is what the proper outbound flow should be:

  1. SAP creates the billing document and the output or IDoc.
  2. Middleware receives it, enriches it if required (e.g., adds Leitweg-ID or endpoint ID from the lookup table), and invokes the platform.
  3. The platform creates the XRechnung/ZUGFeRD file, validates it, and routes it.
  4. The platform provides a status and the document reference back to SAP.

There are two critical decisions in the design of any Germany e-invoicing integration.

Where can format selection be done? Choosing between XRechnung and ZUGFeRD depends on the customer’s requirements and delivery channel. A public authority will insist on XRechnung, usually through a portal or Peppol. The mid-size company will be happy to use ZUGFeRD via email because even in ZUGFeRD, there is a readable PDF attachment. Save format and means of communication according to customers in SAP master data or middleware tables to automate the process.

Synchronous or asynchronous? Synchronous calls are easy to do but lead to a dependency of the billing runs on external availability. Most larger SAP environments use asynchronous processing with queues to be independent of slow downstream systems, which would block invoicing. Asynchronous processing is essential not just for the billing issue but also in the context of ERP integration challenges that come up when dealing with multiple VAT laws across Europe.

Inbound? Note that there is already a mandatory receiving step. The XRechnung/ZUGFeRD files have to be parsed, checked, and booked into SAP AP, which requires XML-to-vendor invoice mapping.

Pre-Submission Mapping and Validation

Mapping is where SAP implementations devote most of their efforts. Mapping involves translating SAP fields into BT/BG according to EN 16931 and checking that the result complies with the rules.

Common mapping issues are:

  • Tax categories. All SAP tax codes should be translated to VAT category codes of EN 16931 (standard, zero-rated, exempt, reverse charge, etc.). Both reverse charge and exemption cases require an explanation of the exemption.
  • Rounding and totals. The structured approach ensures consistency between lines, taxes, and totals down to rounding differences that might go unnoticed in a PDF. Such rounding differences will result in a rejection.
  • Units of measure. SAP internal units must be converted to UN/ECE Rec. 20 units.
  • Texts and attachments. Long descriptions might have to be mapped to notes or properly split. Supporting documents can be attached, but there are restrictions for certain channels in terms of file size.
  • Credit notes and corrections. It must be defined how SAP cancellations/credit memos map to the credit note type and how to refer to the original invoice.

The validation process should be done in the following steps:

  1. The syntax must be validated according to the XML schema for UBL/CII.
  2. Validation according to EN 16931 business rules by using the standard Schematron rules.
  3. The rules that apply to XRechnung CIUS also contain some German-specific rules like those of mandatory buyer’s reference and seller’s contact details.
  4. For ZUGFeRD: Ensure that the PDF/A-3 wrapper is valid and the XML is embedded correctly; the profiles must be EN 16931 and Extended. The profiles Minimum and Basic WL do not have enough information to qualify as an e-invoice.

KoSIT validator is the well-known reference validator for XRechnung validations, and many platforms use the same rule sets. Validation must happen prior to sending, never afterwards. Make this check part of every SAP XRechnung run, not an occasional test. An unaccepted invoice that did not leave your system will take minutes; an unaccepted invoice that did not reach the customer will cost payment days.

When it comes to determining what type of invoice format each individual client requires, our summary of European e-invoicing formats may help, and the XRechnung vs. ZUGFeRD decision usually depends on whether a human-readable PDF invoice is needed by the client or not.

Post-Submission Statuses and Exceptions

However, the transmission of the file is only the beginning of the procedure. The departments of finance and AR should be aware of the status of each of the invoices, preferably within SAP.

The following status model would be appropriate:

  • Created and Validated (internal statuses)
  • Transmitted or delivered through the channel
  • Accepted or rejected by the recipient or portal
  • Error or pending

The status should be captured within SAP through means such as the custom status field, the e-document cockpit, or a monitoring table related to the billing document.

Exceptions:

  • For technical issues (timeouts, certificates), automatic retry is used with a maximum number.
  • For data issues (missing Leitweg-ID, VAT ID issues, rounding problems), the message goes to a predefined owner; typically it is the billing/master data department and it contains the description of the issue in natural language.
  • The recipient rejects must be managed in a correction procedure. According to circumstances, it is possible either to submit again the corrected file with the same invoice number when the original one was not considered as a valid invoice or to send credit note and a new invoice.

The idea is to have the whole cycle: any invoice cannot remain in an undefined state longer than a certain period of time.

End-to-End Testing Before Go-Live

Tests must go beyond just “the XML validates”. Plan a test strategy with these steps:

  1. Unit tests for mapping. Check all tax situations, currency, units of measure, and invoice types using sample data.
  2. Integration tests. Process documents from SAP via middleware and platform and make sure status codes are returned properly.
  3. Channel tests. Documents sent to test email addresses, to test endpoints of the Peppol network, or to sandbox environments. Ensure proper functioning of attachments, filenames, and routing.
  4. Pilot project with customers. Choose 2 or 3 cooperative customers, ideally one with XRechnung and one with ZUGFeRD and start an exchange of the actual documents in a controlled manner.
  5. Volume and performance tests. Simulate peaks of the monthly billing at the end of the month. Ensure working of queues, retries, and timeouts.
  6. Archive and retrieval tests. Ensure that the original structured document is stored and can be retrieved again for archival purposes. Typically in Germany invoices have to be kept for 8 years, check what retention policies apply currently with your tax advisor.
  7. Also negative testing, such as invalid VAT ID, buyer reference not present, incorrect currency, oversized attachment. It is important to know how your solution fails before your customer does.
  8. A go-live checklist should name owners for SAP, middleware, platform, finance operations and tax, plus a rollback plan.

Production Monitoring

Following go-live, the monitoring phase helps maintain the health of the process. Concentrate on a few key performance indicators:

  • Success rates by document type, channel, and customer
  • Type of error and main root causes
  • Time taken from release in SAP until delivery
  • Size of backlogs in queues and the number of invoices waiting to be processed
  • Rejection rate by recipient, which frequently points to special customer requirements
  • Expiry dates of certificates and credentials for connectors and access points

Create alerts based on thresholds and not only failures. An increase in the number of validation errors following an update of the SAP support pack or master data can easily be remedied within hours instead of weeks.

Also allocate a process for monitoring legal changes. The EN 16931 standard, XRechnung version updates, and ZUGFeRD updates are all subject to regular change and Germany continues to introduce transition regulations until 2028.

Conclusion

Rather than being the result of a single clever mapping, a successful SAP e-invoicing Germany setup is the result of a carefully executed chain: well-kept master data, clean mapping process from SAP to the platform, validation steps, closed loop status management, thorough testing and monitoring. The companies that prepare such a chain in advance will be able to deal with both 2027 and 2028 goals much more easily.

FAQ's

This can be done by SAP, but with assistance most of the time. SAP’s standard functionality, add-ins like compliance software by SAP, or even a third-party platform can produce the XML as well as the PDF/A-3 package needed for the ZUGFeRD invoice. It is going to be dependent on your environment and version.

This will need details about the identities of the seller and purchaser, addresses, VAT registration numbers, contact of the seller, electronic addresses, payment details, invoice number, invoice date, type of invoice, currency, goods in UN/ECE unit, total amount, etc. For the customers from public sector, Leitweg-ID becomes compulsory.

Layered validation: XML schema validation, EN 16931 validation rules, and validation rules for XRechnung CIUS as appropriate. In case of ZUGFeRD invoices, validation must include both PDF/A-3 and XML Profile embedded formats.

Options include email (common in cases of ZUGFeRD and XRechnung in case of mutual agreement by both sides), Peppol network through the access point, and customer or government portals in case of invoicing within the public sector.

Capture the cause of the rejection automatically and feed it back to SAP as well as pass it on to the correct owner. Correct any technical problems via retries, any problems with the data from the originating system, and any recipient-based rejections using a specified correction procedure.

Author
Kesha Shah Linkedin
Kesha Shah
General Manager - Products Marketing

Kesha Kumar leads the global products marketing team at Cygnet.One, where she turns the complexity of tax and finance transformation into stories that resonate with the people who matter most. She’s the strategic force behind the brand’s presence across India, the GCC, Southeast Asia, and Europe, translating dense subjects like e-Invoicing mandates, digital engineering, and enterprise AI into narratives that inform and drive action. With expertise spanning tax and finance transformation, quality, enterprise applications, and data and AI, Kesha blends sharp strategic thinking with a marketer’s instinct for what truly connects. At Cygnet.One, she does more than build campaigns and content; she shapes the conversations that help enterprises navigate compliance with clarity and confidence, propelling the brand to the forefront of the industry along the way.