C_CPI Integration Suite Development Practice Question
An integration developer is configuring a Message Mapping in SAP Cloud Integration. The target structure requires a single element named TotalPrice that must contain the sum of all Price values present in a repeating source node named Items. Which mapping construct should the developer use to produce this target value?
⚠ Common exam trap
The trap here is assuming that any mapping function can automatically iterate a repeating node, when in fact aggregation requires explicit context-aware handling.
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
✓
A user-defined function applied in a mapping with context handling over the repeating Price node
Producing a single aggregated value from a repeating source node requires mapping logic that evaluates the repeating node as a context and then applies arithmetic across all its occurrences. Standard direct mappings and value mappings are incapable of summation, and Content Modifier operates outside the mapping structure entirely. A user-defined function with the appropriate context handling performs the accumulation and writes the result to the single target element.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
A user-defined function applied in a mapping with context handling over the repeating Price node
Why this is correct
Summing values from a repeating source node requires a function whose input is evaluated per context and then aggregated. A user-defined function that receives the Price queue as its context can iterate the values and return the arithmetic total, which is then written once to TotalPrice. Standard graphical functions cannot natively sum a repeating node without such context-aware logic, so this is the correct construction.
- ✗
A Content Modifier that sets TotalPrice as a property using an XPath expression on the payload
Why it's wrong here
A Content Modifier manipulates headers, properties, and the body, but it operates on the message context rather than participating in the graphical mapping of source to target fields. Setting a property does not populate the mapped target element TotalPrice in the output structure. The mapping step itself would still leave TotalPrice empty, so the requirement is not met.
- ✗
A value mapping artifact that maps each Price value to a corresponding TotalPrice value
Why it's wrong here
Value Mapping translates discrete codes, such as country or currency codes, from one agency's representation to another. It has no arithmetic capability and cannot accumulate numeric values across a repeating node. Using it here would require pre-enumerating every possible price, which is impossible. It solves a code-translation problem, not an aggregation problem, so it is the wrong construct.
- ✗
A one-to-one mapping from the first Price element to TotalPrice
Why it's wrong here
A direct one-to-one mapping copies only the value of the first Price occurrence into TotalPrice. Because the source node repeats, the remaining Price values are silently ignored, so the target never reflects the full order. This approach also produces no aggregation logic at all, meaning any change to the number of line items would not influence the result. It therefore fails the requirement for a summed total.
About these practice questions
This C_CPI question is part of Courseiva's 218-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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.