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:
- Create and configure a SKYVVA Inbound Interface in Salesforce, with the Bulk engine and package-size fields set for Skyvva Bulk processing.
- Create an integration flow in SAP CPI.
- Configure the HTTPS sender channel.
- Configure the SKYVVA Salesforce receiver channel with
Skyvva API Version = V3andMode = Skyvva Bulk. - Deploy the integration flow.
- Send a test request with a large record set from Postman through SAP CPI.
- Monitor the message in SAP CPI.
- Verify the bulk-processed records in Salesforce.
In this example:
| Item | Value |
|---|---|
| SkyvvaSalesforce adapter version | 1.3.0 |
| SKYVVA package version | 2.51.20 |
| Salesforce Object | Account / Contact (nested) |
| Message Source | Postman |
| Test input | DEBMAS06 XML customer IDOC |
| Middleware | SAP CPI |
| SKYVVA API Version | V3 |
| 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
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:
| Setting | Value |
|---|---|
| Interface Name | AccountContactSkyvvaBulk_IN |
| Integration | SAP Cloud Integration (the same record selected in the CPI receiver) |
| Source/Target Name | Account |
| Status | Deployed |
| Interface Direction | Inbound |
| Processing Mode (SKYVVA interface in Salesforce) | Asynchronous |
| Operation Type | Upsert |
| Message Type | (leave blank) |
| External Mapping | Enabled |
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:
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:
- Drag the source Account root onto the target Account root first.
- Expand the mapped Account and drag the source Contact child onto the target Contact(AccountId) node.
- 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.
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.
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:
| Field | Value | Description |
|---|---|---|
| BULK Mode | Checked | Enable bulk processing on the saved interface for monitoring and direct use. |
| Bulk Version | Leave blank | The CPI receiver’s Skyvva Bulk mode selects the SKYVVA bulk engine. |
| Bulk Package Size | 10 | Group 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.
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:
| Item | Example |
|---|---|
| Integration Package | Skyvva Salesforce Adapter Testing |
| Integration Flow | AccountContact_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.
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 field | Target field | Description |
|---|---|---|
Customer KUNNR | Account/ERP_DEBTOR_ID__c | Customer matching key; preserve leading zeroes. |
Customer NAME1 | Account/Name | Customer name. |
Customer TELF1 | Account/Phone | Customer phone. |
Customer STRAS | Account/BillingStreet | Street address, when supplied. |
Customer ORT01 | Account/BillingCity | City, when supplied. |
Customer PSTLZ | Account/BillingPostalCode | Postal code as text, when supplied. |
Customer LAND1 | Account/BillingCountry | Customer country. |
Contact PRSNR + '-' + Contact PARNR | Contact/ERP_CONTACT_ID__c | Contact key from the same E1KNVKM segment, for example 0000600001-0001. |
Contact NAMEV | Contact/FirstName | Contact first name. |
Contact NAME1 | Contact/LastName | Required surname; use the child NAME1. |
Contact TELF1 | Contact/Phone | Contact phone. |
Contact SMTP_ADDR | Contact/Email | Optional 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:
| Field | Example value |
|---|---|
| Address | /skyvva/AccountContactIntegrateSkyvvaBulkV3 |
| Authorization | User Role |
| User Role | ESBMessaging.send |
| CSRF Protected | Unchecked |
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.
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
| Field | Example value |
|---|---|
| Authentication Type | OAuth2 |
| OAuth2 Flow | Client Credential |
| Login Url | https://test.salesforce.com |
| Client Credential | Alias 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
| Field | Value |
|---|---|
| Skyvva API Version | V3 |
| Integration | SAP Cloud Integration (the Integration record used in Figure 9) |
| Interface | AccountContactSkyvvaBulk_IN |
| Mode (CPI receiver) | Skyvva Bulk |
| Request Format | XML |
| Response Format | JSON |
| Structure Format | Skyvva format |
| Skyvva App Version | 2.51.20 |
| Salesforce Api Version | 59.0 (or your org's current API version) |
Note:Processing Behavioris not shown for this configuration — it only appears whenMode = Asynchronous, not forSkyvva Bulk.
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
| Field | Value |
|---|---|
| Logging option | Default |
| Enable retry for fatal connectivity errors | Unchecked (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.
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.
Figure 11: Manage Integration Content — endpoint URL.
Note: The endpoint URL shape depends on the tenant generation — Neo tenants usehttps://{{TenantId}}-iflmap.hcisbp.<region>.hana.ondemand.com/http/<Address>, current SAP BTP Integration Suite (Cloud Foundry) tenants usehttps://{{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:
| Setting | Value |
|---|---|
| Method | POST |
| URL | Your SAP CPI endpoint URL |
| Authorization | Authentication configured for the HTTPS Sender |
| Content-Type | Match 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.
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.
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.
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.
- 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.
- 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.
- Open the corresponding Account records in Salesforce. Find each customer using the mapped
ERP_DEBTOR_ID__cvalue. Confirm that the Account name, phone and other mapped fields match the DEBMAS06 input after CPI Message Mapping. - Open each Account’s related Contacts. Confirm that every expected Contact is present, has the correct
ERP_CONTACT_ID__cand 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
| Setting | Configuration |
|---|---|
| SKYVVA Interface | Inbound, Asynchronous, Upsert |
| Bulk Version | Leave blank; the CPI receiver selects the SKYVVA bulk engine |
| Bulk Package Size | 10 |
| SKYVVA API Version | V3 |
| Mode (CPI receiver) | Skyvva Bulk |
| Request Format | XML |
| Response Format | JSON |
| Structure Format | Skyvva format |
| SKYVVA package version | 2.51.20 |
| SkyvvaSalesforce adapter version | 1.3.0 |
| Test input | DEBMAS06 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.