XRechnung

XRechnung

Efficient invoicing processes for modern companies

If your company does business in Germany and invoices German public-sector customers (federal, state, municipal authorities and related public institutions), XRechnung is the format you must treat as your default. XRechnung provides the technical foundation for fully digital, end-to-end invoice processing—and it’s designed for automated validation, routing, and posting.

For companies running ERP landscapes such as SAP ECC or SAP S/4HANA, XRechnung is no longer a “nice add-on.” It’s an operational and compliance requirement: invoice data must be structured, valid, and audit-ready from document creation all the way to archiving.

This know-how article explains—clearly and practically—what XRechnung is, how it works, when it is required in Germany, and how to implement it efficiently (including an SAP perspective). You’ll also get a crisp comparison to ZUGFeRD, and why XML-first standards like XRechnung are the long-term direction for Germany’s public-sector invoicing.

 

Contact us now!



 

What is XRechnung?

XRechnung is a standardized, XML-based invoice format used in Germany for invoicing public-sector contracting authorities. Unlike a PDF, XRechnung is purely structured and machine-readable, enabling automated processing without manual re-keying or “PDF interpretation.”

Simple way to remember it:
PDF is a view. XRechnung is data.

 

Why was XRechnung introduced?

Germany introduced XRechnung to standardize and accelerate invoice processes where volumes, audit requirements, and compliance expectations are high: the public sector.

Typical objectives include:

  • end-to-end digitization of invoice processing
  • elimination of media breaks (no PDF as the primary process artifact)
  • faster checks and payments
  • improved transparency and traceability through defined data fields and rules

 

When is XRechnung mandatory in Germany?

In practice, XRechnung becomes mandatory when your recipient requires it—and for German public-sector entities, that’s the common reality.

Key point: The recipient’s requirements matter more than your company size.
If you issue invoices B2G in Germany (business-to-government), treat XRechnung as a standard finance / order-to-cash process, not as a special case.

 

Who must issue XRechnung invoices?

The general rule is simple: anyone invoicing German public-sector customers must be able to provide the required e-invoice format—typically XRechnung.

This includes:

  • companies of all sizes
  • service providers
  • suppliers
  • freelancers / independent professionals


If you invoice multiple public-sector customers, XRechnung quickly becomes a scaling topic: without automation, manual rework grows fast.

 

XRechnung vs. e-invoice: what’s the difference?

  • E-invoice is the umbrella term: an invoice issued in a structured electronic format
  • XRechnung is a specific Germany-focused standard within that world, designed for Germany’s public-sector requirements


So: Every XRechnung is an e-invoice, but not every e-invoice is automatically an XRechnung.

 

XRechnung format: structure and technical basics

XRechnung is XML-based and follows strict rules:

  • defined data structures
  • mandatory fields (depending on the scenario/recipient requirements)
  • validation rules (so invoices can be processed automatically)


In real projects, three things decide success:

  1. Data quality (master data + invoice document data)
  2. Mapping & rules (fields, codes, taxes, payment terms, references)
  3. Versioning & operations (rules and specifications evolve—your process must handle that)

 

What does an XRechnung look like?

Visually: it doesn’t—because XML is not meant for humans.

In practice, XRechnung is made readable via:

  • portal viewers
  • e-invoicing platforms
  • ERP representations (including SAP-based views)


The core idea: systems process first; humans review only when needed.

 

How to create an XRechnung in practice

There are three typical implementation paths—depending on volume, complexity, and system landscape:

  • invoice is created in ERP
  • the structured e-document is generated
  • validation runs automatically
  • delivery is routed via portal/network
  • ERP provides invoice data (IDoc/API)
  • platform handles mapping, validation, routing, monitoring
  • statuses and responses flow back cleanly
  • works short term
  • breaks down quickly with scaling (operations, exception handling, audit readiness)


Practical tip:
If you send more than a handful of invoices per month to public-sector entities, plan for automation + monitoring from day one. XRechnung is not a “format problem.” It’s an operational process problem.

Validate, receive, and archive XRechnung invoices

Many implementations don’t fail because of XML—they fail because the operating model isn’t ready.

  • formal validation (structure/rules)
  • content plausibility (e.g., tax logic, payment terms, references)
  • structured capture/import
  • workflow/approvals
  • clean posting and reconciliation
  • invoice file + structured dataset + status logs
  • traceable audit trail
  • retention aligned with internal/legal requirements

 

ZUGFeRD or XRechnung: which format is right?

A simple decision matrix helps:

Criteria XRechnung ZUGFeRD
Typical use in Germany

B2G (public sector)

Mainly B2B

Technical principle XML-only PDF + embedded XML
Automation potential Very high High, but “PDF stays in play”
Recipient requirements Often explicitly required Depends on recipient acceptance
Operations/scaling Stable, standards-driven Can add governance overhead


Rule of thumb:

If the recipient is a German authority, XRechnung is usually the safe standard. ZUGFeRD can be excellent in German B2B—but it’s not a universal “one format for everything” strategy.

 

Why ZUGFeRD is often a transitional format

ZUGFeRD is a strong entry point because it matches how people work: PDF-first habits. But that’s also why it often becomes transitional:

  • PDF keeps manual patterns alive (forwarding, side processes, “human-first” review loops)
  • Two truths instead of one (PDF view vs XML data must remain consistent)
  • Networks and platforms reward structure, not visual artifacts
  • Strategic direction is XML-first (data-first, view-on-demand)—exactly what XRechnung enables


In short: ZUGFeRD can be the bridge. XRechnung is the target state when you need scalable automation, governance, and audit readiness—especially for Germany’s public sector.

 

SAP XRechnung: implementation in enterprise environments

In SAP environments, success depends on four levers:

XRechnung does not forgive “creative gaps.” Payment terms, tax details, addresses, references—everything must be complete and consistent.

You need a controlled chain: generate → validate → send → status → exception handling (including monitoring).

See also:

With many recipients, you need robust routing and feedback loops:

XRechnung is not “done” when it is sent—it must be retrievable and auditable:

 

Benefits of XRechnung for companies

Even if obligation is the trigger, the benefits are measurable:

  • faster processing through automation
  • fewer errors thanks to pre-send validation
  • fewer rejections and follow-ups via clear mandatory fields
  • stronger compliance and audit readiness
  • better scalability (more recipients, higher volume, less manual effort)

 

Sending and receiving via networks and platforms

Typical transport options in Germany:

  • public-sector portals
  • e-invoicing networks
  • PEPPOL connectivity
  • platforms providing mapping, routing, monitoring, and feedback


If you serve many recipients (or operate internationally), a platform approach often pays off—not because of “technology,” but because of operations, transparency, and scalability.

 

Conclusion

XRechnung is firmly established in Germany’s public sector—and it pushes organizations to modernize invoicing as a true end-to-end process. If you treat it as a “format project,” you’ll pay later in manual rework. If you design it as an operational process (data quality, validation, delivery, monitoring, archiving), you gain faster cycles, fewer errors, and greater transparency.

 

FAQ

 

A structured, XML-only invoice format used in Germany for invoicing public-sector customers, designed for automated processing.

No. A PDF is a visual representation, not a structured XRechnung.

Typically via ERP (e.g., SAP), an e-invoicing platform, or specialized software—always with validation and a defined delivery channel.

For Germany’s public sector (B2G), XRechnung is usually the standard. For German B2B, ZUGFeRD can be a pragmatic choice, often used as a bridge format.

 

E-Invoicing with SAP

E-Invoicing with SAP

From 2025, e-invoicing will be mandatory for B2B in Germany. We ensure your SAP system is legally compliant – from XRechnung to Peppol.

Trading Grid e-Invoicing

Trading Grid e-Invoicing

OpenText Trading Grid is a global e-invoicing network platform that ensures cross-border compliance (Peppol, XRechnung, Fattura PA, etc.) and connects suppliers and customers within a single network.

SAP Document and Reporting Compliance

SAP Document and Reporting Compliance

SAP DRC helps companies efficiently meet international requirements for electronic invoicing and compliant reporting – directly from SAP ECC or SAP S/4HANA. The solution is based on the eDocument Framework and is fully integrated into the SAP system.

GET IN TOUCH WITH US NOW!