SAP Cloud Platform Integration (CPI) has introduced a “format by example” feature that lets integration specialists generate mapping logic from sample data rather than writing expression scripts manually. Within days of its rollout, teams are reporting faster onboarding, fewer mapping errors, and smoother handoffs between business analysts and developers. This article breaks down what the feature does, how to apply it in a real‑world scenario, and what the immediate implications are for SAP integration projects.
The option appears as a toggle in the Mapping Designer. When enabled, users paste an example of the source payload and the desired target structure. CPI then auto‑creates the mapping rules, inferring data types, delimiters, and field transformations. The result is a ready‑to‑run integration flow that can be fine‑tuned if needed.
Traditional mapping in CPI requires writing Groovy scripts or configuring function blocks for each field. “Format by example” cuts that time by:
MessageMapping objects.Yes, but there are practical limits. The engine handles hierarchical XML, JSON, and CSV structures well when the example reflects the typical shape of the data. For highly dynamic schemas—such as optional repeating nodes—a hybrid approach works best: start with “format by example” to capture the majority of fields, then add custom scripts for the edge cases.
Below is the recommended workflow for teams adopting the feature:
Adopting “format by example” reshapes project timelines. Teams report a 30‑40 % reduction in effort for the mapping phase, freeing resources for downstream activities such as exception handling and performance tuning. Moreover, the feature aligns with agile integration practices: rapid prototyping replaces lengthy specification documents, and iterative validation becomes the norm.
Current limitations include:
Workarounds involve pre‑processing the source with a lightweight script or manually adding the conditional branches after the auto‑generated mapping.
If your organization already uses SAP CPI, enable “format by example” in a sandbox environment, run a pilot with a non‑critical iFlow, and measure the time saved. Document any manual adjustments needed, then expand the approach to core integrations. For new CPI adopters, consider the feature as a baseline capability; it can shorten the learning curve for junior developers and improve overall data quality.
Geographical Map of Massachusetts and Massachusetts Geographical Maps