Courseiva

C_CPI Integration Suite Development Practice Question

An integration developer is creating an integration flow in SAP Cloud Integration that receives an IDoc from SAP S/4HANA and must transform it into a JSON structure for a third-party logistics provider. The developer has already imported the IDoc XSD into the integration flow's resources. Which mapping approach should be used to convert the IDoc XML into the target JSON?

⚠ Common exam trap

The trap here is believing the XML-to-JSON converter also restructures field names and hierarchy, when it only changes the serialization syntax.

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 Message Mapping followed by an XML-to-JSON converter step

Converting an IDoc into a partner-specific JSON document involves two distinct concerns: reshaping the IDoc hierarchy into the target structure, and serializing XML into JSON syntax. A Message Mapping handles the structural transformation using the imported IDoc XSD, producing intermediate XML that reflects the desired layout, and the XML-to-JSON converter then emits valid JSON. Mapping straight to JSON, or converting the raw IDoc without restructuring, does not produce the contracted format.

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 Message Mapping followed by an XML-to-JSON converter step

    Why this is correct

    The IDoc arrives as XML conforming to the imported XSD, so a Message Mapping can graphically transform it into an intermediate XML structure that matches the desired JSON hierarchy. An XML-to-JSON converter then serializes that XML into JSON for the logistics provider. This two-step approach keeps the structural transformation explicit and testable while letting the converter handle serialization syntax.

  • ✗

    An XML-to-JSON converter applied directly to the raw IDoc payload

    Why it's wrong here

    Applying the converter directly to the raw IDoc XML would yield a JSON document that mirrors the IDoc's own element and segment structure, not the logistics provider's contract. The converter performs syntax conversion, not semantic restructuring, so field names and hierarchy would be wrong. A mapping step is required first to reshape the content into the target layout before serialization.

  • ✗

    A Message Mapping whose target is defined by a JSON schema artifact

    Why it's wrong here

    Message Mapping operates on XML source and target structures defined by XSD or WSDL artifacts; it does not map directly into a JSON schema. The mapping editor cannot express JSON arrays and objects as first-class target nodes. Consequently this approach is not supported in the graphical mapping editor and would not produce the required JSON payload.

  • ✗

    A single XSLT mapping that outputs JSON directly as text

    Why it's wrong here

    XSLT is designed to transform XML into XML, HTML, or plain text, and producing well-formed JSON through string concatenation is error-prone and hard to maintain. Escaping rules, numeric versus string typing, and array semantics are not natively handled. While technically possible in narrow cases, it bypasses the platform's supported JSON serialization path and is not the recommended approach for this scenario.

About these practice questions

One of 218 original C_CPI practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.