SAP CPI TRICK
MASTERING THE
CONTENT MODIFIER
LIKE A PRO
Tips, use cases, and power features for every
CPI developer.
Nanda Kishore Reddy #SAP_CPI
Why should you care ?
Content Modifier is not just a step…
It's your shortcut to dynamic headers, reusable
variables, and smart message handling inside
iFlows.
Use it right = Less Groovy, less pain!
Nanda Kishore Reddy #SAP_CPI
The Four Building Blocks
Content Modifier has 4 key parts:
Each one = superpower 💪
Let’s break them down !!
Nanda Kishore Reddy #SAP_CPI
1. General Tab
Always name it meaningfully
SetAuthHeaders, PrepareJSON, ExtractFields
Helps in debugging via traces
Tip: Prefix with action verbs 💡
Nanda Kishore Reddy #SAP_CPI
2. Message Headers
Headers travel to external systems.
Use them when your receiver needs
info.
🧠 Bonus: Don’t forget to delete unused headers!
Nanda Kishore Reddy #SAP_CPI
3. Exchange Properties
Properties stay inside the iFlow
Best for internal flags, temp storage, or
decision branches.
Use when:
✅ You don’t want to leak values to external APIs
✅ You’re storing runtime config
Nanda Kishore Reddy #SAP_CPI
4. Message Body
Body = Actual payload
You can:
✍️ Overwrite with constant
🔁 Modify using expressions
🧠 Tip: Leave blank to keep the existing body.
Nanda Kishore Reddy #SAP_CPI
Mastering Date Formatting with Camel
Want to format today’s date?
Use these:
Nanda Kishore Reddy #SAP_CPI
Use Java Functions Inside Expressions
You can apply Java functions directly
inside headers and body
No scripting.
🚀 Just clean config magic.
Nanda Kishore Reddy #SAP_CPI
Let’s Build Together
Want more SAP CPI tricks like this ?
Comment “USEFUL” if you learned something!
Connect Now !