6 minute read

IDoc Processing in an SAP ERP System with Transaction BD87

Search and Select IDocs

Anyone dealing with EDI (Electronic Data Interchange) in an SAP ERP system cannot avoid the use of IDocs. IDocs are the central format for getting EDI data from or into an SAP system. Transaction BD87 is used to check incoming and outgoing IDocs in an SAP system.

By being able to reprocess any IDocs, the transaction is quite useless for the classic SAP business user. For an SAP/EDI support team however,  transaction BD87 is a fundamental tool for checking and, if necessary, correcting IDoc processing in an SAP system. In the following, we introduce the most important functions and views of transaction BD87 and show which helpful functions are available for IDoc processing.

When starting the transaction, a filter window is presented, which can be used to narrow down the IDocs in an SAP system. In a typical SAP system, that is used together with many EDI-based purchase and sales processes, thousands of IDocs can occur daily. Narrowing down the search is therefore vital – e.g. to a certain period of time, a specific document type, etc.

Transaction BD87 Selection Mask
Transaction BD87 Selection Mask

Note: click on the respective screenshot to open a high-resolution version.

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

White Paper - EDI Integration in SAP

If you have filtered the search parameters accordingly, you get an overview of the IDocs found. In the upper part of the detailed view, you can again see the parameters to narrow down the search. In the case below, the restriction is the modification date in the interval from 03/07/2019 to 03/07/2019.

IDoc Overview in Transaction BD87
IDoc Overview in Transaction BD87

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

The IDocs found are then listed, and usually grouped into outbound and inbound IDocs. Outbound is understood to mean all IDocs sent from SAP and inbound all IDocs sent to SAP.

Once in their respective group, the IDocs are then aggregated according to the various statuses. The view shown above is from a test system – in a productive system, 216 outbound IDocs in the status 02 Error during data transfer to port would be cause for concern.

The IDoc overview provides several useful functions in the toolbar.

(1) Refresh IDoc Display

With this function you can refresh the detailed view. This is particularly helpful if you have changed the status of an IDoc in parallel with another transaction and want to check whether the status has been correctly implemented.

(2) Expand Subtree

Expands the subtree of the currently selected node in the view.

(3) Collapse Subtree

Compresses the subtree of the currently selected node in the view.

(4) Display Partner Systems

Groups the IDoc tree view based on the partner systems, the IDoc status, and the message type.

(5) Highlight Message Type

Groups the IDoc tree view based on message type and IDoc status.

(6) Select IDocs

Opens a pop-up window to restrict the currently displayed IDocs. The parameters selected in the previous selection mask are pre-filled.

(7) Display IDocs

Opens an ALV list with all IDocs of the selected node. Alternatively, you can double click on the node, this will achieve the same result.

(8) Trace IDocs

Displays the status of an IDoc. Alternatively, you can double click on the IDoc, this will achieve the same result.

(9) Process

This function triggers the processing program for all IDocs of the selected node. This feature should be used wisely, as with a false click, potentially thousands of IDocs are sent for re-processing – which might lead to unwanted side effects.

Display IDocs

If you click on (7) Display IDocs in the previous screen, an ALV list with the IDoc details opens. By default, the IDoc number, message type, status, etc. are displayed. The following figure shows three outbound DELINS messages.

IDoc ALV View
IDoc ALV View

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

Two functions are particularly useful in this mask. With a click on the object key, the business document belonging to the IDoc is displayed by displaying the object type and the object key. In our case, the object type belonging to the IDoc of type DELINS is PurchSchedAgreement, that is, a purchasing scheduling agreement.

Another useful feature is the shortcuts display. It displays the objects linked to the selected IDoc, as shown in the following figure.

IDoc Shortcut Display
IDoc Shortcut Display

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

If you double-click on object 5500000139 for example (= the purchasing delivery schedule belonging to the IDoc), the corresponding transaction automatically opens – in this case, the purchasing delivery scheduling agreement is opened in transaction ME33L.

Display IDoc Details

If you double-click on an IDoc in the ALV view, the IDoc detailed view opens.

IDoc Detailed View
IDoc Detailed View

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

The IDoc detailed view is also displayed as a tree view and is divided into three parts.

The control record contains the header information of the IDoc. In the XML view of an IDoc, this corresponds to the element EDI_DC40.

The individual elements of the IDoc, which contain the actual information, are under data records.

Status records list all the previous states of the relevant IDocs, with the last state listed at the top.

(1) Services for Object

Clicking on (1) Services for Object opens a toolbar with several useful features.

IDoc Services
IDoc Services

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

(2) Add

This function can be used to add an attachment to the IDoc (for example, a file from the desktop), create a note for the IDoc, reference an external document via URL, or capture a barcode if this function is active.

(3) Attachment List

With the help of this function, you can view the created attachments in point 2.

(4) Private Note

This function allows you to add a personal note to the IDoc.

(5) Send Object with Note

This is the function you can use to send an IDoc per email e.g.

(6) Display Relationships

Like in the previous views, this function can be used to display the objects linked to the IDoc.

(7) Workflow

This function can be used to display workflows that are linked to this IDoc or to start related workflows.

(8) My Objects

This function adds the IDoc to the personal object list. Using the menu item System · My objects · Object history, you can quickly navigate back to the relevant IDoc.

(9) Help for the Object Services

This function helps you to bring up the help for the object services.

Transaction BD87 – Summary

With transaction BD87, you can get a quick overview of the current processing status of the IDocs in an SAP ERP system. If the IDoc is in the correct status, processing of the IDoc can be initiated again. In a separate article we examine the processing of an IDoc.

Any questions?

Do you still have questions about IDoc processing in SAP, transaction BD87 or EDI more generally? Feel free to contact us, we would love to help you!


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

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?

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.

5 minute read

How Can I Add an Entry to an SAP Table?

In this article we show how to add entries to an existing SAP table - even if it does not have its own maintenance dialog.

5 minute read

Alternatives to the Seeburger PI Adapter

The end of maintenance for the Seeburger PI Adapter is imminent. What alternatives are there and which is the best suited for your business?

4 minute read

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

The change to S/4HANA also impacts the format of IDocs. In this article we explore IDocs in S/4HANA and the new and changed elements.

11 minute read

Migration to SAP S/4HANA - 5 Key Considerations

Are you prepared for migration to SAP S/4HANA? Discover the 5 key questions all businesses looking to upgrade to SAP's new ERP system should consider.

11 minute read

Exchange of Electronic Invoices with the SAP eDocument Framework

Companies have to increasingly implement e-Invoicing for different countries. This blog post explains how the SAP eDocument Framework can help you.

2 minute read

How Can You Save an IDoc from SAP on Your Hard Drive?

Wondering how to export IDocs as a file on your local computer? We created a handy guide!

5 minute read

Create and Process UBL Documents with Attachments in SAP

Enable your SAP solution for UBL based e-Invoicing over Peppol. Click here for an example case based on the XRechnung in Germany.

12 minute read

EDI_DC40: Understand the SAP IDoc Control Record

A correctly filled control header is essential for the identification and processing of IDocs. We show what settings are needed in SAP.

6 minute read

An Overview of the Most Important SAP Modules

Before introducing new software, companies need to understand and assess its value. SAPs ERP system offers a lot of functionality through its different modules.

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.