IDoc Part 3: Inbound IDoc Processing
Preview · a free account unlocks the full lesson
Follow an inbound IDoc from arrival to posted document: port and partner profile lookup, process code and function module, immediate vs background processing (RBDAPP01), status 64/50/51/53, and how inbound processing uses standard FMs like IDOC INPUT ORDERS.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Parts 1 and 2 described what IDocs are; this lesson follows an inbound order all the way from EDI into SAP. The flow starts when the IDoc arrives, its control record gets checked, the partner profile in WE20 supplies the inbound parameters, those point to a process code, and the process code's function module finally posts the business document.
The processing mode — "trigger immediately" or "trigger by background program," meaning job RBDAPP01 — is set in the partner profile itself. Along the way, status 64 means ready to be processed, 51 means error (not posted), and 53 means posted successfully.
It's worth remembering that inbound function modules often call the very same transactions or BAPIs a user would, so ordinary business errors — bad master data, missing customizing — are by far the most common cause of a status 51.
The IDoc arrives through a port, whether that's tRFC from middleware, a file port, or HTTP. It starts at status 50 (IDoc added), then moves to 64 (ready to be transferred to the application); IDocs you create manually in WE19 instead get status 74.
From there, the partner profile lookup in WE20 uses a key made up of the sender's partner number and partner type (KU for customer, LI for vendor, LS for logical system), the partner function, and the message type, plus sometimes a message code or function. The inbound parameters found there specify the process code — ORDE for the ORDERS message type, for instance — whether processing happens immediately or through the background program, and who is responsible for handling any resulting errors.
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
Interview questions on this topic
Related SAP topics
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.