C_CPI Integration Suite Development Practice Question
An integration developer is creating an integration flow that must transform an incoming XML message into a different XML structure. The mapping requires conditional logic: if the source element OrderType equals 'EXPRESS', the target must include an ExpressFee element; otherwise, the element must be omitted. The developer wants to implement this declaratively in the Message Mapping editor. Which feature should the developer use?
⚠ Common exam trap
The trap here is assuming that a user-defined function returning an empty value omits the element, when in fact it creates an empty element; only a conditional function such as ifWithoutElse omits it entirely.
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
✓
Apply the standard ifWithoutElse function to the ExpressFee target element with a condition on OrderType.
The ifWithoutElse standard function is designed for conditional element creation in Message Mapping. When the condition on OrderType evaluates to true, the ExpressFee element is created; otherwise, it is omitted. This declarative approach avoids custom functions and duplicate mappings, directly fulfilling the requirement to conditionally include a target element based on source data.
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 Content Modifier after the mapping to delete the ExpressFee element when OrderType is not 'EXPRESS'.
Why it's wrong here
A Content Modifier operates on headers, properties, or the body but cannot selectively delete a specific XML element based on a condition. Removing an element would require XSLT or a script, which contradicts the declarative approach requested. This option does not provide a viable mechanism for conditional element omission and is therefore incorrect for the scenario.
- ✗
Configure a Router step before the mapping to branch based on OrderType and use two separate mappings.
Why it's wrong here
A Router step can branch flows, but using two separate mappings duplicates logic and increases maintenance. The scenario asks for a declarative solution within the Message Mapping editor. While routing is a valid integration pattern, it is not the mapping feature intended for conditionally including a single target element, and it does not satisfy the requirement to implement the logic inside the mapping.
- ✓
Apply the standard ifWithoutElse function to the ExpressFee target element with a condition on OrderType.
Why this is correct
The standard ifWithoutElse function in the Message Mapping editor evaluates a condition and creates the target element only when the condition is true, omitting it otherwise. Applying it to ExpressFee with a condition comparing OrderType to 'EXPRESS' precisely implements the required behavior declaratively. This is the intended use of the function and avoids custom code while meeting the conditional inclusion requirement.
- ✗
Create a user-defined function that returns an empty string when the condition is not met and map it to ExpressFee.
Why it's wrong here
A user-defined function can implement conditional logic, but returning an empty string still produces an ExpressFee element with empty content rather than omitting it. The scenario requires the element to be omitted when the condition is false. This approach also involves custom code, which is less maintainable than using a standard mapping feature designed for conditional element creation.
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.