IDoc Part 5: Partner Profile, Port and RFC Configuration
Preview · a free account unlocks the full lesson
Configure the IDoc communication chain: logical systems (BD54, SCC4), RFC destinations (SM59), ports (WE21: tRFC, file, XML HTTP), partner profiles (WE20) with inbound and outbound parameters, and the typical configuration errors behind status 56, 29 and 02.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Parts 3 and 4 used partner profiles that were already set up. This part sets up the whole communication chain ourselves, from logical systems down to the partner profile itself.
Logical systems are the starting point: BD54 defines logical system names, such as ERPCLNT100 or EXTWMS, and SCC4 assigns your own logical system to the current client. These names are then used as sender and receiver identifiers in ALE, and as the basis of partner type LS.
Next comes the RFC destination, configured in SM59. A type 3 (ABAP connection) is used for connecting to other SAP systems, while types G or H are used for HTTP connections. It's worth testing the connection and its authorization directly, and the user behind it should be a dedicated system or communication user with proper IDoc authorizations.
The port, configured in WE21, sits between the RFC destination and the partner profile. A transactional RFC port points to an RFC destination and is the most common choice for SAP-to-SAP communication and for middleware. A file port instead writes IDocs to, or reads them from, a directory — typical of legacy EDI converters — and an XML HTTP port sends IDoc XML over HTTP.
The partner profile itself, maintained in WE20, is defined per partner number and partner type — LS for a logical system, KU for a customer, LI for a vendor — together with general data such as the agent who should be notified of errors.
Partner profiles are defined per partner number and type: LS (logical system), KU (customer), LI (vendor), with inbound and outbound parameters per message type. Outbound parameters, set per message type, include the receiver port, the output mode, and the basic type plus any extension, along with message control settings for output-based IDocs.
Inbound parameters, also set per message type, include the process code, the processing mode, and optionally a message code or function. For KU and LI partners specifically, a partner function such as SP or AG can form part of the key.
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.