4 minute read

IDocs in SAP S/4HANA: The Differences to SAP ECC 6.0

SAP ECC 6.0 has officially ended. Until 2027, maintenance of the third version of SAP SE, which was introduced in 1993 (!) as R/3, will continue unchanged and without additional fees. Between 2027 and 2030 only core applications of Business Suite 7 are to be maintained, but at additional cost. The fourth and current version SAP S/4HANA has already been guaranteed maintenance until at least 2040. Now is therefore a good time to get serious about the update from an EDI perspective as well. In this article we cover what you need to know concerning IDocs in S/4HANA.

IDoc: the SAP standard format and its changes under S/4HANA

…or rather, from the IDoc perspective. IDocs are the standard format in SAP when it comes to exporting or importing data and this will not change quickly in S/4HANA. This means that most SAP integrations and implementations of automated message exchange will also continue to be based on IDocs.

The update to S/4HANA changes the structure of the IDoc format. Some descriptions of individual segments have been corrected (mainly upper/lower case), other elements have been added. However, IDoc is known to use a lot of rather short abbreviations for the available elements, so without documentation and the XML tree from the XML schema it is not immediately clear which are new and which have changed. The XML schema of an IDoc can be easily exported using transaction WE60 – and of course also to S/4HANA.

White Paper - EDI Integration in SAP

Below we’ll examine an example to illustrate the changes more clearly. We use the IDoc basic type INVOIC02 IDoc, which represents the de facto standard export of all invoices under SAP (this is particularly interesting as XRechnung will soon have to be generated from IDoc in Germany).

Example XML schema of an INVOIC02 IDoc in direct comparison to the SAP versions SAP ERP ECC 6.0 and SAP S/4HANA

© 2020. SAP SE or an SAP affiliate company. All rights reserved. Used with permission of SAP SE.

IDocs in S/4HANA – the differences in detail

In total, there are currently 37 differences between an INVOIC02 IDoc in S/4HANA and SAP ERP ECC 6.0.

The first 33 differences are merely corrections to the description of the segments (mainly case-sensitive). The other four differences are more interesting:

1) E1EDP01 – general data document item

The IDoc segment E1EDP01 receives some new elements. Their names and documentation are as follows:

"SGT_RCAT" Requirement Segment

"SGT_SCAT" Stock Segment

"HANDOVERLOC" Location for a physical handover of goods

"MATNR_LONG" Material Number

"REQ_SEG_LONG" Requirement Segment

"STK_SEG_LONG" Stock Segment

"EXPECTED_VALUE" Currency amount for BAPIS (with 9 decimal places)

"LIMIT_AMOUNT" Currency amount for BAPIS (with 9 decimal places)

2) E1EDP02 – document item reference data

There are also three new elements in segment E1EDP02:

"RMA" Order Acknowledgment Number

"REASON" Order Reason (Reason for the Business Transaction)

"RSNTXT" Description

3) E1EDP19 – document item object data

A longer material number can now be specified for the object data:

"IDTNR_LONG" up to 40-digit material number

4) Generic IDoc type extension

A new element in the generic IDoc type extension has also been added:

"E1IDOCENHANCEMENT" 

You can use this element to specify generic key/value pairs in the IDoc XML file. However, the length of the character strings in the value elements is limited to 970 characters.

The changes in the IDoc structure are therefore manageable, and should be recognised as useful improvements for the best possible handling of S/4HANA.

Want more information on IDocs and EDI under S/4HANA?

For more details about the changes in SAP from ERP ECC 6.0 to S/4HANA and what a seamless EDI/ERP integration into your company’s SAP system involves, please contact us.

 

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

2 minute read

How to End Another User's SAP Session

Unable to edit a crucial document in SAP® because you're locked out? Learning how to end another user's SAP session will solve this issue.

3 minute read

Finding Translations for SAP® Terminology

Using the correct translations for SAP® terminology is important in international projects. Discover how to find these quickly.

2 minute read

How to Save an IDoc Parser Report to a Local File

In this short and simple guide we show you how to save an IDoc parser report to a local file in just a couple of easy steps.

6 minute read

How to Debug SAP Message ME161 - "The Notified Quantity Exceeds the Ordered Quantity"

Don't know how to fix SAP error message ME161 "The notified quantity exceeds the ordered quantity"? In this article we break it down.

3 minute read

ecosio to Host SAP/EDI Workshop at UKISUG Connect 2021

ecosio is exhibiting and running an SAP/EDI workshop at this year's UKISUG Connect conference. Find out what attendees can enjoy at the event.

6 minute read

SAP® EDI Project Roles - A Breakdown

Learn the various EDI project roles involved in achieving successful EDI integration in SAP systems and how the different roles interact.

10 minute read

Alternative Solutions for EDI Data Exchange with SAP PI

Many companies use SAP PI to enable data exchange between a given SAP ERP system and its connecting systems. Discover the options available.

6 minute read

How do I Implement EDI with SAP Integration Suite®?

EDI with SAP Integration Suite®: take over internally yourself or hire a fully managed EDI service provider? In this article we explore the positives and negatives of these approaches.

3 minute read

How to create an SAP transaction code

Want to know how to create an SAP transaction code for an existing ABAP program so that you can easily call the program?

9 minute read

Alternative Solutions for EDI Data Exchange with SAP PI and SAP PO

Discover the three possibilities when it comes to implementation of electronic data interchange (EDI) in SAP Process Integration or SAP Process Orchestration (SAP PI/PO).

6 minute read

How to Set Up and Manage Automatic SAP Jobs

SAP jobs can be used to automate processes in SAP ERP so they can be carried out without user intervention. We explore the key features.

4 minute read

IDoc Status Change in SAP ERP

IDoc statuses are not always the clearest - particularly when errors occur. In this article we explain how to change IDoc status as required.

We use cookies to provide an optimal website experience. You decide which one you want to allow. Depending on the setting, however, not all functionalities may be available to you. Data protection & imprint.