C_CPI Integration Suite Development Practice Question
An integration developer is configuring a Message Mapping in SAP Cloud Integration. The source message contains a repeating node named Items, and the target structure requires a single TotalAmount element that sums the Price values of all Items. The developer wants the mapping to remain maintainable and avoid writing custom Java code. Which approach should the developer use?
⚠ Common exam trap
The trap here is assuming that aggregation over repeating nodes requires custom scripting or a user-defined function, when the mapping editor already provides standard functions such as sum.
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 the standard function sum in the Message Mapping to aggregate the Price values of the repeating Items node.
The standard sum function in the Message Mapping editor is purpose-built for aggregating repeating numeric source nodes into a single target value. Applying it to the Price elements of the repeating Items node produces the required TotalAmount declaratively, without Groovy scripts or user-defined functions. This keeps the mapping readable, reusable, and aligned with the requirement to avoid custom code.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use a Groovy script step after the mapping to iterate over the target payload and compute the sum.
Why it's wrong here
A Groovy script placed after the mapping would operate on the already-mapped target payload, requiring additional code and maintenance. The scenario explicitly asks to avoid custom Java or scripting. This approach also separates the logic from the mapping definition, making it harder to understand and reuse, and it does not leverage the built-in mapping functions designed for aggregation.
- ✗
Create a user-defined function in the mapping that recursively traverses the Items node and adds each Price.
Why it's wrong here
A user-defined function is a valid mapping feature, but implementing recursive traversal and summation manually is unnecessary because the standard sum function already handles this. The scenario asks to avoid custom code where possible and keep the mapping maintainable. Writing a custom function increases complexity and maintenance overhead compared to using the built-in aggregation function.
- ✓
Use the standard function sum in the Message Mapping to aggregate the Price values of the repeating Items node.
Why this is correct
The Message Mapping editor provides a standard aggregation function called sum that can be applied to a repeating source node to produce a single aggregated value. By connecting the Price child of the repeating Items node to the TotalAmount target and applying sum, the mapping computes the total without custom code, keeping the mapping declarative and maintainable as required by the scenario.
- ✗
Configure a Content Modifier before the mapping to concatenate all Price values into a single string.
Why it's wrong here
A Content Modifier manipulates headers, properties, or the body but cannot perform numeric aggregation over repeating XML nodes. Concatenating price values into a string would not produce a numeric sum and would require further parsing. This approach is technically incorrect for computing a total and does not satisfy the requirement of a maintainable, code-free mapping solution.
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.