ERPClimb logoERPClimb

Basis / Integration · Intermediate · Configuration

SAP IDoc partner profile (WE20) and port (WE21) configuration

Route outbound or inbound IDocs to an agreed partner using the correct message type, port and processing settings.

APPLICABILITY
ECC / S/4HANA classic IDoc integration
TOOLS / TRANSACTIONS
WE20 · WE21 · WE02

Your project assignment

Prepare an outbound ALE IDoc test for an agreed logical receiver in QA. Message/basic type and trigger must be designed before configuration.

Where to start: URLs and transactions

SAP GUI
BD54 / SM59 / WE21 / WE20 / WE02
Configuration owner
Integration design and receiver details

Prerequisites

  • Agreed partner identifier, message/basic type and direction.
  • Connectivity and receiver configuration approved.
  • Non-production test payload and expected application result.

Configuration workflow

Outbound ALE IDoc routing

All steps visible. Play or advance one stage at a time.

Outbound ALE IDoc routingBusiness trigger: Create the agreed IDoc message → WE20 partner profile: Message type and outbound parameter → WE21 port / SM59: Route via the approved RFC destination → Receiver processing: Check WE02 status and receiver result1Business triggerCreate the agreed IDoc message2WE20 partner profileMessage type and outbound parameter3WE21 port / SM59Route via the approved RFC destination4Receiver processingCheck WE02 status and receiver result
Sender delivery status alone does not confirm a successful receiver posting. ERPClimb original instructional diagram · not a live SAP screenshot.

Hands-on implementation — step by step

Follow the screen navigation, replace example values with approved project values, and mark each step after checking its result. The screens below are original teaching aids, not live SAP screenshots. Progress is local to this visit.

0/4 completed
  1. 1

    BD54 / SM59

    Confirm the logical system name and the applicable tested RFC destination for transactional RFC delivery.

    BD54 / SM59ERPClimb · illustrative screen
    Logical system
    QASCLNT200 (example)
    RFC destination
    Z_QAS_ABAP (example)

    Expected result: Approved receiver identity and route exist.

    Why this matters: The logical partner identifies the receiver; the destination connects to it.

  2. 2

    WE21 → Transactional RFC → Create

    For the example tRFC design, create or select the approved port linked to the tested destination.

    WE21 → Transactional RFC → CreateERPClimb · illustrative screen
    Port
    ZQA_PORT (example)
    RFC destination
    Z_QAS_ABAP

    Expected result: Port resolves to the correct destination.

    Why this matters: The port describes the delivery mechanism.

  3. 3

    WE20 → Partner type LS → Outbound Parameters

    Select the logical partner and create the message entry. Enter agreed basic type, port and output mode.

    WE20 → Partner type LS → Outbound ParametersERPClimb · illustrative screen
    Partner
    QASCLNT200
    Message type
    MATMAS (illustrative)
    Basic type
    MATMAS05, only if supported by design
    Receiver port
    ZQA_PORT
    Output mode
    As agreed: immediate or collect

    Expected result: Outbound parameter exists for intended message.

    Why this matters: Partner profile links logical message to technical delivery.

  4. 4

    BD64 and business trigger / WE02

    Maintain the distribution model if the ALE scenario requires it; use the approved trigger to generate a small test IDoc. Inspect control record and status, and confirm receiver processing.

    BD64 and business trigger / WE02ERPClimb · illustrative screen
    Test
    One fictional or approved QA material
    Monitor
    WE02 / WE05

    Expected result: IDoc reaches the intended receiver and application confirms the result.

    Why this matters: Sender status alone cannot prove receiver-side posting.

Project acceptance checklist

Use this checklist to prepare evidence for your project lead.

0 of 3 checks marked. This does not certify the SAP configuration.

Validate your configuration

  • IDoc control record has the expected partner, port and message type.
  • Receiver or application confirms the intended result; outbound status alone is insufficient.

Common errors and what to check

  • Wrong basic type or extension can break mapping.

  • Do not blindly reprocess status 51; identify the underlying application error and duplicate risk first.

More in the SAP Library

Need help with a configuration error? Open ERPClimb Copilot.

Technical references & further reading

Official documentation for technical verification, release compatibility and further study.