11 minute read

Exchange of Electronic Invoices with the SAP eDocument Framework

The development of the e-invoice

Before exploring the complexities of the SAP eDocument framework, letā€™s first consider the development of the e-invoice over recent years. In the past it was common practice to send paper invoices by post or fax. But since then, invoices have usually been created and transmitted digitally, for example as PDF documents that are sent by email. In the course of digitisation, the need for automation of existing processes is increasing. For this reason, and due to legal regulations, more companies are switching to e-invoices, which can be created, sent and processed automatically. Invoicing is carried out fully automatically using a structured exchange format (e.g. XML) between the IT systems of the participating companies ā€“ without any human interaction. This process not only saves time and money, but also reduces the likelihood of errors.

Governing institutions are increasingly focusing on e-invoices, which must be created in a certain processable format. This started primarily in Latin America to combat tax fraud. Since the use of the regulations has proven itself successful and authorities can thus act more effectively, European countries now also use similar guidelines.

The EU Directive 2014/55 / ā€‹ā€‹EU requires public authorities in Europe to receive and process electronic invoices. This resulted, for example, in the German CIUS (Core Invoice Usage Specification) XRechnung. The Italian Government went one step further on January 1st 2019 by obliging all companies in Italy to invoicing through the SDI system (Sistema di Interscambio). Likewise, there are already signs in Spain that the B2G e-Invoicing guidelines will be extended to the B2B sector.

White Paper - EDI Integration in SAP

E-Invoices in Use

Companies are therefore faced with the challenge of implementing various laws for sending and receiving invoices in IT systems. Depending on the country, different invoice formats are used and different transmission channels for e-Invoices are required. In particular, government institutions often rely on Web service-based approaches to transmit invoices ā€“ see, for example, the submission of ebInterface invoices in Austria or FatturaPA invoices in Italy.

Another challenge is the ongoing monitoring of e-invoice processes: were invoices created and converted correctly? Has the client received the invoice? Faulty invoices are a cause for complaint by the issuer and a well-used reason for non prompt payment.

When settling invoices through central governmental regulators (such as FatturaPA), the integrity check of invoices is already done by the authority. Invalid invoices will not be accepted and will not reach the recipient.

However, companies should focus primarily on their core business and therefore need a strategy that will allow them to work safely and efficiently for a long time, at the most up-to-date invoicing standards.

If an SAP system is used in the company as an ERP system, a component of this strategy can be the use of the SAP eDocument Framework in conjunction with the SAP Application Interface Framework (AIF). This framework is further discussed below.

SAP and e-invoicing: Overview of SAP Document Compliance

To enable SAP to better support its customers ā€“ especially in the area of e-invoicing ā€“ the eDocument Solution (also known as SAP Document Compliance) was developed for SAP ECC and SAP S/4HANA. This solution helps companies to meet the requirements of electronic invoicing in different countries.

How it works

With SAP Document Compliance, documents from logistics, sales and accounting can be converted into common e-invoice formats (e.g. XML files). In order to be able to respond to specific requirements of individual countries, the SAP Application Interface Framework (SAP AIF) can be used, which converts generated eDocuments into the required target format, such as the XRechnung for Germany or FatturaPA for Italy. In order to be able to map country-specific requirements in the AIF, ā€œPackaged Solutionsā€ must be imported. These build on the AIF and realise different country-specific requirements. In the case of FatturaPA, for example, these notes are to be entered separately in ā€œGlobal AIF Settings & BC Setsā€ and ā€œItaly-specific AIF Settings and BC Setsā€.

To give the accounting system an overview of all eDocuments, SAP offers the eDocument Cockpit (EDOC_COCKPIT).

The benefit for you

As the first step in minimising the burden of issuing e-invoices, converting electronic invoices with SAP into popular formats provides a great relief for internal teams.

Howeverā€¦

After conversion the e-invoices must still be sent via a corresponding protocol or network (such as Peppol). In the case of government-mandated e-invoicing procedures such as FatturaPA in Italy, the exchange must also be carried out via a central service. This is not possible with the e-Document Solution alone.

In the next section weā€™ll look at the three available options for exchanging invoices with SAP Document Complianceā€¦

Exchanging invoices with SAP Document Compliance ā€“ your three options

Option 1: Convert documents with SAP Document Compliance and AIF and send them via the SAP Cloud Platform

The SAP Application Interface Framework (AIF) is an SAP module for converting eDocuments into country-specific formats, such as the XRechnung. For the transmission of the created invoicing data the SAP Cloud Platform can be used, from which the invoices are forwarded to the receiver.

The SAP Cloud Platform Integration (CPI) is a communication platform with which data from SAP ERP or S/4HANA can be exchanged with other systems. Web services are used to send and receive documents and messages to external systems. To use CPI, a subscription to the service is required.

Option 2: Convert documents with SAP Document Compliance and send them via an EDI service provider

Once e-invoices have been converted to the desired target format using the AIF, they can also be sent using a service provider.

To accomplish this, middleware is needed to link the customerā€™s SAP system with the service providerā€™s software. ecosioā€™s EPO connector is a perfect example of a lightweight middleware that performs this function. If another SAP middleware such as SAP PI or SAP PO is available, this can also be used for the ā€œlast mileā€ connection to the service provider. The following figure shows the principle used.


Conversion of an e-Invoice via AIF and shipping via a service provider
Conversion of an e-invoice via AIF and shipping via a service provider

As soon as an invoice arrives in the service providerā€™s system, the required data for the delivery of the invoice is extracted, enabling the e-invoice to be sent to the recipient. In the case of XRechnung, documents are delivered to the recipientā€™s Peppol access point, such as a German authority. Receiving data, such as an order via Peppol, is also possible in this way.

If only the AIF is used in conjunction with the EDOC_COCKPIT, the invoices are only stored on the application server and must be manually downloaded and sent from there. With a connection to the EPO Connector, however, the dispatch and receipt of the invoices as well as the transfer of the invoicing data to and from SAP takes place fully automatically and without manual interaction. This allows complete automation of the invoicing process.

But what if you are unable to convert documents with AIF? Although SAP AIF is part of SAP Business Suite / S/4HANA and standard in modern SAP releases, to use the ā€œSAP Document Compliance, On-Premise Editionā€ you need a separate license. If this is the case for you, it may make sense to consider outsourcing the conversion of eDocument formats to a service provider. If the provider is already connected to SAP ERP, the required process can be implemented particularly quickly and easily. The following example shows an integration of SAP eDocument in conjunction with the EPO Connector.


Conversion and sending of e-Invoices with the help of a service provider
Conversion and sending of e-invoices with the help of a service provider

In this process, eDocuments are sent to the service provider via the EPO Connector, which then automatically determines the required invoice format and ā€“ if necessary ā€“ converts the document accordingly. It is then sent to the recipient as previously described.

Option 3: Use IDocs and a dedicated EDI service provider instead

The third and simplest option for internal teams involves bypassing the need to convert the documents internally (via Document Compliance) with a single connection to a fully managed service provider.

In such a solution, the provider is essentially a B2B network, creating and ensuring the success of all technical elements, such as conversion into all common and necessary formats, including e-invoicing requirements, as well as routing via various protocols, VANs and Peppol.

How this works

Letā€™s take the exchange of an invoice as an example using ecosioā€™s EPO connectorā€¦
Upon sending, the invoice data is transmitted directly from SAP ERP to the EPO Connector. The EPO middleware handles the conversion of the invoice into the required format and forwards the final document to your service provider. This takes care of the correct addressing and delivery of the e-invoice. The following figure shows the principle used.


Conversion of an e-Invoice via AIF and shipping via a service provider
Conversion of an e-invoice via AIF and shipping via a service provider

The main advantage of this approach is the financial savings.

When using the AIF solution, many SAP notes must be imported. These in turn require a large number of further manual adjustments. For SAP consultants who work on a time and material basis, this can quickly become very expensive.

By contrast, using the EPO Connector in conjunction with ecosio eliminates expensive time and material costs, allowing you to work with predictable fixed costs. The final e-invoice solution is handed over ā€œkey in handā€ and the exchange of electronic invoices can be fully automated.

The most efficient way to use fully managed EDI seamlessly in the familiar user interface of SAP systems is through integration via API (Application Programming Interface). This allows you to display the status of a sent message directly on the SAP IDoc or SAP document, for example, or to perform a full text search in all documents ā€“ for more information on what this means, see the following section.

The benefits of a fully managed EDI service provider

A fully managed service provider not only takes care of the conversion and transmission of e-invoices, but also the monitoring of ongoing processes. This way invoices that do not meet the required standard can be corrected immediately. In addition, converted invoices are validated before they are sent to ensure that the recipient has no reason to contest the invoice.

As e-invoicing is subject to constant change due to changing legal requirements, using a fully managed provider also provides peace of mind that your system will always be up to date. If new requirements are imposed by the legislator, these are implemented by the service provider and the company can make full use of the modified solution. There is no additional implementation effort for the company.

In short, fully managed EDI offers companies the possibility to use all EDI functions in their company without an expiration date ā€“ all while relieving internal teams.

Evaluating your options for document exchange with SAP

SAP document compliance undoubtedly offers a good basis for converting e-invoices into popular formats. Sending too can be effectively handled via SAP document compliance in combination with other SAP add-ons and extensive internal knowhow. However, handling EDI via a powerful single connection to a fully managed provider provides an easy-to-implement, future-proof and cost effective alternative for businesses without in-house expertise or simply looking to streamline the process.

To help you understand which option makes the most sense for you, we have identified 12 possible capabilities/funtionalities that you may desire from your SAP-EDI solution:

  1. EDI status visible on the SAP IDoc or SAP document (purchase order / invoice, etc.)
  2. Full text search across all documents
  3. Support for all standard EDI protocols
  4. Out-of-the-box routing to third party EDI networks (VANs)
  5. Out-of-the-box routing to Peppol
  6. Support for message conversion in EDI formats such as ANSI or EDIFACT
  7. Support for message split and merge
  8. Support for international e-invoicing requirements
  9. Automatic alerts when message failure occurs
  10. IDoc field conversions of ext./int. IDs in SAP
  11. EDI project coordination
  12. Ongoing support/monitoring/error resolution

For more information on these 12 points and to find out which solution offers what, download our white paper ā€œEDI Integration in SAP: A Definitive Guideā€. In it we expand on the specifics of these 12 functionalities and how they can benefit your business. We also compare the numerous options available to SAP users when it comes to EDI integration and how they differ in relation to these 12 factors.

Alternatively, if you have any other questions about EDI integration in SAP systems, or B2B data exchange more generally, please get in touch. We are always happy to help!

Are you aware of our free XML/Peppol document validator?

To help those in need of a simple and easy way to validate formats and file types, from CII (Cross-Industry Invoice) to UBL, weā€™ve created a free online validator. To try it out yourself!

SAP ERP and SAP S/4HANA are the trademarks or registered trademarks of SAP SE or its affiliates in Germany and in several other countries.

most read

Keep on reading

14 minute read

How to Manage the Growing Challenges of VAT Compliance, B2B integration, and E-invoicing

Explore the implications of tightening global government regulations and discover strategies for effectively balancing compliance and automation moving forward.

12 minute read

Peppol - Key Questions Answered

In this article weā€™ll answer some of the most commonly asked questions surrounding Peppol, how it works, and how it can benefit you.

3 minute read

B2B E-invoicing in Germany: An Overview

B2B e-invoicing in Germany is different to other countries. Read our article to discover why Germany isn't going the normal CTC route... for now at least.

3 minute read

Germany Commits to Making B2B E-invoicing Mandatory

By passing the Growth Opportunities Act, Germany is taking a big step towards mandatory e-invoicing. Find out what this means for you.

8 minute read

How External Invoicing is Changing the Game

With invoicing requirements changing fast, more and more companies are outsourcing invoicing tasks to an external provider. Find out why!

9 minute read

ViDA: What Is It and How Will It Affect You?

What is ViDA, what changes will it bring and who will it impact? In this article we explore all of these questions and more.

9 minute read

Selecting an E-invoicing Software

Choosing an e-invoicing software can be tricky. In this article we explore how options differ and the benefits a good solution can deliver.

8 minute read

E-invoicing in Romania

In this article we dive into Romanian e-invoicing regulations and how you and your team can prepare for the upcoming changes.

7 minute read

Explore the Latest in German E-Invoicing: Mandatory Implementation in B2B Sector starting from 2025

E-invoicing in Germany will soon become mandatory for B2B transactions. Make sure your business is ready for the upcoming changes.

21 minute read

What is an E-invoice and How Does E-invoicing Work?

Learn how e-invoices work and the many ways that e-invoicing can benefit your business in our comprehensive guide.

4 minute read

Belgium E-invoicing Developments on the Horizon

Belgium has begun rolling out B2B e-invoicing and e-reporting via a phased approach. Is your business prepared?

4 minute read

E-invoicing in Serbia

E-invoicing in Serbia is now mandatory for all B2B transactions. Read our article to learn what compliance involves.

WHITE PAPER

E-invoicing in Europe: State of Play

Download our helpful overview of current e-invoicing regulations across the continent

WHITE PAPER

EDI in the Retail Industry

Discover the secrets to B2B integration success with our comprehensive white paper

Subscribe to the e-Invoicing newsletters