C_CPI Integration Suite Development Practice Question
An integration developer is configuring a Message Mapping in SAP Cloud Integration to transform an inbound order document. The target structure requires a field named OrderPriority that must be populated with the value HIGH only when the source element OrderAmount exceeds 10000; otherwise MEDIUM. The developer wants the transformation logic to remain reusable and maintainable. Which approach should the developer use?
⚠ Common exam trap
The trap here is assuming that any post-mapping script or pre-mapping header assignment can replace conditional logic that belongs inside the Message Mapping itself.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Use a standard function such as ifWithoutElse or a condition expression inside the Message Mapping to assign HIGH or MEDIUM based on OrderAmount.
The order value threshold must be evaluated during the structural transformation, and Message Mapping condition expressions with standard functions accomplish that within a single reusable artifact. Keeping the logic in the mapping avoids extra flow steps, prevents duplication of target schema knowledge, and makes the transformation portable across integration flows that need the same priority rule.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Create an XSLT mapping that hard-codes OrderPriority to HIGH and rely on a router step to select MEDIUM messages.
Why it's wrong here
Hard-coding HIGH in the XSLT does not satisfy the conditional requirement, and a router step operates on message routing rather than on populating a target field value. This design also fragments logic across multiple flow steps and cannot reliably set MEDIUM for low-value orders. It would produce incorrect output for any order at or below the 10000 threshold.
- ✗
Add a Groovy script step after the mapping that parses the output XML and overwrites OrderPriority.
Why it's wrong here
A Groovy script placed after the mapping does work functionally, but it splits transformation logic across two artifacts and makes the mapping harder to reuse and maintain. The requirement explicitly favors a reusable, maintainable design, which is better served inside the mapping itself. Post-processing scripts also duplicate structural knowledge of the target schema and increase regression risk whenever the mapping changes.
- ✗
Configure a Content Modifier before the mapping to set OrderPriority as a header, then map the header to the target field.
Why it's wrong here
A Content Modifier cannot evaluate the source element OrderAmount conditionally against a threshold; it sets static values or expressions. Placing it before the mapping also means the source payload is not yet parsed by the mapping runtime, so the conditional logic based on OrderAmount cannot be applied correctly. This approach would not produce HIGH versus MEDIUM dynamically.
- ✓
Use a standard function such as ifWithoutElse or a condition expression inside the Message Mapping to assign HIGH or MEDIUM based on OrderAmount.
Why this is correct
Message Mapping supports standard functions and condition expressions that can evaluate source values and return different constants, which is exactly the requirement. Implementing the threshold logic directly in the mapping keeps the transformation self-contained, reusable across integration flows, and easy to maintain. It also avoids extra runtime steps and keeps the mapping artifact as the single source of truth for the target structure.
About these practice questions
Courseiva writes every C_CPI question from scratch — 218 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official SAP exam blueprint
This C_CPI practice question is part of Courseiva's free SAP certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the C_CPI exam.