ERPClimb logoERPClimb
CPI iFlows
BTP & Integrationbeginner 4 min read

BTP CPI iFlows Part 1: What an iFlow Is — Message Model and Building Blocks

Lessons are open to try during our launch period. Some advanced content may move to Pro later. AI practice limits apply separately.

Key takeaway

Understand SAP Cloud Integration iFlows from the inside: the message model (body, headers, exchange properties, attachments), sender and receiver channels, integration process steps, local integration processes for reuse, and how Camel-based processing moves a message from start to end.

In this lessonShow sections

Visual overview

CPI IFLOWHow a message moves through an iFlowBody, headers and properties along the way1Sender channelAdapter receives messageSender2Content ModifierSet headers (external) and properties (internal)Modifier3Transform & routeMapping, converter, routerSteps4Local processReusable sub-logicLocal processReceiver channelBody + allowed headers sentReceiverTip: properties stay inside the iFlow; headers may travel to receivers.

The situation: a real project scenario

A retail company found internal routing flags arriving in a partner's HTTP headers. The iFlow stored them as headers instead of properties. Moving them to exchange properties stopped the leak.

Explanation

This series on CPI iFlows runs across eight parts, covering building blocks, adapters and mapping, exception handling, mapping options, routing and splitting, JMS and async retries, idempotency, and performance tuning — this lesson is the first of those, focused on the message model and core building blocks.

A message moving through an iFlow has three parts: a body, which is the actual payload; headers, which travel with the message and are also visible to receivers; and exchange properties, which stay internal to that particular run of the iFlow and are never sent onward.

Sender channels are what start a flow, while receiver channels call out to target systems through adapters. Steps such as Content Modifier, Converter, Mapping, Router and Script are what actually transform and route the message as it moves through the flow.

For larger flows, local integration processes let you break the logic into reusable pieces within the same iFlow rather than one unbroken sequence of steps.

The key distinction to get right is that storing internal-only data in headers risks leaking it to receivers, since headers are visible downstream — exchange properties should be used instead for anything that's purely internal to the iFlow.

As a rule of thumb, exchange properties suit anything only the iFlow itself needs, while headers suit whatever receivers genuinely need to see. It's also worth watching memory usage: copying large payloads into properties multiplies how much memory the flow consumes.

In practice, this means building a flow where a Content Modifier sets both a header and a property, calling a receiver and inspecting exactly what it receives, and then moving some of that logic into a local process — the expected result being that the receiver sees the header, but never the property.

Expert visual walkthrough

BTP ACADEMY · PART 1 · Integration pathERPClimb.com

Basic integration flow

CPI iFlows · Chapter-specific technical teaching map

Integration path

1Concept

Sender adapter

2Concept

Message processor

3Concept

Mapping / routing

4Concept

Receiver adapter

Tutor's chapter takeaway

Understand SAP Cloud Integration iFlows from the inside: the message model (body, headers, exchange properties, attachments), sender and receiver channels, integration process steps, local integration processes for reuse, and how Camel-based processing moves a message…

In a real project

A retail company found internal routing flags arriving in a partner's HTTP headers. The iFlow stored them as headers instead of properties. Moving them to exchange properties stopped the leak.

Watch out for

• Storing internal-only data in message headers can leak it to receivers, since headers travel with the message — use exchange properties for anything only the iFlow needs. • Building one giant monolithic flow instead of…

Conceptual study map, not an SAP configuration screenshot or a guaranteed runtime sequence. Consult the lesson for implementation prerequisites and exceptions.

Code example

ABAP Code
===== MESSAGE MODEL =====Body: <Order>...</Order>Headers: SAP_ApplicationID=4711, Content-Type=application/xml  (sent to receivers by HTTP-based adapters, depending on allowed headers)Properties: p_country=DE, p_retryCount=0  (internal only) ===== EXPRESSIONS =====${header.SAP_ApplicationID} | ${property.p_country} | ${in.body} | ${date:now:yyyy-MM-dd}

Watch out

Common mistakes

  • Storing internal-only data in message headers can leak it to receivers, since headers travel with the message — use exchange properties for anything only the iFlow needs.
  • Building one giant monolithic flow instead of breaking logic into local integration processes makes the iFlow hard to read, test and reuse — structure large flows with local processes.
  • Hard-coding configuration values in the flow instead of externalizing them blocks reuse across environments — externalize parameters.
  • Copying large payloads into exchange properties multiplies memory usage — avoid storing full payload copies in properties.
  • Leaving properties and headers unnamed or inconsistently named makes flows hard to maintain — use a clear naming/prefix convention (e.g. p_, h_).

Do this

Best practices

  • Use exchange properties, not headers, for data that's internal to the iFlow run.
  • Break large flows into local integration processes for structure and reuse.
  • Externalize configuration values (URLs, credential aliases) rather than hard-coding them.
  • Avoid copying large payloads into properties; reference or reduce them instead.
  • Adopt a consistent naming convention (e.g. p_ for properties, h_ for headers).

In the interview

Interview angle

Questions: "Header vs property?", "What is a local integration process?", "How does a message flow through an iFlow?"
Strong answer: message model, channels, steps, structure, configuration.

Practice this lesson

Quick check

0 of 3 questions attempted

Question 1 of 3

What is the key characteristic of a Local Integration Process within a CPI iFlow?

Practise this in an interview

Answer in your own words and get instant feedback, the way an interviewer would judge it.

1What are the core concepts of CPI iFlows, and how would you explain them clearly in an SAP interview?

2A retail company is building its first CPI iFlows. Explain what an iFlow is and its message model.

See it in code

Each example starts from a requirement, shows the design, then the code step by step with a plain-language explanation of every part.

Was this lesson helpful?

Keep exploring

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.