ERPClimb logoERPClimb
Login
IDoc Integration with S/4HANA
Integration Suite & Cloud Integration (CPI)intermediate

CPI IDoc Part 1: Sending IDocs from S/4HANA to Cloud Integration

Full lesson currently free to read · AI practice limits apply separately

Key takeaway

Configure S/4HANA to send IDocs to Cloud Integration: an HTTP RFC destination to the iFlow endpoint, an XML HTTP port, partner profiles, and the IDoc sender adapter — plus how to check the IDoc status on the S/4HANA side.

Visual overview

CPI IDoc Part 1: Sending IDocs from S/4HANA to Cloud Integration — learning sheetFlow: IDoc created in S/4HANA → Partner profile (WE20) → XML HTTP port (WE21) → SM59 type G destination → IDoc sender adapter in iFlow. Key ideas: WHY IDOCS STILL MATTER; RFC DESTINATION; PORT AND PARTNER PROFILE; THE IFLOW. Watch out: Authentication between S/4HANA and Cloud Integration must use a technical user or certificate, not a personal user.ERPClimb.com / CPI / LESSON 6/14 / LEARNING SHEETCPI IDoc Part 1: Sending IDocs from S/4HANA to CloudIntegration1 · HOW IT FLOWS1IDoccreated inS/4HANA2Partnerprofile(WE20)3XML HTTPport (WE21)4SM59 type Gdestination5IDoc senderadapter iniFlow2 · KEY IDEAS EXPLAINEDWhy IDocs Still MatterIDocs remain common for master data andtransactional integration with S/4HANA: orders,deliveries, invoices, material and customer data…RFC DestinationIn SM59, create an HTTP connection to an externalserver (type G) with the Cloud Integration runtimehost and the path of the iFlow endpoint, for…Port And Partner ProfileIn WE21, create an XML HTTP port that referencesthe RFC destination. In WE20, add the outboundmessage types for the partner (often a logical…The IflowThe IDoc sender adapter receives the IDoc XML; theiFlow maps and routes it to the receiver. A CloudIntegration role must be assigned to the technical…3 · REMEMBER · WATCH OUTRememberS/4HANA sends IDocs to Cloud Integration over HTTP using an XML HTTPport (WE21).The port uses an HTTP RFC destination (type G in SM59) pointing to theiFlow's IDoc sender endpoint.Partner profiles (WE20) assign message types to the port for thepartner.!Watch outAuthentication between S/4HANA andCloud Integration must use atechnical user or certificate, not apersonal user.4 · IN A REAL PROJECTOutbound IDocs stayed in status 02 after go-live. The SM59 destination worked in the connection test but useda personal user whose password had expired. Switching to a technical user with certificate authentication andmonitoring the destination prevented recurrences.Original ERPClimb learning sheet • Verify against your SAP release and edition

Explanation

📌 KEY POINTS
✅ S/4HANA sends IDocs to Cloud Integration over HTTP using an XML HTTP port (WE21).

✅ The port uses an HTTP RFC destination (type G in SM59) pointing to the iFlow's IDoc sender endpoint.

✅ Partner profiles (WE20) assign message types to the port for the partner.

✅ The iFlow uses the IDoc sender adapter, which receives IDoc XML.

⚠️ Authentication between S/4HANA and Cloud Integration must use a technical user or certificate, not a personal user.

━━━━━━━━━━━━━━━━━━━━
▶ WHERE WE ARE

This series covers IDoc integration. Part 1 covers outbound IDocs from S/4HANA.

━━━━━━━━━━━━━━━━━━━━
▶ 1. WHY IDOCS STILL MATTER

IDocs remain common for master data and transactional integration with S/4HANA: orders, deliveries, invoices, material and customer data. Many partners and third-party systems expect them. Cloud Integration handles IDocs natively with the IDoc adapter.

━━━━━━━━━━━━━━━━━━━━
▶ 2. RFC DESTINATION

In SM59, create an HTTP connection to an external server (type G) with the Cloud Integration runtime host and the path of the iFlow endpoint, for example /cxf/... configured in the IDoc sender adapter. Configure TLS and authentication, typically client certificate or OAuth-capable setups, or basic authentication with a technical user.

━━━━━━━━━━━━━━━━━━━━
▶ 3. PORT AND PARTNER PROFILE

In WE21, create an XML HTTP port that references the RFC destination. In WE20, add the outbound message types for the partner (often a logical system representing the target) with this port. Output determination or distribution models then create IDocs for that partner.

━━━━━━━━━━━━━━━━━━━━
▶ 4. THE IFLOW

The IDoc sender adapter receives the IDoc XML; the iFlow maps and routes it to the receiver. A Cloud Integration role must be assigned to the technical user so S/4HANA is allowed to call the endpoint.

━━━━━━━━━━━━━━━━━━━━
▶ 5. CHECKING STATUS

In WE02 or WE05, outbound IDocs show status 03 when successfully passed to the port. Errors such as 02 or 29 indicate port or communication problems; SM59 connection tests help. The message processing log in Cloud Integration shows what happened afterwards.

━━━━━━━━━━━━━━━━━━━━
▶ STEP BY STEP

  1. Create an iFlow with an IDoc sender adapter and deploy it.
  2. Create an SM59 type G destination to its endpoint.
  3. Create an XML HTTP port and partner profile.
  4. Send a test IDoc and check WE02 and the message log.

✅ CHECKPOINT: a test IDoc reaches the iFlow with status 03 in S/4HANA and success in Cloud Integration.

How the SAP process fits together

SAP PROCESS EXPLORER · Integration: sender to receiver

ERPClimb.com

IDoc Integration with S/4HANA — process breakdown

Topic-specific conceptual flow: how key objects and decisions fit together. SAP configurations and exceptional cases can follow different paths.

1/4

Selected process stage

Configure

Ports, RFC destinations and partner profiles in S/4HANA

What this specific lesson teaches

Configure S/4HANA to send IDocs to Cloud Integration: an HTTP RFC destination to the iFlow endpoint, an XML HTTP port, partner profiles, and the IDoc sender adapter — plus how to check the IDoc status on the S/4HANA side.

Key lesson principle: S/4HANA sends IDocs to Cloud Integration over HTTP using an XML HTTP port (WE21).

Representative SAP learning flow, not a guarantee of system runtime sequence in every scenario. The chapter-specific facts come from the published lesson text.

Real project scenario

Outbound IDocs stayed in status 02 after go-live. The SM59 destination worked in the connection test but used a personal user whose password had expired. Switching to a technical user with certificate authentication and monitoring the destination prevented recurrences.

Common mistakes

  • Personal users in RFC destinations.
  • Wrong endpoint path in SM59.
  • Missing Cloud Integration role for the technical user.
  • Not checking both WE02 and the message log.

Best practices

  • Technical users or certificates.
  • Endpoint naming conventions.
  • Status monitoring on both sides.
  • Document partner profiles.

Interview angle

Interviewers ask how to configure S/4HANA to send IDocs to Cloud Integration (SM59, WE21, WE20) and how to check where an outbound IDoc failed.

Practice this lesson

Original educational case studies for SAP consultants, not official SAP certification exam questions. Verify product edition and implementation details against the current SAP documentation.

Quick check

0 of 3 questions attempted

1. Which port type is used to send IDocs from S/4HANA to Cloud Integration over HTTP?

2. Which SM59 connection type points to the Cloud Integration endpoint?

3. An outbound IDoc shows status 03. What does it mean?

Interview questions

1. How do you configure S/4HANA to send IDocs to an iFlow in Cloud Integration?

Answer it in your own words first, then compare.

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.

More lessons in this topic

Related SAP topics