Stage 2 · Java · runs in your network

The processing server: create e-invoices and validate them with the KoSIT validator, in-house

The processing server turns the raw data supplied by the SAP add-on into the finished e-invoice. It translates the SAP values into the fields of the EN 16931 standard, generates XRechnung, ZUGFeRD or Peppol BIS, validates the invoice with the official KoSIT validator, creates the PDF and delivers it.

At a glance

Three things make it special. It runs in your network and sends your data to no outside service. The KoSIT validator runs in the same program, without a separate process alongside. And new format versions and validation rules come as a package that you import without touching your SAP.


Invoice formats change every year. Your SAP should stay still.

XRechnung, ZUGFeRD and Peppol regularly get new versions and new validation rules. From ZUGFeRD 2.5 to 2.5.2 alone, 50 rules were added, and XRechnung 4.0 is expected for 2027. Anyone who rebuilds this in ABAP changes their SAP system at the pace of the formats.

The official KoSIT validation tool is also a Java program that does not run in SAP. And an internet service that takes care of all this receives your invoice data. The processing server solves all three points: it carries the business logic, it is itself a Java program, and it sits with you.


What the server does with every document

  • Accept

    It only accepts documents from your SAP system, which identifies itself with a certificate, and checks the transfer XML for completeness.

  • Translate

    It evaluates the rule part of the mapping, looks up the value tables and builds all fields of the invoice. Every value table used is recorded with its version.

  • Apply conditions

    It selects the rule set for your conditions and builds prices, charges and allowances the way you have specified.

  • Calculate and check

    It builds the totals and checks the calculation rules of the standard. A discrepancy is a finding and is not silently balanced out.

  • Generate the format

    XRechnung in UBL or CII, ZUGFeRD, Factur-X or Peppol BIS. It sets the specification and process identifier to match the target format.

  • Validate with the KoSIT validator

    Against the configured rule version. If the invoice fails, it is not sent, and the finding goes back to SAP in plain language.

  • Create the visual representation

    The PDF is created from the same XML that is sent and therefore cannot differ from it. Enclosures from the archive are attached; with ZUGFeRD the XML is embedded.

  • Deliver and report back

    With Peppol via your provider’s access point. The result goes to SAP and is only deleted once SAP has stored it in the archive.


What makes the processing server special

The KoSIT validator runs in the same program

The server is written in Java, like the official KoSIT validation tool. It includes it as a library instead of starting it as a separate program for each invoice. That saves time per invoice and a service you would otherwise have to run alongside.

What you gain: Every invoice is validated with the official KoSIT tool before it leaves your company.

Several rule versions side by side

The server holds several rule versions and states in every validation report which one it checked against. If a recipient rejects an invoice, you check it against the version the recipient is probably using.

What you gain: You can tell a real error in the invoice from a recipient running a different rule version.

Every invoice can be explained

For every transaction the server records with which mapping version, which value tables in which version and which rule version the invoice was created. In SAP the same is stored with the document.

What you gain: Even a year later you can prove why an invoice looked the way it did.

Help without anyone looking at your data

In case of an error the server creates a diagnostic package at the push of a button. Names, addresses, bank details and e-mail addresses are replaced by placeholders, and you decide whether to pass it on.

What you gain: Support in case of error, without invoice data leaving your company.


How to run the server

As a container

The standard case: an image with everything the server needs, for Docker, Podman or Kubernetes.

As a Java service

For companies without container operations: a Java program that runs as a service on Windows or Linux.

In your cloud

In a virtual machine in Azure or AWS that you operate, or in your own SAP BTP account.

As a guideline, two processor cores and four gigabytes of memory are enough for several tens of thousands of documents per year. The licence is a signed file that is checked offline; if it expires, the server keeps sending for thirty days and warns, so that your invoice output never stops overnight.


Building blocks from the open Java world of e-invoicing

Libraries of the processing server
TaskComponentLicence
Validationofficial KoSIT validator, included as a libraryApache 2.0
ZUGFeRD, Factur-X, XRechnung in CIIMustangprojectApache 2.0
XRechnung in UBL, Peppol BISph-ubl (planned)Apache 2.0
Execution of the validation rulesSaxon-HEMPL 2.0
Visual representation as PDFXSLT visualisation with Apache FOPApache 2.0
PDF/A-3 and enclosuresApache PDFBoxApache 2.0
RuntimeJava 21, Spring Boot is planned as the frameworkGPL with Classpath exception (OpenJDK), Apache 2.0

Delivery: Peppol via your provider, e-mail via your SAP

  • Peppol

    Only those approved by OpenPeppol may operate a Peppol access point. You therefore choose a provider, and the server hands the finished invoice to it via its interface. It fetches delivery notifications there and passes them on to SAP.

  • E-mail

    Your SAP sends the e-mail via SAPconnect, with your SO10 texts. The server supplies XML and PDF for it.

  • Portals

    For portals of public-sector customers without Peppol, the server places the invoice in an output directory.


More about the processing server

Formats and validation

Which target formats are created, how validation works and how the visual representation is produced. To formats and validation →

Value tables and conditions

How invoice type, payment means, tax and conditions are derived from SAP keys. To the value tables →

Identifier check

Check Leitweg-ID, VAT ID, GLN and Peppol identifier before the first invoice is created. To the identifier check →


2

processor cores and four gigabytes of memory are enough as a guideline for several tens of thousands of documents per year.

0

incoming connections from the internet are needed by the server.

30

days the server keeps sending after the licence expires, so that invoice output never suddenly stops.

5

target formats: XRechnung in UBL and CII, ZUGFeRD, Factur-X and Peppol BIS.


Questions and answers

Frequently asked questions

No. The server runs in your network, on your own hardware, in a virtual machine you operate, or in your SAP BTP account. We operate nothing through which your invoices pass.

Not for operation. The server is delivered as a ready-made container image or as a service and is operated via an administration interface. Java skills are only needed if you want to develop on it yourself.

As a signed rule package. The server can fetch it itself; if your network does not allow this, you import it via the administration interface. Before release, the package’s test cases run, and from a cut-off date the new version applies.

You contract Peppol access with a provider of your choice; its costs are not included in the subscription. The server connects to the provider.

No. The server is an independent product and has no connection to KoSIT. It does, however, use the official validation tool that KoSIT provides for XRechnung, unchanged.


Would you like to see what would run on your server?

I will show you the path of one of your document types from the transfer XML to the validation report.