ERPClimb logoERPClimb
IDoc
ABAP Developmentintermediate 7 min read

IDoc Part 5: Partner Profile, Port and RFC Configuration

Preview · a free account unlocks the full lesson

Key takeaway

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 sections

Visual overview

IDoc Part 5: Partner Profile, Port and RFC Configuration — learning sheetFlow: SM59: test an ABAP connection used by an IDoc port → WE21: display the tRFC port and its destination → WE20: create a test partner profile for a customer with inbound ORDERS (process code ORDE). Key ideas: LOGICAL SYSTEMS; RFC DESTINATION (SM59); PORT (WE21); PARTNER PROFILE (WE20). Watch out: System copies (e.g. production to QA) copy partner profiles and ports — check them immediately after the copy to avoid sending test data to real partners.ERPClimb.com / ABAP / LESSON 5/10 / LEARNING SHEETIDoc Part 5: Partner Profile, Port and RFC Configuration1 · HOW IT FLOWS1SM59test an ABAP connection used by anIDoc port2WE21display the tRFC port and itsdestination3WE20create a test partner profile fora customer with inbound ORDERS…2 · KEY IDEAS EXPLAINEDLogical SystemsBD54: define logical system names (e.g.ERPCLNT100, EXTWMS).SCC4: assign the own logical system to the client.RFC Destination (SM59)Type 3 (ABAP connection) for SAP systems, type G/Hfor HTTP.Test connection and authorization; user should bea system/communication user with IDocauthorizations.Port (WE21)Transactional RFC port: points to the RFCdestination (most common for SAP-SAP andmiddleware).File port: IDocs written to/read from a directory(legacy EDI converters).Partner Profile (WE20)Partner number + type (LS/KU/LI) + general data(agent for errors).Outbound parameters per message type: receiverport, output mode, basic type (+ extension),message control (for output-based IDocs).3 · REMEMBER · WATCH OUTRememberChain: logical system (BD54, client assignment in SCC4) → RFCdestination (SM59) → port (WE21) → partner profile (WE20).Partner profiles are defined per partner number and type: LS (logicalsystem), KU (customer), LI (vendor), with inbound and outbound…Most "configuration" IDoc errors are: no partner profile(status 56), port/RFC problems (status 02), wrong basic type or…!Watch outSystem copies (e.g. production toQA) copy partner profiles and ports— check them immediately after thecopy to avoid sending test data toreal partners.4 · IN A REAL PROJECTAfter a production-to-QA system copy, QA sent real order confirmations to customers because the copied partnerprofiles still pointed to the production EDI middleware port. The basis team added post-copy steps: change RFCdestinations and ports to QA middleware, lock external partners, and check SCC4/BD54 logical systems (BDLS…Original ERPClimb learning sheet • Verify against your SAP release and edition

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.

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.