Overview
In SAP CPI Hands On – Exercise 1, we will focus on understanding and implementing the Content Modifier and Message Converter steps in SAP Cloud Platform Integration (CPI). These components play a vital role in message processing, transformation, and routing within an integration flow (iFlow).
Content Modifier & Converter in SAP CPI
In SAP CPI (Cloud Platform Integration), a Content Modifier is a crucial integration flow step used to dynamically change message content, headers, and properties (like adding data, transforming formats, or setting values) for message routing or system integration, allowing for flexible message manipulation within the IFLOW by editing headers, properties, and the body itself.
A content modifier shall help you to modify the incoming message or payload, by changing its content that are involved in Message Processing (i.e., Message Header, Message Exchange Property, or Message Body).
Now let us create 2 different Content modifiers as per below :

Before we proceed with our tutorial, we would like to give you an opportunity to join our ZAPYard’s learning community where we have more than 35 groups and more than 1850 real SAP Consultants interacting with each other daily. Only SAP topics and not BS. Else, they will be banned from the community without warning. 👇👇👇👇
If you want to be part of ZAPYard’s Discussion Community, please feel free to check the below Link. We Ask, Answer, Help and Learn Together. There are more than 35 groups from different topics like Generative AI, SAP Joule, CAPM, BTP, RAP, BPT, Fiori, iRPA, CAI, CPI, PI/PO, ABAP on HANA, SAPUI5, SAP Build, SAP Adobe Forms, ChatBots, SAC etc. Join any group of your interest and interact with our Community.
Join ZAPYard’s WhatsApp Community – Ask, Answer, Propose & Defend SAP Topics
HTTPS Adapter:

Content Modifier -1
Add property parameter to be used in main content modifier

WRITE Variables:
Add two variable one is Global and local variable
GlobalUser1—-//User2———-Mark as Global Scope
LocalUser1—-//User1

Content Modifier 2:


Variable created by IFLOW can be seen in operation tab

Number Range created manually in Operation tab

Add Custom body in body section of content modifier

Test from POSTMAN with below Input

Body Section is modified:

Header section is added with parameter:

So, in response header you can see all parameters being created.
Now let us create a different IFLOW with content modifier and converter as per below where we will modify the actual data payload. Here we will manipulate and format data within an Integration Flow(IFlow).
Converters are specialized message transformers used to change the format of the message payload. Standard converters include:
- XML to JSON Converter: Transforms XML data into JSON format.
- JSON to XML Converter: Converts a JSON payload into XML, often required before calling OData services.
- XML to CSV Converter: Transforms a simple XML structure into a Comma Separated Values (CSV) file. Note that it generally does not support complex, deeply nested XML structures.
- CSV to XML Converter: Converts a CSV file into an XML format for further processing.
- EDI to XML / XML to EDI: Used in B2B scenarios to convert Electronic Data Interchange (EDI) formats to XML and vice versa.
Content Modifier vs Converters Comparison
| Primary Use | Modify headers, properties, and body content. | Change data format (e.g., XML to JSON). |
| Scope | Manipulates metadata and payload. | Focuses strictly on payload transformation. |
| Common Use Case | Setting a dynamic endpoint URL or storing a value for a later step. | Converting a JSON response from a REST API to XML for mapping. |

Input payload in CSV/text format:-
BookID,Count
A1000,40
A2000,67
A3000,90
A4000,32
We will not use any adapter here, instead will use simulation to simulate different steps.

Content modifier 1:

CSV to XML Converter


XML schema: add xsd for xml
Path: provide path till field values
Simulation o/p:

XML to JSON Converter

Simulation o/p:

JSON to XML Converter

Simulation o/p:

XML to CSV Converter

Simulation o/p:

If you found this article helpful, we’d love to hear from you! Share your thoughts, questions, or experiences in the comments below—your feedback is always welcome and helps us craft even more valuable content for your SAP CPI. Stay tuned for the next part in the series, where we’ll continue exploring essential tools and techniques to level up your SAP development skills.
Please follow our LinkedIn Page, LinkedIn Group , Facebook Page, Facebook Group, Twitter & Instagram.
Do not forget to SUBSCRIBE to our YouTube Channel for Free Courses and Unconventional Interesting Videos.
Do join ZAPYard’s Learning Community.
- SAP Cloud Platform Integration (CPI) Part 1 – Introduction
- SAP Cloud Platform Integration (CPI) Part 2 – SAP BTP Tools and Features Overview
- SAP Cloud Platform Integration (CPI) Part 3 – SAP BTP Trial Account Setup and Registering CPI Service
- SAP Cloud Platform Integration (CPI) Part 4 – SAP CPI WebIDE Tour
- SAP Cloud Platform Integration (CPI) Part 5 – Build and Deploy your First iFlow
- SAP Cloud Platform Integration (CPI) Part 6 – SAP CPI Helper Chrome Extension for Easy Debugging
- SAP Cloud Platform Integration (CPI) Part 7 – Palette Functions 1 – Participants, Process, Events
- SAP Cloud Platform Integration (CPI) Part 8 – Palette Functions 2 – Message Transformers
- SAP Cloud Platform Integration (CPI) Part 9 – Palette functions 3 – External and Local Call
- SAP Cloud Platform Integration (CPI) Part 10 – Palette functions 4 – Message Routing
- SAP Cloud Platform Integration (CPI) Part 11 – Palette functions 5 – Message Mapping
- SAP Cloud Platform Integration (CPI) Part 12 – Palette functions 6 – Data Store and Security
- SAP Cloud Platform Integration (CPI) Part 13 – Palette Functions 7 – CPI Value Mapping
- SAP Cloud Platform Integration (CPI) Part 14 – CPI Event Mesh Connectivity and Setup
- SAP Cloud Platform Integration (CPI) Part 15 – Parameter Externalization
- SAP Cloud Platform Integration (CPI) Part 16 – Common Groovy Script codes
- SAP Cloud Integration Platform (CPI) Part 17 – Batch Processing in HTTP Adapter
- SAP Cloud Integration Platform (CPI) Part 18 – Simulation Feature for IFlow Testing
- SAP Cloud Platform Integration(CPI) Part 19 – SAP CPI Project IFlow Walkthrough 1 – Replicate Sales Pricing Condition records from ECC to S4HANA – Requirement and Connectivity setup
- SAP Cloud Platform Integration (CPI) Part 20 – SAP CPI Project IFlow Walkthrough 2 – Replicate Sales Pricing Condition records from ECC to S4HANA – IFlow development
- SAP Cloud Platform Integration (CPI) Part 21 – Automate the KeyStore Certificates/Keypair Renewal through Cloud Integration API
- SAP Cloud Platform Integration (CPI) Part 22 – Understanding SOAMANAGER configuration for Outbound SOAP Webservices to CPI
- SAP Cloud Platform Integration (CPI) Part 23 – Step-by-Step Guide to Mail Adapter Configuration with Attachments
- SAP CPI Hands On – Exercise 1












English (US) ·