SK SKYVVA Documentation

8. How to create an inbound interface using Skyvva Bulk mode with SkyvvaSalesforce Adapter

Overview

This document explains how to create a SKYVVA Inbound Interface in Salesforce to process large amounts of data using Skyvva Bulk mode. Set Mode = Skyvva Bulk in the SkyvvaSalesforce receiver channel. The adapter uploads the data to Salesforce, where SKYVVA organizes it into baskets for processing. SKYVVA then processes these baskets to create or update the Accounts and Contacts.

It covers the following steps:

  1. Create and configure a SKYVVA Inbound Interface in Salesforce, with the Bulk engine and package-size fields set for Skyvva Bulk processing.
  2. Create an integration flow in SAP CPI.
  3. Configure the HTTPS sender channel.
  4. Configure the SKYVVA Salesforce receiver channel with Skyvva API Version = V3 and Mode = Skyvva Bulk.
  5. Deploy the integration flow.
  6. Send a test request with a large record set from Postman through SAP CPI.
  7. Monitor the message in SAP CPI.
  8. Verify the bulk-processed records in Salesforce.

In this example:

ItemValue
SkyvvaSalesforce adapter version1.3.0
SKYVVA package version2.51.20
Salesforce ObjectAccount / Contact (nested)
Message SourcePostman
Test inputDEBMAS06 XML customer IDOC
MiddlewareSAP CPI
SKYVVA API VersionV3
Mode (CPI receiver)Skyvva Bulk
Processing Mode (SKYVVA interface in Salesforce)Asynchronous
Bulk Version (Interface)Leave blank; the CPI receiver selects the SKYVVA bulk engine
Bulk Package Size (Interface)10

Context Before You Start

Skyvva Bulk groups Accounts and their nested Contacts for upload. Bulk Package Size = 10 groups ten Accounts at a time, keeping each Account’s Contacts with it. The adapter uploads those groups to Salesforce, and the SKYVVA bulk engine processes the submitted baskets to create or update the business records.

Use this mode for larger loads when the caller can receive an upload acknowledgement and check processing results later in the SKYVVA app in Salesforce. Skyvva Bulk and Salesforce Bulk are separate receiver modes: this tutorial uses the SKYVVA engine to process the Account/Contact hierarchy.

Upload batches can contain several record groups. Reaching Bulk Package Size does not mean an upload has completed or the Account/Contact records have been processed. Follow Process the Baskets and Verify Account/Contact Records to check the final result.


POSTMAN
   ↓
SAP CPI (HTTPS Sender → SkyvvaSalesforce Receiver, Mode = Skyvva Bulk)
   ↓
SKYVVA Inbound Interface (Skyvva Bulk selected in CPI)
   ↓
Account/Contact groups → Upload to Salesforce → SKYVVA basket processing
   ↓
Salesforce Account / Contact
image

Figure 1: End-to-end message flow using Skyvva Bulk mode.

1. Salesforce Interface Development

1.1 Create the Interface

In Salesforce, open the SKYVVA app and create an Inbound Interface under the parent Integration record. Create the Integration record first if needed. Select the same record in the interface’s Integration lookup and in the receiver’s Processing Tab — Request Settings.

For this example, create the interface AccountContactSkyvvaBulk_IN. Leave the Message Type field blank. For a V3 Inbound interface, leaving Message Type unset is what triggers Hierarchical Mapping — there is no MetaData Provider/Repository/Message Type hierarchy to build first; the Mapping Tool derives the parent/child tree directly from Salesforce's own schema instead.

Configure the interface:

SettingValue
Interface NameAccountContactSkyvvaBulk_IN
IntegrationSAP Cloud Integration (the same record selected in the CPI receiver)
Source/Target NameAccount
StatusDeployed
Interface DirectionInbound
Processing Mode (SKYVVA interface in Salesforce)Asynchronous
Operation TypeUpsert
Message Type(leave blank)
External MappingEnabled
image

Figure 2: SKYVVA Inbound Interface AccountContactSkyvvaBulk_IN, no Message Type linked.

This is the main interface's own Inbound Setup section — with External Mapping enabled, set Salesforce External ID = ERP_DEBTOR_ID__c, the Account-level external key used to match/upsert Account records:

image

Figure 3: Main interface AccountContactSkyvvaBulk_IN — Inbound Setup, External Mapping enabled with Salesforce External ID ERP_DEBTOR_ID__c (Account).

1.2 Map Account → Contact in the Hierarchical Mapping Tool

In the SKYVVA app, open AccountContactSkyvvaBulk_IN and choose Open Mapping. With Message Type blank, the tool shows the Salesforce Account structure and its child relationships. Expand the tree to find Contact(AccountId).

With External Mapping enabled as described in Create the Interface, SKYVVA uses incoming field names to populate matching Salesforce fields. CPI Message Mapping prepares those names from the DEBMAS06 source. Map the relationship nodes in this order:

  1. Drag the source Account root onto the target Account root first.
  2. Expand the mapped Account and drag the source Contact child onto the target Contact(AccountId) node.
  3. Save the node mappings to generate the Contact sub-interface and preserve the parent/child hierarchy.

No field-to-field dragging is required in SKYVVA for this External Mapping exercise. External Mapping alone does not replace the node mappings needed to create the hierarchy.

image

Figure 4: Hierarchical Mapping Tool — Account → Contact(AccountId) node mapping, External Mapping handles field-level mapping.

Save the mapping. Doing so auto-generates the chained sub-interface for the child Contact object mentioned in the note above. That sub-interface has its own, separate Inbound Setup, with its own External Mapping keyed on the Contact-level external ID — ERP_CONTACT_ID__c, not the Account-level ERP_DEBTOR_ID__c configured in Create the Interface. Don't confuse the two: they identify different objects, and the sub-interface's External Mapping has to be checked here independently — it is not inherited from the main interface just because External Mapping is enabled there.

image

Figure 5: Auto-generated sub-interface (Contact) — Inbound Setup, External Mapping enabled with Salesforce External ID ERP_CONTACT_ID__c (Contact).

1.3 Configure the Bulk Engine

In the Bulk Setting / Basket Setting section of the interface, set the fields that control the Skyvva Bulk engine specifically:

FieldValueDescription
BULK ModeCheckedEnable bulk processing on the saved interface for monitoring and direct use.
Bulk VersionLeave blankThe CPI receiver’s Skyvva Bulk mode selects the SKYVVA bulk engine.
Bulk Package Size10Group ten Accounts with their nested Contacts for upload. This count does not include Contacts and does not indicate completed processing.

Save the interface settings before testing. Monitor the submitted baskets using the steps under Salesforce.

image

Figure 6: Interface Bulk Setting — Bulk Version and Bulk Package Size.


After completing the configuration and mapping in Skyvva, save the interface.

2. SAP CPI Development

2.1 Create the Integration Flow

Create the package in SAP CPI under Design and add the integration flow.

Example:

ItemExample
Integration PackageSkyvva Salesforce Adapter Testing
Integration FlowAccountContact_Skyvva_Bulk

The flow uses an HTTPS Sender, CPI Message Mapping, and a SkyvvaSalesforce Receiver. CPI Message Mapping converts the incoming DEBMAS06 XML customer IDOC into the generated SKYVVA Account/Contact structure before the receiver submits it to Salesforce.

image

Figure 7: Integration flow for the Skyvva Bulk mode example.

Generate the target schema from the configured SKYVVA interface using Generate MetaData → XSD Schema → V3/Integrate, after saving the Contact relationship. The schema must contain repeated Account elements with nested Contact elements and the fields ERP_DEBTOR_ID__c and ERP_CONTACT_ID__c.

In CPI Message Mapping, select the DEBMAS06 customer schema as the source and the schema generated from AccountContactSkyvvaBulk_IN as the target. The source has repeated IDOC elements; each contains one E1KNA1M customer segment and zero or more E1KNVKM contact segments. Create one target Account per IDOC and one nested Contact per E1KNVKM.

Apply these field connections. Account source paths below start at DEBMAS06/IDOC/E1KNA1M; Contact source paths start at its E1KNVKM child.

Source fieldTarget fieldDescription
Customer KUNNRAccount/ERP_DEBTOR_ID__cCustomer matching key; preserve leading zeroes.
Customer NAME1Account/NameCustomer name.
Customer TELF1Account/PhoneCustomer phone.
Customer STRASAccount/BillingStreetStreet address, when supplied.
Customer ORT01Account/BillingCityCity, when supplied.
Customer PSTLZAccount/BillingPostalCodePostal code as text, when supplied.
Customer LAND1Account/BillingCountryCustomer country.
Contact PRSNR + '-' + Contact PARNRContact/ERP_CONTACT_ID__cContact key from the same E1KNVKM segment, for example 0000600001-0001.
Contact NAMEVContact/FirstNameContact first name.
Contact NAME1Contact/LastNameRequired surname; use the child NAME1.
Contact TELF1Contact/PhoneContact phone.
Contact SMTP_ADDRContact/EmailOptional enriched email; omit when absent.

Use CPI’s concat function to join the Contact’s PRSNR, a hyphen and PARNR. Both fields come from the same E1KNVKM segment. Keep both in that Contact context. Require populated PRSNR, PARNR and Contact surname, and keep the same key rule when repeating an Upsert test.

Simulate the mapping with the first complete customer from the DEBMAS06 example input described in Testing with Postman, retaining all its Contact segments. Expect one Account with the customer’s KUNNR as its external ID and one nested Contact per source contact segment. For example, PRSNR = 0000600001 and PARNR = 0001 produce Contact key 0000600001-0001. Include a second customer to confirm that its Contacts receive the correct keys and stay under its Account. Map only the fields listed above; additional source fields are outside this exercise. The saved SKYVVA interface selects Upsert; the source MSGFN value does not select the operation in this mapping.

The sample source schema is a simplified DEBMAS06 exercise structure. SMTP_ADDR is an optional enrichment; omit Email when it is absent from the input. Use the actual source-system schema and enrichment contract for a real SAP feed.

Keep Structure Format = Skyvva format because CPI Message Mapping produces the generated SKYVVA target structure. Use the generated target’s XML namespace and element order. Direct forwarding applies only to input that already matches that target structure. Send DEBMAS06 through CPI Message Mapping.

2.2 Configure the HTTPS Sender Channel

Select the standard SAP HTTPS sender adapter.

General tab: Direction Sender, Adapter Type HTTPS, Transport Protocol HTTPS, Message Protocol None — fixed values, identical in every tutorial that uses this sender.

Connection tab:

FieldExample value
Address/skyvva/AccountContactIntegrateSkyvvaBulkV3
AuthorizationUser Role
User RoleESBMessaging.send
CSRF ProtectedUnchecked
Important: The configured User Role must already exist and be assigned to the CPI user/ credential that Postman authenticates as, or the sender rejects the request with 403 Forbidden.
image

Figure 8: HTTPS sender channel — Connection tab.

2.3 Configure the SkyvvaSalesforce Receiver Channel

Select SkyvvaSalesforce as the receiver adapter. The receiver channel has three tabs: General, Connection, Processing.

General tab: Direction Receiver, Adapter Type SkyvvaSalesforce, Transport Protocol https, Message Protocol skyvva — fixed values, identical for every SkyvvaSalesforce receiver channel.

2.3.1 Connection Tab

FieldExample value
Authentication TypeOAuth2
OAuth2 FlowClient Credential
Login Urlhttps://test.salesforce.com
Client CredentialAlias of the CPI Security Material User Credentials entry containing the Salesforce client ID as username and client secret as password

Use the Client Credential flow for this exercise. Deploy the User Credentials entry in CPI Security Material before deploying the integration flow, and enter its alias in Client Credential.

2.3.2 Processing Tab — Request Settings

FieldValue
Skyvva API VersionV3
IntegrationSAP Cloud Integration (the Integration record used in Figure 9)
InterfaceAccountContactSkyvvaBulk_IN
Mode (CPI receiver)Skyvva Bulk
Request FormatXML
Response FormatJSON
Structure FormatSkyvva format
Skyvva App Version2.51.20
Salesforce Api Version59.0 (or your org's current API version)
Note: Processing Behavior is not shown for this configuration — it only appears when
Mode = Asynchronous, not for Skyvva Bulk.
image

Figure 9: SkyvvaSalesforce receiver — Skyvva Bulk mode, Request Format XML, Response Format JSON, and Structure Format Skyvva format. Set Skyvva App Version to 2.51.20 for this exercise.

2.3.3 Processing Tab — Adapter Settings

FieldValue
Logging optionDefault
Enable retry for fatal connectivity errorsUnchecked (leave disabled for this test)
HTTP client timeout (sec)60 (increase if a single bulk basket flush needs more processing time)

Once all channel parameters are defined, save the integration flow and deploy it.

image

Figure 10: Integration flow deployed.

2.4 Get the SAP CPI Endpoint URL

Go to CPI → Monitoring → Manage Integration Content, locate the deployed integration flow, and copy its endpoint URL.

image

Figure 11: Manage Integration Content — endpoint URL.


Note: The endpoint URL shape depends on the tenant generation — Neo tenants use https://{{TenantId}}-iflmap.hcisbp.<region>.hana.ondemand.com/http/<Address>, current SAP BTP Integration Suite (Cloud Foundry) tenants use https://{{TenantId}}.<runtime-cluster>.cfapps.<region>.hana.ondemand.com/http/<Address>. Always copy the exact URL from your own tenant's Manage Integration Content panel rather than assembling it by hand.

3. Testing with Postman

Use the URL from Get the SAP CPI Endpoint URL. Send the DEBMAS06 XML customer IDOC used to test CPI Message Mapping. A small request checks submission; use more than ten Accounts to inspect multiple record groups with Bulk Package Size 10. The final group is submitted even when it contains fewer than ten Accounts.

Create a new request with the following configuration:

SettingValue
MethodPOST
URLYour SAP CPI endpoint URL
AuthorizationAuthentication configured for the HTTPS Sender
Content-TypeMatch the configured Request Format

Because this example uses:

Request Format = XML

configure the header as:

Content-Type: application/xml

In Postman, select the DEBMAS06 XML customer IDOC as the request body. Record the customer and contact counts and their external IDs so you can compare them with the final Salesforce records. CPI Message Mapping converts its customer and contact data into the SKYVVA Account/Contact structure before the receiver submits it. Keep the complete customer and contact segments together. The receiver channel selects the Integration and Interface.

image

Figure 12: POSTMAN request and response.


The response is a JSON array of Salesforce Bulk API upload batch details. The state: Queued entries in Figure 12 confirm that Salesforce accepted the upload for processing. They do not confirm that the Account and Contact records have been created. JSON matches Response Format = JSON in Figure 9.

4. Monitoring

4.1 SAP CPI

Go to CPI → Monitor → Monitor Message Processing and verify the message completed successfully.

image

Figure 13: CPI Monitor Message Processing.

4.2 Salesforce

In Salesforce, open the SKYVVA app → Bulk Control Board → Baskets and locate the baskets for AccountContactSkyvvaBulk_IN. Match the interface and creation time to the submitted request. Figure 14 shows baskets waiting for processing.

image

Figure 14: Bulk Control Board — Baskets tab, showing the interface's queued baskets before processing.


4.3 Process the Baskets and Verify Account/Contact Records

The JSON response in Postman confirms upload submission. The queued baskets in Salesforce still need SKYVVA processing to create or update the Accounts and Contacts. A completed CPI message does not establish that this business processing has finished.

  1. In Salesforce, open the SKYVVA app → Bulk Control Board → Baskets. Select the baskets for this submission using the interface name and creation time. Click Process, or allow the configured scheduler to process them.
  2. Refresh the board and inspect the processing results for all baskets from the request. If processing reports errors, read the error details, correct the data or configuration, and reprocess the affected records before accepting the test result.
  3. Open the corresponding Account records in Salesforce. Find each customer using the mapped ERP_DEBTOR_ID__c value. Confirm that the Account name, phone and other mapped fields match the DEBMAS06 input after CPI Message Mapping.
  4. Open each Account’s related Contacts. Confirm that every expected Contact is present, has the correct ERP_CONTACT_ID__c and mapped field values, and belongs to that Account.

Since the interface uses Upsert, matching external IDs update existing records; a repeat submission does not necessarily increase the overall record count. Figure 14 shows the earlier queued state, before final processing.

Summary

The complete integration flow is:

POSTMAN
   ↓
HTTPS Sender
   ↓
SAP CPI Integration Flow
   ↓
SkyvvaSalesforce Receiver (Mode = Skyvva Bulk)
   ↓
SKYVVA Inbound Interface (Skyvva Bulk selected in CPI)
   ↓
Account/Contact groups → Upload to Salesforce → SKYVVA basket processing
   ↓
Salesforce Account / Contact

Configuration Summary

SettingConfiguration
SKYVVA InterfaceInbound, Asynchronous, Upsert
Bulk VersionLeave blank; the CPI receiver selects the SKYVVA bulk engine
Bulk Package Size10
SKYVVA API VersionV3
Mode (CPI receiver)Skyvva Bulk
Request FormatXML
Response FormatJSON
Structure FormatSkyvva format
SKYVVA package version2.51.20
SkyvvaSalesforce adapter version1.3.0
Test inputDEBMAS06 XML customer IDOC

Skyvva Bulk mode gives SKYVVA's own basket engine ownership of high-volume record sets, rather than routing them through Salesforce's native Bulk API job lifecycle — the Bulk API call it does make underneath is only a transport step to upload the data as a ContentVersion attachment, not the mechanism that creates your Account/Contact records.

Bulk Package Size on the SKYVVA interface controls how many Accounts are grouped with their Contacts. After upload, use Process the Baskets and Verify Account/Contact Records to confirm that SKYVVA has created or updated the intended business records.

Open this article in the interactive viewer →