• William
  • News
  • 5 minutes to read

Comparison of EDI and APIs – Handling of Content Errors

When data is exchanged between business partners, errors also occur with regards to content. It is sufficient that a target system simply does not interpret plausible data correctly. With EDI as batch-driven file exchange, error handling typically takes place on the target system, whereas with coupling using APIs, the calling system only receives an error message back and is responsible for error handling itself.

A closer look at Content errors

ERP systems exchange data both with other internal systems and with external business partners. Data is usually transferred using the classic transfer method in an asynchronous way and using a file format such as IDocs. Due to the asynchronous nature of the transfer method, content errors must be handled on the target system. For example, SAP users can correct content errors in the inbound SAP IDoc themselves and then process the IDocs manually.

Sample content error message of an SAP IDoc

By changing the transfer method between ERP and B2B-System from being file-based such as SAP IDoc to synchronous API, a direct reaction in real time becomes possible. However, this means that the error messages are just bounced back:

Instead of simply accepting an IDoc with incorrect content and then handling the errors itself, the ERP system rejects the incorrect content directly via the API and returns an error message to the calling B2B/EDI system where the error handling needs to be performed.

The following table compares the classic transfer method for a SAP S/4HANA system using SAP IDoc and the coupling using the APIs of the SAP API Business Hub:

SAP IDocsSAP APIs
ProtocoltRFCHTTP/S
Call PatternAsynchronous callSynchronous call
FormatFlat File (Inhouse)XML or JSON
Format DescriptionSAP format descriptionOpen API standard (Swagger), WSDL
Directory of available FormatsSAP IDoc RepositorySAP API Business Hub – API Catalog
Typical Scenarios
  • Batch-driven processing of bundled information
  • Data conversion of bundled information
  • B2B/EDI connection to external trading partners via AS2, OFTP2 or VAN
  • Information request of modular single requests close to real time
  • Real-time booking in steps
  • Enterprise Application Integration (EAI)
  • Enterprise Service Bus (ESB)
  • Web Shop connection
  • Integration of SAP solutions that have become part of the SAP family through acquisitions, for example SAP Ariba SAP SuccessFactors or SAP Concur
  • Connection of cloud systems such as Salesforce
Handling of Content ErrorsError handling directly in SAP by the responsible lines of business
  • In case of a point-to-point connection on the system calling the API
  • When using an integration platform on the same integration platform

Example Comparison between SAP IDocs and APIs of the SAP API Business Hub

 

API Call Procedure

The target system (service provider) grants the calling system (service consumer) access to the available APIs. The service consumer then requests the service from the service provider using the corresponding API and receives a synchronous error message from the service provider in the event of a content error. The service request is now closed for the service provider and the service consumer (the calling system) has to take care of further error handling.

The main difference in the conversion from SAP IDocs to APIs – or in other words from asynchronous calls to synchronous service requests – is that in the latter case the error handling is carried out by the service consumer – and thus outside the SAP ERP system in the example shown. This means that all tools, interception routines and user interfaces for error handling are located – depending on the API access path – either directly on the calling system or on the intermediate integration platform or the B2B/EDI system.

For calling systems, the change of an existing asynchronous call using a file format to synchronous service requests by API therefore means a considerable effort. In addition to the purely technical change, organizational aspects must also be taken into account. For example, the lines of business involved in the calling organization must be involved and error handling needs to be discussed with them.

For B2B/EDI solutions, which further down the road will connect SAP S/4HANA systems via the APIs of the SAP API Business Hub instead of SAP IDocs as before, this is not only a technical change but also an organizational one. For the lines of business involved, at least the corresponding tool changes during manual error handling.

With SEEBURGER BIS as the platform for API integration and API management, error handling on API paths can be unified while keeping the complexity of dynamic API environments under control – saving time and money. Of course, SEEBURGER supports all API interfaces for SAP S/4HANA (and SAP in the ‘classic version’).


Source: https://blog.seeburger.com/comparison-of-edi-and-apis-handling-of-content-errors/

Inline Feedbacks
View all comments
guest

RFID labels – why Smart Labels are often superior to barcodes

Contactless data capture through RFID labels RFID (Radio Frequency Identification) labels can be considered in many cases as...

Avoid this Pitfall when Migrating to SAP S/4HANA

Migration to S/4HANA is a strategic decision, one that requires considerable effort and time. The areas of EDI...

SAP S/4HANA Migration: Take the green pill or the brown pill?

Start afresh with a greenfield approach, or build upon what you have already with a brownfield approach? This...

The best SAP S/4HANA global e-Invoicing cockpit

SAP ECC and SAP S/4HANA have often been expanded with e-invoicing solutions. When migrating from SAP ECC to...

Digitalization winners

In digitalization planning, new business models and processes play a crucial role. However, business integration and networking are...

Automate Order Confirmations in SAP With SEEBURGER Order Response

Digital processes save time compared to manual processes – and time is money. So it should come as...

6 Reasons Why SAP S/4HANA Integration for B2B is Particularly Challenging

The endpoints which need integrating when migrating to – or introducing – SAP S/4HANA vary greatly. They are...

SEEBURGER‘s purchase-to-pay solution gets SAP® seal of approval again

SEEBURGER has again demonstrated their ability to create SAP solutions with the renewed certification of their SAP purchase-to-pay...

Integrating S/4HANA with public clouds & data lakes

When implementing SAP S/4HANA, the endpoints to be integrated vary depending on factors such as an organisation’s IT...

EDI Connection of SAP S/4HANA with APIs Instead of IDocs – Protect Your Investment

The IDoc structures used for SAP R/3 or ERP ECC continue to be available for connecting SAP S/4HANA....

EDI as the Key to a Successful S/4HANA Migration

Migrating to SAP S/4HANA requires more than just technical expertise – it demands a well-planned strategy for seamless...

Migrate to SAP S/4HANA keeping the B2B/EDI Integration running

Many companies will migrate from their SAP ECC system to the new SAP S/4HANA system by 2027 when...

Integrating your Existing Products with SAP S/4HANA – Don’t Underestimate the Task!

Several companies are currently facing the mammoth task of implementing SAP S/4HANA in their organisations. Following the announcements that...

Are You Absolutely Certain of Your Readiness for Migration to S/4HANA?

The migration to SAP S/4HANA is a compelling event (like it or not). SAP have publicly stated they...

SEEBURGER SAP Add-Ons for optimized workflow management

E-mail floods and meeting marathons are the biggest productivity killers in one’s everyday working life. They are not...

How SEEBURGER customers can integrate SAP S/4HANA

The new S/4 ERP system in combination with the HANA database is the basis of SAP’s next generation...

Options for SAP PI EDI Adapters when migrating to S/4HANA

In 2027, SAP ECC and SAP PI systems will no longer be supported through SAP. Many companies using...

Integrating S/4HANA with SAP Applications

In this blog series, we are looking at four main areas in SAP S/4HANA integration. This article looks...

International incoming invoice processing without language barriers

In a guest article by TCG Process GmbH, author Marcus Kern presents a communication solution for international incoming...

Between two worlds – processing paper and digital mail in one system

Organizations are flooded with a large number of incoming documents every day. These documents are sent via a...