WE02Integration

SAP WE02Display IDoc

An IDoc (Intermediate Document) is how SAP sends structured business data to another system, and receives it back. A customer sends you a purchase order by EDI, it arrives as an IDoc. You send a supplier an order, it leaves as an IDoc. Same container in both directions.

Each one has three parts. The control record says what it is and who it is between — direction, message type, sender and receiver. The data records are the payload, organised into segments. The status records are its history: every step it passed through and every error it hit, with a timestamp.

WE02 is the standard way to look at all of that. It is display-only, so it is the right transaction to reach for first when someone says an interface has failed.

Every IDoc carries a two-digit status. Inbound: 53 posted successfully, 51 application error, 64 waiting to be processed, 68 abandoned. Outbound: 03 passed to the port, 12 dispatched, 02 port error, 29 ALE service error. 56 means no partner profile was found.

When you would actually use WE02

What the screen looks like

IDoc List
WE02

Selection

IDoc number
Created on01.08.2026 - 03.08.2026
Direction2 Inbound
Current status51
Basic typeORDERS05
Message typeORDERS
Partner numberCUST_NORTHWIND
Always restrict the date range — the IDoc tables are among the largest in the system.
Client 100 | S/4HANA | Company Code 1000
Illustrative recreation.Direction 1 is outbound, 2 is inbound — Drawn for training with invented data; not a capture of a real SAP system. Fields with a blue border are required. SAP is a trademark of SAP SE.
IDoc Display: Selected Documents
WE02
IDoc numberStatusDirectionMessagePartnerCreated
000000000447190253InboundORDERSCUST_NORTHWIND02.08.2026
000000000447195551InboundORDERSCUST_NORTHWIND02.08.2026
000000000447201051InboundORDERSCUST_BALTIC03.08.2026
000000000447204412OutboundDESADVVEND_ALPINE03.08.2026
2 IDocs in status 51 — application document not posted
Client 100 | S/4HANA | Company Code 1000
Illustrative recreation.Status 51 means the message arrived fine but the business document could not be created — Drawn for training with invented data; not a capture of a real SAP system. Fields with a blue border are required. SAP is a trademark of SAP SE.

The fields, in plain English

DirectionEDIDC-DIRECT

1 is outbound (you are sending), 2 is inbound (you are receiving). This single field changes which statuses are meaningful — 53 only exists inbound, 12 only outbound.

Current statusEDIDC-STATUS

Where the IDoc got to. The ones that matter day to day: 53 posted successfully, 51 application error, 64 ready to be processed, 68 abandoned, 03 passed to port, 12 dispatched, 02 port error, 29 ALE service error, 56 no partner profile.

Watch out: Status 53 means SAP created the business document. It does NOT mean the document is correct — only that it posted.

Message typeEDIDC-MESTYP

What the message is about, independent of its layout: ORDERS a purchase order, INVOIC an invoice, DESADV a despatch advice, ORDRSP an order confirmation.

Basic typeEDIDC-IDOCTP

The structural definition — which segments and fields the IDoc contains. ORDERS05 is a version of the purchase order structure. Message type says what it means; basic type says how it is laid out.

Watch out: A partner sending an older basic type than your partner profile expects is a common cause of syntax errors.

Partner numberEDIDC-SNDPRN / RCVPRN

Who the message is with — a customer, vendor or logical system. Together with partner type and message type this is what selects the partner profile in WE20.

Step by step

  1. 1Enter a date range. Never run WE02 unrestricted.
  2. 2Set the direction, and a status if you are hunting failures — 51 for inbound errors.
  3. 3Optionally narrow by message type or partner.
  4. 4Execute. The result groups IDocs by status.
  5. 5Open one and read the status records from the bottom up — the earliest entry usually explains the failure.
  6. 6Expand the data records to see the payload segment by segment.
  7. 7Once you know the cause, fix the underlying data and reprocess with BD87.

Errors you will hit, and what they mean

Status 51 — Application document not posted

Why: The IDoc arrived intact but SAP could not create the business document. Usually master data: unknown material, blocked customer, missing price, closed period.

Fix: Read the status record text, which names the real error. Fix that data, then reprocess in BD87. Do not edit the IDoc payload to force it through.

Status 56 — IDoc with errors added

Why: No partner profile exists for that combination of partner, message type and direction.

Fix: Create or correct the partner profile in WE20. Until it exists, every message from that partner will fail identically.

Status 29 — Error in ALE service

Why: Distribution model or partner profile problem before the message could even be routed.

Fix: Check the distribution model in BD64 and the partner profile in WE20.

Selection returns nothing but the partner insists they sent it

Why: It may never have reached SAP — stuck at the EDI subsystem, the middleware or the port.

Fix: Search by the business content with WE09 to be sure, then check the port and middleware before concluding it was not sent.

Common questions

What is the difference between WE02 and WE05?

Almost nothing. Both list and display IDocs from the same selection. WE05 presents a tree grouped by status; WE02 gives a flatter list. Use whichever you find more readable — most consultants default to WE02.

Can I change an IDoc?

WE19 can copy an IDoc, let you edit the copy and reprocess it — useful for testing. Editing production data to make it post is almost always the wrong fix: the source system will send the same wrong data again tomorrow.

What does status 53 actually guarantee?

That a business document was created. It says nothing about whether the values are right. A sales order posted with the wrong price is still status 53.

Transactions that go with WE02

Reading about it only gets you so far

Practise SAP transactions in a safe simulated environment and keep what you learn.

Practise SAP transactions hands-on

Interactive modules, games, and an AI tutor — free to start.

Get started free →