Courseiva

C_CPI Integration Suite Development Practice Question

An integration developer is configuring a Message Mapping in SAP Cloud Integration. The target structure requires an element `CustomerID` that must combine the source fields `Region` and `Number` into a single string. The mapping must be reusable in several integration flows. Which approach should the developer use?

⚠ Common exam trap

The trap here is assuming any custom logic must be implemented in a Groovy script step, when SAP Cloud Integration Message Mapping natively supports reusable User-Defined Functions.

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

✓

Create a User-Defined Function in the mapping with parameters for Region and Number, and call it from the target element.

The requirement is a custom, reusable payload transformation inside a Message Mapping. A User-Defined Function is the native mapping construct for custom logic with parameters and can be saved with the mapping artifact, making it reusable across integration flows. Other approaches either place logic outside the mapping or use artifacts not designed for dynamic concatenation.

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 a User-Defined Function in the mapping with parameters for Region and Number, and call it from the target element.

    Why this is correct

    A User-Defined Function encapsulates the concatenation logic and can be stored in the mapping artifact, then reused wherever the mapping is referenced. It keeps the transformation logic inside the mapping, avoids external dependencies, and supports parameters so Region and Number are passed dynamically. This is the standard way to implement custom reusable logic in SAP Cloud Integration Message Mapping.

  • ✗

    Use a Groovy script step after the mapping to concatenate Region and Number in the target payload.

    Why it's wrong here

    A Groovy script can concatenate values, but placing it after the mapping means the mapping must first produce placeholder values, and the script then modifies the target XML directly. This scatters transformation logic across two artifacts, is harder to maintain, and does not satisfy the requirement of a reusable mapping component. The mapping itself should own the transformation.

  • ✗

    Define a Value Mapping artifact that maps each Region and Number combination to a CustomerID.

    Why it's wrong here

    Value Mapping is designed for fixed code-list translations, not for concatenating arbitrary values. Because Region and Number can combine in many ways, a value mapping would need an impractically large entry set and would fail for new combinations. It also does not perform string concatenation, so it cannot produce the required CustomerID format.

  • ✗

    Add a Content Modifier step before the mapping to write the concatenated value into the message header, then map the header to CustomerID.

    Why it's wrong here

    A Content Modifier can set headers or properties, but it cannot concatenate two source payload fields dynamically without an expression, and headers are not part of the mapping source structure. This adds an unnecessary step and breaks the separation between routing metadata and payload transformation. It also does not make the logic reusable across flows in a clean way.

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 →

How Courseiva writes practice questions · Editorial policy

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.