2. Designing the interface in SAP-PO
This chapter covers the v2.3.6 workflow for Skyvva/V3/RestIntegration with a SKYVVA V3 message-type interface. Start in SKYVVA and use its generated structure as the SAP-PO mapping target. Choose the module variant that matches your interface before configuring the channel. V2 and V3 interface comparison
2.1 Why SKYVVA comes first
SAP-PO needs a message type to map onto. In this workflow, SKYVVA generates that message type from the interface definition.
SKYVVA interface → generated XSD or WSDL → SAP-PO external definition → mapping target
Using the generated structure keeps the mapping aligned with the fields the interface expects.
2.2 Step 1 — create the interface in SKYVVA
In Salesforce, create the integration and its V3 interface. Define the target object and the fields the message type will carry. Check these details before you export the definition:
- Integration and interface names. Use the same values in the channel.
- Field list and structure. The generated message type will reflect the interface definition.
- Record identity. If your mapping upserts records, configure the external ID used to match an existing record. Check the operation and mapping before replaying a message.
2.3 Step 2 — generate the message type from SKYVVA
Export the XSD or WSDL generated for the interface. If the interface fields change, export the updated definition, reimport it in SAP-PO, and review the mapping before testing again.
2.4 Step 3 — import into SAP-PO as an external message type
In the Enterprise Services Repository, import the generated file as an external definition. SAP-PO makes the imported structure available as the target for your message mapping.
2.5 Step 4 — map your source structure to the SKYVVA message type
Create the message mapping with your source structure on the left and the imported SKYVVA message type on the right. Map the source fields into the generated target structure, then create the operation mapping.
When the module builds SKYVVA messages itself, it matches root record element names to the source names set on the interface. Check that the repeated record element in the actual payload agrees with the interface source name, especially if you get an invalid message type error.
A practical note on flat versus nested structures
A parent and its nested children count as one root record. For example, an invoice with 200 nested items travels as one record. Where an operation divides messages into packages, it divides them between root records. For very large individual records, consider separate header and flat item interfaces if the business process allows them.
2.6 Step 5 — configure the communication channel
In the Integration Directory, create a REST receiver communication channel. Add Skyvva/V3/RestIntegration before the standard SAP RESTAdapterBean in the module chain.
| Setting | What to enter |
|---|---|
Operation | The desired integration pattern. Overview |
IntegrationName | The integration you created in SKYVVA |
InterfaceName | The V3 interface you configured |
| Authentication | Configure it on the component that makes the Salesforce calls. Module parameter reference |
For plain Integrate, the standard SAP REST adapter can authenticate the request after the SKYVVA module builds it. When the SKYVVA module reads Salesforce metadata or makes its own Salesforce calls, such as in Batch, Bulk, or Auto switch, configure module authentication too. OAuth2 Client Credentials setup
2.7 Step 6 — test and read the audit log
Send a representative test message and open the SAP-PO message audit log. Check the deployed module version in the session-start entry and confirm the operation. For Auto switch, compare the logged root record count and resolved thresholds with the routing you expected.
Use the result appropriate to your operation. Check the response for Integrate Synchronous, the message or basket status for SKYVVA operations that process separately, or the Salesforce bulk job for Salesforce Bulk. Confirm that the expected records were created or updated. How to check the deployed SKYVVA Java module version
2.8 Checklist
☐ V3 interface created in SKYVVA with the record identity needed by the mapping ☐ XSD or WSDL exported from that interface and imported as an external definition ☐ Message mapping and operation mapping use the imported structure ☐ REST receiver channel runs Skyvva/V3/RestIntegration before RESTAdapterBean ☐ Operation, integration, interface, and authentication settings checked ☐ Test message sent and results confirmed in the audit log and appropriate destination