SK SKYVVA Documentation

10. How to Create a SKYVVA Inbound Interface Using Auto-Switch Mode with the SkyvvaSalesforce Adapter

Overview

This tutorial sends SAP customer master data in DEBMAS06 XML from Postman through SAP Cloud Integration to a SKYVVA Inbound Interface in Salesforce. A DEBMAS06 IDoc carries one customer and its contact persons. CPI Message Mapping converts the customer into an Account and its contact persons into nested Contacts.

Set the SkyvvaSalesforce receiver to Mode = Auto-Switch. The adapter selects Normal, Batch or Bulk processing from the number of root Accounts in the mapped request. Nested Contacts stay with their Account and do not increase that root count.

Example Configuration

ItemValue
Salesforce objectsAccount and nested Contacts
SourcePostman sending DEBMAS06 XML
TransformationCPI Message Mapping: DEBMAS06 → Account / Contact
SkyvvaSalesforce adapter version1.3.1
SKYVVA package version2.51.20
SKYVVA API VersionV3
Salesforce Api Version59.0
Mode (CPI receiver)Auto-Switch
Processing Mode (SKYVVA interface in Salesforce)Asynchronous
Operation TypeUpsert
Autoswitch Integrate Max Size200
Autoswitch Batch Max Size5000
Request / Response FormatXML / JSON

Context Before You Start

Have a deployed SkyvvaSalesforce receiver adapter, permission to configure SKYVVA interfaces, access to edit/deploy the CPI iFlow and view its messages, and a working Salesforce authentication alias. The integration user must be able to read the Integration, main interface, chained Contact interface and mapping configuration, and create/update the required Account and Contact fields. Confirm the deployed adapter's Salesforce configuration-event access and Pub/Sub connectivity before deployment.

Use ERP_DEBTOR_ID__c on Account and ERP_CONTACT_ID__c on Contact as Text External ID fields, without a SKYVVA managed-package prefix. Allow at least 10 characters for the Account key and 15 for the Contact key. Use a Salesforce test org whose required fields and validation rules allow the example records.

The example input is a simplified DEBMAS06 exercise file. It includes enriched Contact email addresses. For a real SAP feed, confirm the available fields and translate country values to the values accepted by your Salesforce org.

The main walkthrough uses a DEBMAS06 XML file containing 600 customers with ten Contacts each. CPI mapping produces 600 Accounts and 6,000 Contacts. At the thresholds below, Auto-Switch selects Batch because 600 is greater than 200 and does not exceed 5,000. This example sets Batch Package Size = 10 and leaves Transfer Package Size blank. With Batch Package Size = 10, expect 60 baskets, each containing 10 Accounts and their 100 Contacts. When the root Account count exceeds Autoswitch Batch Max Size, Auto-Switch selects Bulk using the same mapping and receiver.

Root Account countSelected processing
1–200Normal
201–5000Batch
More than 5000Bulk

The thresholds select the processing method; package-size settings determine how the selected method groups records. Contact volume still affects request size and processing time, so keep each Account's children together and size requests for the target environment.

Postman (DEBMAS06 XML)
   ↓
CPI Message Mapping (Account with nested Contacts)
   ↓
SkyvvaSalesforce Receiver (Auto-Switch)
   ├── 1–200 Accounts      → Normal
   ├── 201–5000 Accounts   → Batch
   └── More than 5000      → Bulk
   ↓
SKYVVA processing → Salesforce Account / Contact
image

Figure 1. Overview of Postman sending data through CPI to the SkyvvaSalesforce Auto-Switch receiver.

1. Salesforce Interface Development

1.1 Create the Inbound Interface

In Salesforce, open the SKYVVA app and the Integration record for this example. Create the Integration first if needed, then create AccountContactAutoSwitch_IN under it.

Leave Message Type blank. The V3 Mapping Tool can then use the Salesforce Account structure and its child relationships.

SettingValue
Interface NameAccountContactAutoSwitch_IN
IntegrationYour SKYVVA Integration record
Source/Target NameAccount
StatusDeployed
Interface DirectionInbound
Interface API VersionV3
Processing Mode (SKYVVA interface)Asynchronous
Operation TypeUpsert
Message TypeLeave blank
External MappingEnabled
image

Figure 2. Main Account interface — Details and the Account source/target.

Under the main interface's Inbound Setup, enable External Mapping and select Salesforce External ID = ERP_DEBTOR_ID__c. This key matches the Account when SKYVVA performs Upsert.

image

Figure 3. Main Account interface — External Mapping and external-ID selection. Use unprefixed ERP_DEBTOR_ID__c for this guide.

1.2 Configure the Hierarchical Mapping

In the SKYVVA app, open AccountContactAutoSwitch_IN → Open Mapping. Create the Account-to-Contact hierarchy before generating the CPI target schema:

  1. Map the source Account node to the target Account node first.
  2. Map its Contact child node to Contact(AccountId).
  3. Save the node mappings to generate the Contact sub-interface.

With External Mapping enabled, incoming Salesforce field names supply the field values. These node mappings define the parent/child interfaces; CPI Message Mapping prepares the actual field names and values from DEBMAS06.

image

Figure 4. Hierarchical Mapping Tool — Account and Contact(AccountId) node mappings.

Open the generated Contact sub-interface and confirm Source/Target Name = Contact, V3, Inbound, Deployed and Operation Type = Upsert. Enable its External Mapping and select Salesforce External ID = ERP_CONTACT_ID__c.

Confirm that the saved chain links the main Account interface to this Contact interface through Contact(AccountId). The relationship attaches Contacts to their processed parent Account. Keep customer keys in the external-ID fields; do not put an ERP key into the Salesforce Contact.AccountId field.

image

Figure 5. Generated Contact sub-interface — External Mapping and external-ID selection. Use unprefixed ERP_CONTACT_ID__c.

1.3 Configure the Auto-Switch Thresholds

On AccountContactAutoSwitch_IN, save these settings. Keep the Batch threshold above the Normal threshold so all three processing ranges remain available.

SettingExample valueDescription
Use Auto-Switch ModeCheckedSaves the interface as an Auto-Switch interface for monitoring.
Autoswitch Integrate Max Size200Up to 200 root Accounts select Normal.
Autoswitch Batch Max Size5000201–5000 select Batch; more than 5000 select Bulk.
Transfer Package SizeBlankLeave blank; use Batch Package Size for this example.
Batch Package Size1010 root Accounts per Batch basket.
Bulk Package Size1000Groups root Account trees for file-based Bulk submission.
Batch Mode Switching BehaviorBlank for this exerciseAvoids an additional Salesforce-side mode switch.
Batch Processing Runtime BehaviorBlank for this exerciseKeeps the default batch execution option.

For the 600-Account Batch example, Batch Package Size = 10 gives 60 baskets, each containing 10 Accounts and their 100 Contacts. For requests above Autoswitch Batch Max Size, Bulk uses file-based submission; the Batch basket calculation does not apply.

image

Figure 6. Saved Auto-Switch thresholds: Integrate Max Size 200 and Batch Max Size 5000.

2. SAP CPI Development

2.1 Create the Integration Flow

In Cloud Integration → Design, open or create the integration package and add the iFlow.

ItemExample
Integration PackageSkyvva Salesforce Adapter Testing
Integration FlowAccountContact_Skyvva_AutoSwitch

ERP input uses SAP field names, so add CPI Message Mapping before the receiver. Use Request Reply to receive the adapter acknowledgement, then return that response through Message End to Postman.

Enter only the name inside parentheses in General → Name:

Sender (Postman) ── HTTPS ──> Message Start (Receive Customers)
  → Message Mapping (Map DEBMAS06 to Accounts and Contacts)
  → Request Reply (Submit Customers with Auto-Switch)
       └── SkyvvaSalesforce ──> Receiver (Salesforce)
  → Message End (Return Submission Result)
image

Figure 7. Auto-Switch iFlow — DEBMAS06 Message Mapping, Request Reply and submission response.

Generate the target schema from the prepared AccountContactAutoSwitch_IN interface using Generate MetaData → XSD Schema → V3/Integrate, after saving the Contact relationship. It must contain repeated Account records, each with nested Contact records and the unprefixed ERP fields.

In CPI Message Mapping, use the DEBMAS06 source schema and this generated target schema. Create one target Account per repeating DEBMAS06/IDOC and one nested Contact per E1KNA1M/E1KNVKM. Apply these field connections:

Source fieldTarget fieldDescription
Customer KUNNRAccount/ERP_DEBTOR_ID__cAccount matching key; preserve leading zeroes.
Customer NAME1Account/NameCustomer name.
Customer TELF1Account/PhoneCustomer phone.
Customer STRASAccount/BillingStreetStreet.
Customer ORT01Account/BillingCityCity.
Customer PSTLZAccount/BillingPostalCodePostal code as text.
Customer LAND1Account/BillingCountryCustomer country.
Contact PRSNR + '-' + Contact PARNRContact/ERP_CONTACT_ID__cContact key from the same E1KNVKM segment.
Contact NAMEVContact/FirstNameFirst name.
Contact NAME1Contact/LastNameRequired surname.
Contact TELF1Contact/PhoneContact phone.
Contact SMTP_ADDRContact/EmailSupplied enriched email, when present.

Use concat for the Contact's PRSNR, hyphen and PARNR, keeping both values in the same Contact context. For the first customer, KUNNR = 0000006000; its first Contact key is 0000600001-0001. Keep the same matching-key rule when repeating an Upsert.

This Contact key rule matches the supplied exercise data. Before using real SAP data, confirm that the resulting key identifies each Contact uniquely. If your Salesforce org uses restricted country values, use CPI Value Mapping to translate LAND1 before assigning BillingCountry.

Save the mapping and use CPI Simulation to inspect its Account/Contact output before deployment. For the main input, the output must contain 600 Account records, each with its own ten nested Contacts. Check that the repeated nodes preserve each customer’s Contacts rather than grouping all Contacts under one Account. Keep the generated target's XML namespace and element order. The field API names remain ERP_DEBTOR_ID__c and ERP_CONTACT_ID__c, without a managed-package prefix. Direct forwarding applies only when the incoming body already matches the target structure; DEBMAS06 needs the mapping above.

2.2 Configure the HTTPS Sender Adapter

Select the HTTPS sender connection. The General tab identifies Direction Sender, Adapter Type HTTPS, Transport Protocol HTTPS and Message Protocol None.

image

Figure 8. HTTPS sender — General tab.

On Connection, configure:

FieldExample value
Address/skyvva/AccountContactIntegrateAutoSwitch
AuthorizationUser Role
User RoleESBMessaging.send
CSRF ProtectedUnchecked for this exercise

Assign the required sender role to the identity used by Postman before sending the request.

image

Figure 9. HTTPS sender — Connection tab.

3. Configure the SkyvvaSalesforce Receiver Adapter

Select SkyvvaSalesforce on the connection from Request Reply to Receiver (Salesforce). The receiver tabs are General, Connection and Processing.

image

Figure 10. SkyvvaSalesforce receiver — General tab.

3.1 Connection Tab

This example uses OAuth2 → Client Credential with a Salesforce application and its execution user. Have the administrator grant the required Salesforce object, field and SKYVVA configuration access.

FieldValue
Authentication TypeOAuth2
OAuth2 FlowClient Credential
Login UrlSalesforce My Domain base URL, without /services/oauth2/token
Client CredentialDeployed Security Material alias containing the application client ID and secret
User CredentialHidden for this flow

Use the credential preparation in the receiver adapter guide and select the alias that has been verified for your Salesforce org.

image

Figure 11. Receiver Connection tab — OAuth2 Client Credential authentication.

3.2 Processing Tab — Request Settings

FieldValue
Processing TypeSkyvva
OperationIntegrate
Skyvva API VersionV3
IntegrationYour SKYVVA Integration
InterfaceAccountContactAutoSwitch_IN
Mode (CPI receiver)Auto-Switch
Request FormatXML
Response FormatJSON
Structure FormatSkyvva Format for the XML produced from the generated target schema
Skyvva App Version2.51.20
Salesforce Api Version59.0, as used in the example channel

The Processing Mode = Asynchronous on the SKYVVA interface and Mode = Auto-Switch on the CPI receiver are separate settings. Auto-Switch selects the handling tier; check submission and business-processing results separately.

The receiver's Processing Behavior field is hidden for Auto-Switch. There is no value to enter for that field in this walkthrough.

image

Figure 12. Receiver Processing tab — Auto-Switch and message-format settings.

3.3 Processing Tab — Adapter Settings

FieldValue
Logging optionDefault
Enable retry for fatal connectivity errorsUnchecked for this exercise
HTTP client timeout60 seconds

The receiver timeout controls individual Salesforce requests; it is not the total time allowed for a complete multi-package submission. Keep the Postman and sender timeouts suitable for the whole request.

image

Figure 13. Receiver adapter settings.

Save the interface configuration and CPI mapping, validate the iFlow, then Save and Deploy it. Resolve deployment errors before sending data and confirm that the iFlow is Started. If startup reports configuration-read or subscription errors, correct the required access/connectivity first.

image

Figure 14. Deployed AccountContact_Skyvva_AutoSwitch iFlow in Started state.

4. Get the SAP CPI Endpoint URL

In Cloud Integration → Monitor → Manage Integration Content, select AccountContact_Skyvva_AutoSwitch and copy its endpoint URL. Use the displayed URL rather than constructing a tenant address manually.

image

Figure 15. Manage Integration Content — endpoint URL.

5. Testing with Postman

Send the original DEBMAS06 XML to CPI; the Message Mapping step converts it before the receiver. The main walkthrough demonstrates Auto-Switch selecting Batch for 600 customers. A smaller request can select Normal, while a request exceeding Autoswitch Batch Max Size selects Bulk.

InputAccount rootsContactsProcessing
One complete IDOC from the supplied file110Normal
Existing 600-customer DEBMAS06 file6006,000Batch; 60 baskets at Batch Package Size 10
Request exceeding Autoswitch Batch Max SizeMore than 5,000Nested Contacts stay with each AccountBulk

The main 600-customer input is approximately 3.17 MB. Ensure the sender and any gateway accept the selected request size.

5.1 Configure the Postman Request

  1. Use POST with the endpoint from Get the SAP CPI Endpoint URL.
  2. Configure the authentication required by the HTTPS sender.
  3. Select Body → binary and choose the DEBMAS06 XML file containing 600 customers and ten Contacts per customer for this Batch walkthrough.
  4. Set Content-Type = application/xml in Headers; binary mode does not set it automatically.
  5. Send the selected example once, then inspect CPI and the appropriate Salesforce processing board before resending.

For a small input, Body → raw → XML is also suitable. Keep complete IDOCs and their nested Contact segments when preparing a smaller request.

5.2 DEBMAS06 Input and Mapped Records

The main input contains repeating DEBMAS06/IDOC elements. Each has one E1KNA1M customer and ten E1KNVKM contact persons. It contains 600 customers, with KUNNR values 0000006000 through 0000006599.

CPI Message Mapping from Create the Integration Flow changes SAP field names into the generated Account/Contact structure. The first Account key is 0000006000; its Contact keys run from 0000600001-0001 through 0000600010-0010. The adapter receives those mapped Accounts, not the original DEBMAS06 segments.

image

Figure 16. Postman — DEBMAS06 XML request and JSON Batch acknowledgement.

5.3 Understand the Submission Response

For the 600-customer DEBMAS06 input, expect a JSON Batch basket acknowledgement, then follow Check the Batch Control Board. With Batch Package Size = 10, the expected result is 60 baskets. This test created 60 baskets and returned a JSON acknowledgement. The immediate response may show only the last non-empty package acknowledgement; use the board to check all baskets for the submission.

If the basket count differs, recheck the saved settings in Configure the Auto-Switch Thresholds and the deployed adapter build before resending. Inspect the actual Accounts per basket; a total count alone does not identify which package-size setting was used.

For reference, the response depends on the selected tier:

TierMeaning of the immediate response
NormalResult of the direct integration submission; verify the saved business records.
BatchJSON basket acknowledgement. For multiple packages, the current adapter returns the last non-empty package response, not every basket result.
BulkUpload-batch/job information. The file-based upload must still complete and the Account/Contact data must be processed.

Set Request Format = XML and Response Format = JSON. The Postman request uses Content-Type = application/xml because its body is XML. The returned acknowledgement is JSON; check that the response Content-Type identifies it as JSON. The input and response do not need to use the same format. An HTTP success alone does not prove completion of all records.

If the caller times out or a later package fails, check which packages were already accepted before resending. Keep the same business external IDs when deliberately repeating Upsert; changing keys creates a different matching scenario.

6. Monitoring

6.1 SAP CPI Monitoring

In Cloud Integration → Monitor → Monitor Message Processing, find the run for AccountContact_Skyvva_AutoSwitch by submission time. Record its message ID, status and any error, and correlate it with the returned basket or upload-job identifiers.

image

Figure 17. Example CPI message-processing screen for Auto-Switch.

6.2 Salesforce Monitoring

In Salesforce, open the SKYVVA app and use the processing view for the tier selected by the request size.

6.2.1 Check the Batch Control Board

For the 600-Account Batch example, open Batch Control Board → Working Basket. Identify AccountContactAutoSwitch_IN and the submission time. With Batch Package Size = 10, expect 60 baskets totaling 600 Account roots; the nested 6,000 Contacts do not increase that root total.

Check the basket count and root-record size first. When they match the expected 60 baskets of 10 Accounts, select one pending basket from this submission and click Process, then refresh the board and inspect its status, history and errors. That basket covers 10 Accounts and their 100 Contacts; processing it demonstrates that basket’s outcome. The other baskets remain pending unless another processing action or a configured background job processes them. Use the failed-basket recovery action only after resolving its cause. More baskets can result from additional splitting; reconcile accepted customer keys and errors before resending.

To complete the full test, process the remaining baskets from this same submission, or let the configured background job process them. Refresh the board, check for failed or still-pending baskets, and resolve any errors. Continue to Verify Salesforce Records after all 60 baskets have finished successfully; processing the first basket alone does not complete the 600-Account test.

image

Figure 18. Batch Control Board — baskets for the Auto-Switch submission.

6.2.2 Check Bulk Processing

If a request contains more root Accounts than Autoswitch Batch Max Size (5,000 in this configuration), Auto-Switch selects Bulk. In Salesforce, open the SKYVVA app → Bulk Control Board for the same Integration and find the interface and submission. Follow the upload job and its file-based baskets through processing, and inspect any errors. Use the returned identifiers and submitted customer keys to locate the result.

Bulk uses file uploads and attachments rather than the Batch-tier submission path. The Batch Control Board image above shows the 600-Account Batch submission; it does not show a Bulk result. Check the Bulk job and its processing outcome separately.

6.2.3 Check Message Monitoring

In Salesforce → SKYVVA app → Message Monitoring, inspect the messages for AccountContactAutoSwitch_IN and its generated Contact sub-interface after processing. Locate the basket you processed, expand its Account/Contact hierarchy and confirm successful Account and Contact messages. Inspect any error messages before claiming success. Match the basket identifier and business external IDs to that submission; a successful submission acknowledgement alone is not the completed business result.

For a Normal request, verify the processing result and resulting records without expecting pending Batch baskets solely because the channel uses Auto-Switch.

6.3 Verify Salesforce Records

Open an Account from the processed basket and confirm its ERP_DEBTOR_ID__c, name, phone and billing values. Open a related Contact and check its ERP_CONTACT_ID__c, name, email, phone and Account relationship. For example, if the basket includes the first customer, find Account key 0000006000 and Contact key 0000600001-0001, then confirm that the Contact belongs to that Account.

For the main 600-customer file, the intended result covers 600 Account keys and 6,000 Contact keys. A single processed basket demonstrates only that basket's result. Verify the full totals only after all submitted data has been processed; Upsert can update existing records rather than create new ones.

Summary

The flow is DEBMAS06 input → CPI Message Mapping → Auto-Switch receiver → selected SKYVVA processing → Salesforce Account and Contact. The main 600-Account input selects Batch at the 200/5000 thresholds. With Batch Package Size 10 and Transfer Package Size blank, the expected result is 60 baskets. Confirm that count and the processed Account/Contact records in the deployed environment. Requests exceeding Autoswitch Batch Max Size select Bulk.

Configuration Summary

SettingConfiguration
SkyvvaSalesforce adapter version1.3.1
SKYVVA package version2.51.20
Salesforce Api Version59.0
InterfaceAccountContactAutoSwitch_IN, Inbound, V3, Upsert
Account / Contact external-ID fieldsERP_DEBTOR_ID__c / ERP_CONTACT_ID__c
Contact keyPRSNR + '-' + PARNR
Processing Mode (SKYVVA interface)Asynchronous
Mode (CPI receiver)Auto-Switch
Use Auto-Switch ModeChecked and saved
Autoswitch Integrate / Batch Max Size200 / 5000
Transfer / Batch / Bulk Package SizeBlank / 10 / 1000
Request / Response FormatXML / JSON
Structure FormatSkyvva Format for the generated target XML
Main inputDEBMAS06 XML containing 600 customers and ten Contacts each → 600 Accounts and 6,000 Contacts; Batch; expected 60 baskets at Batch Package Size 10
Bulk selectionRoot Account count exceeds Autoswitch Batch Max Size (5000) → Bulk

Open this article in the interactive viewer →