IDOC editing: individual and mass tools

Dmitry Kaglik

November 2, 2020

SAP

No Comment

IDOCs  are a powerful tool to move information from external to SAP systems, or even within SAP system itself. SAP Expert already wrote about IDOCs in general and various areas where IDOCs can be used: EBS, invoice, payment, master data.

It is all good when IDOC is sent to SAP system and processed there successfully. But what if not? What if IDOC failed to process?

First of all, you need to monitor the IDOC statuses. There are various tools to be used: transactions BD87, WE02, WLF_IDOC, WPER just to name a few. You need to check the status of IDOCs. Usually processed IDOCs have status 53 for inbound and 03 for outbound. Error status for inbound IDOC is usually 51. There may be other statuses, so pay attention to anything marked in red.

Usually there is a good explanation in the IDOC status record log about the reasons of the failure. You can read and analyze it.

The failure reasons can vary. One of them can be wrong field values in the IDOCs. For example, you put posting date in the closed periods, or a mandatory field has an empty value, etc. Does it mean the IDOC can no longer be processed? Of course not! There are editing tools that allow changing of field values in IDOC.

Individual processing

If you need to change the IDOC field value, navigate to the segment with incorrect value and double-click its icon

IDOC segment tree

When you see the values of IDOC segment, you can switch to the edit mode via menu Data Record.

Correct the value in the segment field and save.

IDOC status will change to 69. You can re-process the IDOC again.

Mass processing

Editing field values one by one is OK when you have a handful of them. But what if you need to change many more IDOCs or fields in the same IDOC? In this case, you can use a mass-change tool. Transaction WLF_IDOC is to help here.

This transaction is a report with multiple tabs on selection screen.

The first tab gives a usual set of selections for IDOC filtering: dates, numbers, statuses and so on. Populate these fields with the IDOC number(s) you want to edit.

The fifth tab is “Criteria for data records” where you can specify segment name and number, data field name and value. And here we come to a small checkbox “Change value”, which opens yet another field where a new value can be specified.

Change IDOC field value

Run the report and it will do the change in IDOC segment field values. IDOCs status will change to 69. You can re-process the IDOC(s) again.

As usual with mass change tools, be careful and validate your entry before doing the change. There is no “Test mode” in WLF_IDOC, unfortunately.

IDOC is a powerful tool. Use it correctly and you will have a lot of automation in place in your system.

Related Posts

Top SAP Expert posts from 2021

Dmitry Kaglik

January 10, 2022

SAP

No Comment

The year 2021 is behind us. There were many articles published on SAP Expert blog that year, as well as during previous years. Let’s see what were the most read posts from 2021. Search Strings: Powerhorse of Electronic Bank Statement More Free SAP Training Do you need help with SAP Job interviews? As for the […]

Read More

Merry Christmas and Happy New Year 2022 from SAP Expert

Dmitry Kaglik

December 25, 2021

SAP

No Comment

My dear readers! It is holiday season again upon us! Another year has gone. 2021 comes to the end. The year of surprises, struggle, success and wins. Christmas is today, and New Year is just around the corner. Let’s celebrate these! Let’s make new and better plans for future year. SAP Expert had its ups […]

Read More

Leave a Reply

Your email address will not be published. Required fields are marked *

Search this site

Polls

Will you be happy to pay for the 3rd edition of the book FREQUENTLY ASKED QUESTIONS ON SAP FINANCE?

View Results

Loading ... Loading ...

Search this site

Subscribe!

You can subscribe to our regular updates here.

Follow Us!

Polls

Will you be happy to pay for the 3rd edition of the book FREQUENTLY ASKED QUESTIONS ON SAP FINANCE?

View Results

Loading ... Loading ...
Disclaimer and privacy policy