• 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

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...

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...

Compliance with Global e-Invoicing Mandates and SAP S/4HANA

Migrating to SAP S/4HANA is not being made any easier with all the new e-invoicing legislation due to...

Who is Who? Use the Rule Solver to find out who is authorised for the next step in an approval process

Who is who and who does what? Approval processes can be pretty complicated. Wouldn’t it be great if...

Using AI for Digitizing Incoming Mail

A heterogeneous inbox requires intelligent solutions to make the subsequent business processes transparent, efficient and cost-effective. In part...

SAP S/4HANA Cloud: скрытая мощь для среднего бизнеса

Облачная версия SAP S/4HANA долгое время воспринималась как упрощенное решение для компаний, не готовых к полноценному внедрению. Однако...

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...

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...

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...

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...

How to connect to SAP S/4HANA via APIs and the SAP API Business Hub

With SAP S/4HANA, the IDoc structures known from R/3 or ERP ECC 6.0 are still available. New for...

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...

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...

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...

Modern SAP Integration Suite Architecture: A Comprehensive Guide to Building Enterprise Integrations

The digital transformation landscape has fundamentally reshaped how enterprises approach system integration, demanding sophisticated architectures that can seamlessly...

S/4HANA Integration is Best Left to the Experts

Migrating to SAP S/4HANA brings with it a number of complex integration issues. Approaching these successfully needs expertise...

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 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...

E-Invoicing Monitoring in SAP

Has my invoice been delivered? And if not, why not? Anyone sending an invoice naturally wants to know...

How to use SAP S/4HANA with APIs for global e-Invoicing

As SAP will be withdrawing support for Business Suite 7 software in 2027, including SAP ECC (ERP Central...