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.

Subjects

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.