SK SKYVVA Documentation

20. Move ERP Customer Integration from SAP PO to CPI with SKYVVA V2

Overview

Move an existing ERP → SAP PI/PO → Salesforce customer integration to SAP Cloud Integration (CPI) while reusing its SKYVVA V2 interface. Preserve the V2 target schema, customer matching key, and agreed business rules so Salesforce continues receiving the same customer information.

The SKYVVA interface stays V2. In the CPI SkyvvaSalesforce receiver, select Processing Type = Skyvva, Skyvva API Version = V2, and Skyvva API = V4/integrate. The V4 name identifies the adapter operation/endpoint used to process the V2 request; it does not require an interface version conversion.

For the main walkthrough, keep a Message Mapping step because ERP still sends its original customer structure. Either import the supported PO mapping or create a new CPI mapping from the approved rules. If you want the business mapping maintained in SKYVVA instead, use the conditional alternative below before changing this flow. Set Integration and Interface on the CPI receiver. This walkthrough also retains fromSystem and targetObject in the receiver input; Configure the V2 Receiver with V4/integrate explains how these routing values are used.

The DEBMAS06 Account example uses illustrative names and values. DEBMAS06 is the SAP customer-master message structure; a Salesforce Account represents the customer business record. Obtain the existing mapping, schemas, dependencies, and a sanitized ERP request with its actual PO result from the interface owner, then validate the migration in a sandbox.

How Migration from SAP PI/PO to CPI Works

Migration moves the integration’s connectivity, routing, transformations and operational behavior to Cloud Integration. Start by recording the working PO configuration and business results, then choose the appropriate approach:

ApproachWhat it provides
SAP Migration AssessmentEvaluates the existing PI/PO objects and estimates readiness and effort; it does not perform the migration
SAP Migration ToolingGenerates CPI iFlows for supported objects and patterns; manual configuration and adjustments can remain
ESR mapping importReuses supported Message Mappings without migrating the entire interface
Manual implementationBuilds the CPI flow and recreates or relocates the required business rules when reuse is unsuitable

Migration Assessment and Migration Tooling are available through SAP Integration Suite, with connectivity to the source PI/PO system. Their availability depends on the service plan, source-system version and supported features.

For SKYVVA, review the PO connector and module settings separately. SAP’s assessment does not analyze custom-adapter internals or parameter-level behavior; do not assume it converts the SKYVVA PO connector into the CPI SkyvvaSalesforce adapter. Configure the CPI adapter and the SKYVVA interface for the agreed payload and mapping mode.

This guide shows how to prepare that SKYVVA path and verify its results. If SAP tooling has already generated an iFlow, apply the relevant SKYVVA configuration and checks to it without discarding required routing or recovery steps. Otherwise, build the flow as described below. In either case, validate mapping, authentication, business results, failures and actual ERP delivery before cutover; retain a rollback plan.

If You Do Not Want to Reuse the Existing PO Mapping

Choose where the required business rules will run. Not reusing the old mapping file does not remove the need to map customer fields and preserve matching, conditions, lookups and record relationships.

What you wantWhat to doWhere to continue
Reuse the existing PO mappingImport supported content, or upload a prepared CPI artifact, then validate itPrepare the Mapping through Compare the Mapping Results
Create a new mapping in CPI insteadUse approved source/target schemas and complete business rules to create a fresh CPI mapping; no PO mapping import or ESR connection is requiredRecreate the mapping without importing the PO mapping; skip ESR import
No business Message Mapping in CPIHave the SKYVVA owner verify the installed package’s V2 input/mapping contract and implement the required source-to-Account rules thereMaintain business mapping in SKYVVA — conditional V2 alternative

The first two choices use the flow and V2 Account payload shown in this guide. The third changes the receiver-input contract and must be validated separately. Selecting V4/integrate does not by itself enable arbitrary raw ERP payloads or create SKYVVA mappings.

Before You Start

Start by obtaining the existing interface definitions and a sanitized request/result pair from the PO owner in Review the Existing PO Mapping. If you do not want to import the PO mapping, or cannot access PO/ESR directly, use a CPI mapping prepared by a developer or create a fresh mapping from approved schemas and complete rules in Prepare the Mapping. Skip ESR import for those routes. Complete the sandbox checks in Reuse the Existing SKYVVA V2 Interface through Verify Creation and Update, then the ERP rehearsal and cutover checks in Validate ERP Delivery and Complete Cutover.

Have the administrators prepare:

If you lack permission, ask the responsible administrator or developer to perform that step and return its result. The inline values illustrate the procedure; use your approved interface artifacts and actual execution results to validate the migration.

Migration Scenario

Move the existing sender-to-SKYVVA integration from PO to CPI while preserving its business results:

Current: Sender → SAP PI/PO → SKYVVA → Salesforce
Target:  Sender → SAP Cloud Integration → SkyvvaSalesforce adapter → SKYVVA → Salesforce

In CPI, reuse or recreate the business mapping where needed, or use the agreed SKYVVA mapping configuration. The later steps use DEBMAS06 customer data and Account records as an example; substitute your actual payload and interface settings.

1. Review the Existing PO Mapping

Before moving an interface to CPI, review the current PO mapping and the data sent to SKYVVA. Keep the required business rules, routing and processing behavior when preparing the new flow.

Ask the PO owner for:

You can reuse supported PO mapping content, create a new CPI mapping, or maintain the appropriate mappings in SKYVVA. The following sections explain the available choices. Check the complete processing sequence; importing one mapping does not migrate channel modules or delivery behavior.

The screenshot below shows a PO mapping from DEBMAS06 to an ISTRUCTURE_Account target, including fromSystem and targetObject. Use your actual schemas and routing values; confirm the SKYVVA interface version separately.


image

Figure 1. Example PO mapping with the V2 routing fields fromSystem and targetObject.

2. Reuse the Existing SKYVVA V2 Interface

Keep the existing V2 interface, mappings, matching key and processing settings; no interface version conversion is required. Confirm with the interface owner that it is ready for inbound Account processing and that the receiver user can access the Integration and Interface. Record its Integration/Interface names for the CPI receiver and validate the migrated business results.

Examples use Integration SAP Cloud Integration, Interface Account_ERP_V2_In and matching field ERP_Customer_ID__c. Substitute your existing values, preserve leading zeros and confirm access to the required fields.

ERP_Customer_ID__c is the example Salesforce Account Text field with External ID enabled. Keep the key as text in the source and target definitions to preserve leading zeros. It stores the ERP customer number used for Upsert: update the matching Account, or create one when no match exists. Confirm that the interface is configured for Upsert using that field; enabling External ID alone does not select the operation. Use your existing External ID field consistently in the mapping and SKYVVA matching configuration. Record the approved behavior for missing, blank and null values so the migration preserves it.

3. Compare the Source and Target Contracts

A source or target contract defines the field names, data types and message structure that a system sends or accepts. Compare the ERP input with the SKYVVA input so the CPI mapping preserves the same customer information. Use the request format expected by the existing flow and keep its structure consistent with the SKYVVA interface configuration.

3.1 DEBMAS06 Request Before Mapping

Use one sanitized ERP request for the initial PO and CPI comparison. Keep the same customer data in both tests. If you use a new customer key to test Account creation, use that key in both requests and in the expected result. This example reads customer fields from /DEBMAS06/IDOC/E1KNA1M:

FieldExample value
KUNNR0000006000
NAME1Global Tech Solutions GmbH
ORT01Munich
TELF1+49-89-1234567

Use the parent customer fields for Account mapping, not fields from nested E1KNVKM contact segments. Retain your actual source structure if it differs.

The source definition and example input support this exercise. The input contains one customer and nested contact segments; this walkthrough maps only the parent customer to Account. Use your actual ERP definitions and request for migration.

3.2 Expected Output of the Account Mapping

The source customer fields in DEBMAS06 Request Before Mapping use SAP names such as KUNNR and ORT01, while the V2 interface expects Account fields such as ERP_Customer_ID__c and BillingCity. The CPI Message Mapping converts those fields into the agreed V2 structure. Use the existing PO output as the reference. The CPI mapping screenshot uses target root ISTRUCTURE_Account_ERP_V2_In; the earlier PO screenshot shows ISTRUCTURE_Account. Retain the approved target contract for your flow. In the example below, fromSystem identifies the SKYVVA Integration and targetObject identifies the Interface:

<ns1:ISTRUCTURE_Account_ERP_V2_In xmlns:ns1="http://soap.sforce.com/schemas/class/skyvvasolutions/IServices">
  <ns1:fromSystem>SAP Cloud Integration</ns1:fromSystem>
  <ns1:targetObject>Account_ERP_V2_In</ns1:targetObject>
  <ns1:Account>
    <ns1:ERP_Customer_ID__c>0000006000</ns1:ERP_Customer_ID__c>
    <ns1:Name>Global Tech Solutions GmbH</ns1:Name>
    <ns1:Phone>+49-89-1234567</ns1:Phone>
    <ns1:BillingCity>Munich</ns1:BillingCity>
  </ns1:Account>
</ns1:ISTRUCTURE_Account_ERP_V2_In>

Map each parent customer record to one Account, using these example field assignments:

Customer fieldAccount field
KUNNRERP_Customer_ID__c
NAME1Name
ORT01BillingCity
TELF1Phone

For multiple customers, repeat Account under the same root and keep fromSystem and targetObject once. In the example source, repeat complete IDOC records under DEBMAS06, each with one E1KNA1M and a distinct customer key. Retain the schema, namespaces, field names and rules expected by your existing interface. The XML above is illustrative; use your actual source/target definitions to prepare the mapping.

4. Prepare and Migrate the PO Mapping

Reuse supported PO mapping content, prepare a new CPI mapping, or evaluate the conditional SKYVVA mapping alternative below. Preserve the required business rules and compare the results with PO.

4.1 Prepare the Mapping

Ask the PO/CPI developer to review custom functions, libraries, parameters, lookups, value mappings and channel-supplied values used by the mapping. Prepare supported equivalents in CPI where needed. Preserve the order of multiple transformations and any required routing; importing one mapping does not migrate the complete PO processing sequence.

Available materialApproach
Supported PO mapping and ESR accessImport from ESR below
Prepared CPI mapping artifactUpload the CPI-compatible ZIP
Approved schemas and complete business rulesCreate a new CPI mapping
Business mapping maintained in SKYVVAUse the conditional V2 alternative below

Upload an already prepared CPI mapping

Choose Add → Message Mapping → Upload in the CPI package. Upload the CPI-compatible ZIP, review its content, validate the output and deploy it. A PO transport archive is not automatically a CPI mapping ZIP.

Recreate the mapping without importing the PO mapping

Use the approved ERP source definition and the target definition generated from the existing SKYVVA interface. The target must match the root, namespace and Account fields expected by that interface; the embedded example definition illustrates Expected Output of the Account Mapping only. Reproduce the complete PO business rules and preserve one Account per source customer.


image

Figure 2. Example CPI source and target structures with repeating IDOC and Account records; the four field connections are not fully visible.

Maintain business mapping in SKYVVA — conditional V2 alternative

Confirm that the installed V2 interface accepts the structure and field names produced by the adapter’s converter. Keep or configure the SKYVVA mappings required for your payload, and verify that the incoming data populates the expected Salesforce fields.

Build Start → Request Reply → End without business Message Mapping. Supply routing through the agreed payload or supported channel fallbacks. The adapter still converts the input into V2 field-pair records; arbitrary raw DEBMAS compatibility must be verified.

Continue with Build the CPI Integration Flow, omitting mapping assignment. In Deploy and Test the CPI Flow through Validate ERP Delivery and Complete Cutover, compare the agreed receiver input and final business results rather than expecting the mapped XML in Compare the Source and Target Contracts. If the V2 contract cannot be verified, retain CPI mapping or consider a separately designed and validated V3 customer-payload approach.

For uploaded or recreated CPI mappings, skip ESR import and continue with Compare the Mapping Results.

Import from ESR

Enterprise Services Repository (ESR) stores the PO mapping and related definitions. If reusing a supported PO mapping, have the PO/CPI developer import it from ESR into CPI, review its dependencies and validate the output. Repository connectivity and access must be configured first.

Skip this step if you already prepared the CPI mapping. Continue with Compare the Mapping Results.

4.2 Compare the Mapping Results

Run the same sanitized request through the PO and CPI mappings. Compare the field values, leading zeros, record counts, routing, namespaces and any required conditions or lookups. Record intentional changes and resolve unexpected differences.

Keep the input, both actual outputs, mapping artifact ID and comparison result. Continue to Build the CPI Integration Flow once the output is accepted and the CPI mapping is deployed. For SKYVVA-owned mapping, compare the final business results using the alternative in Prepare the Mapping.

5. Build the CPI Integration Flow

Create a sandbox iFlow, for example DEBMAS_Accounts_HTTPS_Replay, with this sequence:

Sender (Replay Client) -- HTTPS --> Start
  → Message Mapping (Map DEBMAS to V2 Account)
  → Request Reply (Send Customer to SKYVVA)
  → End

Receiver branch:
Request Reply (Send Customer to SKYVVA) -- SkyvvaSalesforce --> Receiver (Salesforce)

The labels identify each component type and its name. Enter the names in parentheses in General → Name. Request Reply continues to End after the submission response.

For SKYVVA-owned business mapping, omit Message Mapping and its reference. Use the agreed source body from Prepare the Mapping.

For actual ERP delivery, prepare a separate IDoc flow using the same business processing and receiver settings. The HTTPS replay validates the payload path; it does not test ERP connectivity.


image

Figure 3. Example CPI HTTPS replay layout; resolve the visible Message Mapping warning before deployment.

5.1 Configure the ERP IDoc Sender and HTTPS Replay Flow

For ERP delivery, configure the IDoc sender with the administrators, including its endpoint, authentication and ERP routing. CPI’s IDoc adapter uses SOAP; an existing PO tRFC connection needs a supported SOAP/HTTP route or bridge.

For the separate Postman replay flow, use:

FieldReplay value
Sender adapterHTTPS
Address/training/debmas/accounts/replay
AuthorizationUser Role
User RoleESBMessaging.send, or the assigned inbound role
CSRF ProtectedFollow tenant policy; disable only for controlled sandbox replay where permitted

If CSRF protection remains enabled, fetch the required token and retain its associated session cookies when sending the POST. HTTPS replay tests the payload and receiver path; verify actual ERP delivery separately.

5.2 Configure the receiver connection

Use your approved Salesforce authentication configuration. For the Client Credential option used in the existing receiver tutorials:

Connection fieldValue
Authentication TypeOAuth2
OAuth2 FlowClient Credential
Login UrlActual Salesforce sandbox My Domain base URL
Client Credentialskyvva-training-client-credentials

The Salesforce administrator must enable Client Credentials for the approved OAuth application and assign its run-as integration user. The CPI administrator must deploy the credential alias in the same tenant as the iFlow. The alias stores the client ID and secret as User Credentials for this adapter; enter its name, not the secret, on the receiver connection.

Confirm the applicable SKYVVA inbound license is valid in the target organization and the user has the required package permissions; this route invokes SKYVVA processing, not the adapter's direct Salesforce option.

The current Integrate route also starts a Salesforce configuration-event subscription; have the administrator verify read/subscription access to /event/skyvvasolutions__Agent__e and TLS connectivity to api.pubsub.salesforce.com:7443. This subscription carries configuration notifications, not customer requests.

The CPI inbound caller's authentication is separate from this Salesforce receiver authentication.

5.3 Configure the V2 Receiver with V4/integrate

On the iFlow’s receiver connection to Salesforce, select SkyvvaSalesforce. Configure authentication in Connection using Configure the receiver connection, then open Processing; older screens may call it Skyvva.

FieldValue
Processing TypeSkyvva
OperationIntegrate
Skyvva API VersionV2
Skyvva APIV4/integrate
Apex Method, if shownPOST
Skyvva App Version, if shownActual installed Salesforce SKYVVA package version
IntegrationActual sandbox Integration name, for example SAP Cloud Integration
InterfaceActual sandbox Interface name, for example Account_ERP_V2_In
Structure Format, if shownLeave the existing setting

For CPI-owned mapping, keep the mapped legacy XML as the body. For SKYVVA-owned mapping, use the source body verified in Prepare the Mapping. Do not add an XML-to-JSON converter for this route. For this V2-through-V4 operation the adapter builds the JSON request internally. It converts the mapped Account XML into the field-pair records accepted by this V4 operation while retaining V2 processing semantics. Structure Format does not apply the V3 wrapped/custom JSON rules to this route. Keep the illustrated payload routing values for the main exercise and do not add extra Query Parameters.

Set Integration and Interface on the CPI receiver. A nonblank payload fromSystem or targetObject takes precedence over the corresponding receiver setting; when a payload value is missing, null or blank, the receiver setting is used. Keep both aligned. For older adapter versions, confirm support before relying on receiver settings alone; otherwise retain both routing values in the payload.

Save the receiver channel and iFlow. Complete the SKYVVA interface setup before deployment, and keep payload and channel fallback names aligned with Reuse the Existing SKYVVA V2 Interface. After changing SKYVVA mappings or interface settings, confirm the running adapter has loaded the changes or follow the supported reload/redeployment procedure before testing again. The fallback reads channel configuration; do not assume it adds a new HTTP-header override mechanism. Test any envelope change separately from the unchanged mapping comparison.

If the channel exposes additional method/format settings, keep the defaults for this supported V2-through-V4 operation. Its API selection controls the POST/JSON submission internally; the incoming mapping output remains XML.

Asynchronous submission: V4/integrate selects asynchronous processing for this path. Request Reply waits for the submission response; verify final SKYVVA processing and the saved Accounts in Verify Creation and Update. A merged response or CPI Completed status alone does not establish success for every customer.

The current adapter reads the target interface’s package size and can send several requests sequentially. Earlier accepted records are not rolled back if a later request fails. Retain per-customer results and reconcile them before replaying the complete source request. Package size limits record count, not payload bytes.

This uses SKYVVA's standard interface processing. The adapter's separate Processing Type = Salesforce path does not execute this SKYVVA interface.

If the V4 operation choices are missing, verify the installed adapter and the receiver configuration version. Use a supported build with the required capability and follow that release's upgrade instructions. SKYVVA V2, the V4 endpoint, and the Salesforce platform API version are distinct settings.


image

Figure 4. CPI receiver configured with API Version V2 and V4/integrate for the existing SKYVVA V2 interface.

6. Deploy and Test the CPI Flow

Confirm the mapping, routing names, credentials and V2 / V4/integrate receiver are ready. Use the accepted mapping comparison from Prepare and Migrate the PO Mapping and an unused sandbox customer key to test creation; reuse that key for the update test. If the Account already exists, record its ID; that test verifies an update. To verify creation, use a new customer key in the source request and expected result.

  1. Deploy the required adapter/mapping artifacts and the HTTPS replay iFlow. Include Message Mapping only when business mapping runs in CPI.
  2. In Monitor → Manage Integration Content, confirm the iFlow is Started and copy its complete URL from Endpoints.
  3. For the main CPI-mapping walkthrough, use Postman to POST the complete ERP source XML to that URL with the approved CPI caller authentication and Content-Type: application/xml; charset=UTF-8. Send the source request, not the expected mapping output. For the conditional SKYVVA-owned mapping path, send the approved source body from Prepare the Mapping and use the matching content type: application/xml for XML or application/json for JSON.
  4. Send once and record the HTTP status, timestamp and CPI message ID. Check any failure or uncertain outcome before retrying.

If inspecting the payload, enable temporary Trace before sending, check the receiver input before Request Reply (mapped XML for the main walkthrough), then restore the previous log level. This shows the receiver input, not necessarily the JSON chunks that the adapter creates internally. Actual ERP delivery is verified separately in Validate ERP Delivery and Complete Cutover.

Let mapping and receiver errors fail the iFlow. After a timeout or lost response, check the CPI/SKYVVA result before retrying; earlier records or chunks may already be committed and are not rolled back automatically.

Verify the final SKYVVA result and Account values. A successful HTTP response alone does not confirm business completion.

7. Verify Creation and Update

7.1 Verify the Initial Result

  1. CPI: open the execution in Monitor → Monitor Message Processing and check its status and errors.
  2. SKYVVA: open Message Monitoring, locate the request by Integration/Interface, customer key and timestamp, and confirm the final processing result.
  3. Account: find each record by its ERP matching key. Confirm one matching Account per key and the expected Name, Phone and Billing City from your source request. Record the Salesforce IDs for the update test in Verify an Update. For a multi-customer replay, verify every Account; the embedded example input contains only one customer.

A successful HTTP response or CPI Completed status alone does not prove Account success. Resolve pending or failed SKYVVA processing before resubmitting.


image

Figure 5. SKYVVA Message Monitoring showing modification results for four customer records.

The screenshot is an existing four-customer example, not the result of the single-customer input embedded in this guide. It illustrates updates to existing Accounts. Confirm their saved field values separately, and use unused sandbox keys to verify creation.

7.2 Verify an Update

Copy the successfully processed creation request and keep its customer keys unchanged. For the sample customer, change ORT01 to Hamburg and TELF1 to +49-40-5550100, then send the complete updated XML to the same replay endpoint. If you replaced 0000006000 with a new key during creation, retain that actual key for this update. Leave any other customers' values unchanged. For the conditional SKYVVA-owned mapping path, change the corresponding fields in the approved source body and use its matching content type.

Repeat the checks in Verify the Initial Result. Confirm the same Account ID, the updated city and phone, and no additional Account for that key. For a multi-record request, confirm the other Accounts retain their IDs and expected values.

7.3 Verify Failures and Safe Replay

Use isolated sandbox data and agree the expected results with the interface owner:

CheckExpected result
Valid request with an unused keyOne Account is created per customer key with the expected values.
Repeat an accepted request with unchanged keysThe agreed Upsert operation retains the Account IDs; verify that other Salesforce automation does not cause unwanted repeated actions.
Invalid customer, such as a missing required NameCPI or SKYVVA reports the failure at the applicable processing stage; inspect final results before retrying.
Missing, blank or null field valuesThe resulting Salesforce values match the approved PO behavior.
Failure affecting a multi-customer requestIdentify which customers succeeded before deciding which records to replay; do not assume the whole request rolled back.

For field-value tests, distinguish an omitted element from an empty element and an explicit null. The converter writes field-pair values as text; null semantics must be validated against the actual interface rather than assumed from the input representation.

Correct a failed request and recover it through the approved retry/reprocessing procedure. Reconcile CPI results, SKYVVA messages and saved Account IDs first, then confirm each intended customer exists once with the correct values. All checks remain Not run until the sandbox execution records the evidence.

8. Validate ERP Delivery and Complete Cutover

Cutover is the planned switch from the PO delivery route to the tested CPI route. First verify that ERP can send through CPI, then coordinate the switch so customer updates are neither missed nor processed through both routes.

Send a controlled request from non-production ERP through the configured CPI IDoc connection. Confirm successful CPI execution, final SKYVVA processing and the expected Salesforce Account results; HTTPS replay alone does not verify ERP delivery.

Before production cutover, confirm mapping equivalence, create/update behavior and delivery/recovery checks have passed, including required acknowledgements and ordering. Save the PO/SKYVVA configuration, agree a rollback plan and reconcile pending messages to prevent missed or duplicate processing.

Agree one active route for each cutover message. Stop or drain the corresponding PO route and reconcile queued/in-flight work before enabling CPI delivery, so the same customer update is not delivered through both routes. Redirect ERP delivery to CPI and verify the first production transactions. If returning to PO, restore any changed SKYVVA settings; switching routes does not undo Salesforce changes already committed.

Open this article in the interactive viewer →