C_CPI Integration Suite Development Practice Question
An integration developer is troubleshooting an integration flow that uses a Message Mapping step. The source message contains a repeating node called Items with up to 500 entries, and the target structure requires an aggregated total. The mapping currently uses a standard 1:1 mapping on the repeating node, producing a separate target segment per item instead of a single total. Which mapping construct should the developer use to produce the aggregated total?
⚠ Common exam trap
The trap here is reaching for a context-manipulation function such as removeContexts when the requirement is arithmetic aggregation across a repeating node.
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 sum function on the Items/Amount node and map the result to the target total field.
Aggregating values from a repeating source node into a single target value is done with the sum function in the message mapping editor. Applied to the Amount node within the Items context, sum returns one numeric total across all occurrences, which maps cleanly to the target total field. Context changes, removeContexts, and sort manipulate scope or order but do not perform arithmetic aggregation, so they cannot produce the required total.
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 the removeContexts function on the Items node and map the value to the target total field.
Why it's wrong here
removeContexts clears the context of a node so it can be used in a broader scope, but it does not sum values. Mapping a cleared-context node to the target would produce a single value taken from one occurrence rather than an aggregate of all 500 entries. The function is a scoping tool, not an arithmetic aggregation function.
- ✓
Use the sum function on the Items/Amount node and map the result to the target total field.
Why this is correct
The sum function in the message mapping editor aggregates all values in the current context of the source node. When applied to the Amount node inside the repeating Items context, it returns a single numeric total across all 500 entries, which can be mapped directly to the target total field. This is the standard aggregation construct for this requirement.
- ✗
Use a one-to-many mapping with a context change on the Items node.
Why it's wrong here
A context change resets the queue and is used to control how repeating nodes are grouped, but it does not by itself compute a sum. One-to-many mapping is used to create multiple target nodes from a single source node, which is the opposite of aggregating many source nodes into one target value. Applying it here would still yield per-item output, not a single total.
- ✗
Use the sort function on the Items node and map the first occurrence to the target total field.
Why it's wrong here
Sorting reorders the repeating entries but does not combine their values. Mapping the first occurrence after sorting yields only one item's amount, not the total across all entries. This would produce an incorrect total and is unrelated to aggregation, so it fails the requirement even though the mapping would execute without error.
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.