ERPClimb logoERPClimb
IDoc
ABAP Developmentintermediate 7 min read

IDoc Part 8: Status Codes and Reprocessing with BD87

Preview · a free account unlocks the full lesson

Key takeaway

Interpret the most important IDoc status codes (outbound 01, 02, 03, 12, 30; inbound 50, 51, 53, 56, 64, 68, 69), decide the right action, reprocess with BD87 or edit with WE02/WE19, and understand status 68/69 when editing IDocs.

In this lessonShow sections

Visual overview

IDoc Part 8: Status Codes and Reprocessing with BD87 — learning sheetFlow: BD87: select all IDocs with status 51 of the last week, group by message → Read the status message; fix one cause in a test system → Reprocess and check status 53 and the document. Key ideas: OUTBOUND STATUS; INBOUND STATUS; DECIDING THE ACTION; REPROCESSING TOOLS. Watch out: Editing IDoc data (WE02 → status 69) changes the business content — only with a documented approval, and keep the original (status 70).ERPClimb.com / ABAP / LESSON 8/10 / LEARNING SHEETIDoc Part 8: Status Codes and Reprocessing with BD871 · HOW IT FLOWS1BD87select all IDocs with status 51 ofthe last week, group by message2Read the status message;fix one cause in a testsystem3Reprocess and checkstatus 53 and thedocument2 · KEY IDEAS EXPLAINEDOutbound Status01 IDoc generated, 30 ready for dispatch(collected, RSEOUT00 pending).03 data passed to port OK (sent from SAP's view).Inbound Status50 added, 64 ready to be passed to application(waiting for RBDAPP01 or immediate processing).62 passed to application, 53 application documentposted.Deciding The Action51: fix master data/customizing/mapping →reprocess.56: create/correct partner profile → reprocess.Reprocessing ToolsBD87: select by status/message type/partner →"Process".RBDMANI2: job for status 51 (e.g. automatic retryafter master data replication).3 · REMEMBER · WATCH OUTRememberOutbound: 30 ready to send, 03 passed to port, 02 port error, 12dispatch OK (after confirmation).Inbound: 64 ready to process, 51 application error, 53 posted, 56partner profile error, 69 edited, 68 no further processing.BD87 reprocesses IDocs by status after the cause is fixed; programsRBDMANI2 (reprocess 51) and RBDAPP01 (process 64) do it in jobs.!Watch outEditing IDoc data (WE02 → status 69)changes the business content — onlywith a documented approval, and keepthe original (status 70).4 · IN A REAL PROJECTEvery Monday, customer service manually reprocessed 200 ORDERS IDocs in status 51 with "material blockedfor sales". The materials were unblocked by master data on Monday mornings after weekend changes. Theteam scheduled RBDMANI2 for that specific error message after the master data job, and set up an alert only…Original ERPClimb learning sheet • Verify against your SAP release and edition

Explanation

Parts 3 through 7 of this series produced the status records that IDocs carry; support work starts with learning to read them correctly.

On the outbound side, status 01 means the IDoc was generated, and 30 means it's ready for dispatch — collected, with RSEOUT00 pending.

Status 03 means the data was passed to the port successfully, from SAP's point of view, while 02 means there was an error passing data to the port (an RFC or port problem), which you check in SM58 and SM59.

Status 12 means dispatch was OK, and 16 means a functional acknowledgement arrived, where acknowledgements are configured; 29 means an error in the ALE service, and 26 means a syntax error on the outbound side.

On the inbound side, status 50 means the IDoc was added, and 64 means it's ready to be passed to the application — waiting on RBDAPP01 or immediate processing. Status 62 means it was passed to the application, and 53 means the application document was actually posted.

Status 51 means the application document was not posted because of a business error, and you need to read the status message to find out why. Status 56 means the IDoc was added with errors because its partner profile wasn't found or was incorrect. Statuses 60 and 65 cover syntax and ALE service errors.

Status 69 means the IDoc was edited, 70 marks the original of an edited IDoc, and 68 means an error with no further processing, closed manually.

Free account

Create a free account to keep reading

You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.

  • Full explanation
  • Code example
  • Real project scenario
  • Common mistakes
  • Best practices
  • Interview angle

One tap with Google works too. Every topic keeps its first lesson open to everyone.

Keep exploring

Referenced SAP objects

Reviewed reference pages for the objects this page mentions.

Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.