Course

SAP Integration Suite

A complete course on SAP's integration platform as a service: what each capability does, how to set up a tenant, and how to build, secure and run integration flows in real projects. Each module explains the concept, gives you a lab, and ends with a short quiz.

15 modules~27 h totalLevel Beginner → ExpertScenario S/4HANA orders to a third-party CRM
Training documents

Course material

Every module below is a full lesson you can read here. Lab handbooks and slide decks for download are listed here as they are published.

Downloadable PDF lab handbooks are being prepared and will appear in this list.

Module 01

What SAP Integration Suite is

60 min · Concepts

Companies today run a mix of SAP and non-SAP systems, some in the cloud and some on-premise. Each one needs to exchange data with the others: orders, employees, invoices, master data. Building every connection by hand creates a fragile web that nobody fully understands.

SAP Integration Suite is SAP's integration platform as a service (iPaaS) on SAP Business Technology Platform. Instead of one tool, it is a set of capabilities you switch on as you need them, all managed from one place.

CapabilityWhat it does
Cloud IntegrationBuilds and runs integration flows (iFlows): receive, transform, route and send messages. The core of most projects.
API ManagementPublishes APIs securely with policies, products and a developer portal.
Integration AdvisorDesigns B2B mappings using EDI standards with machine-learning proposals.
Trading Partner ManagementManages B2B partner profiles and agreements.
Open ConnectorsNormalized REST connectors to popular third-party SaaS apps.
Integration Assessment / Migration AssessmentHelp choose the right integration style and plan moves from SAP PI/PO.
Event Mesh / Advanced Event MeshEvent brokers for event-driven integration.
Edge Integration CellRuns integrations on your own Kubernetes environment, designed in the cloud.

Integration styles

Not every requirement is a classic message flow. A good integration architect first asks what kind of integration is needed:

  • Process integration: application to application, e.g. a sales order from S/4HANA to a CRM.
  • B2B integration: documents with external partners, such as EDI orders and invoices.
  • API-based integration: systems or apps calling well-defined APIs in real time.
  • Event-driven integration: publishing business events that many consumers react to.
  • Data integration: moving large data volumes for analytics or replication.
Remember · Integration Suite is licensed and switched on per capability. Many developers only ever use Cloud Integration and API Management, but knowing the rest helps you pick the right tool.
iPaaSIntegration platform as a service, run and patched by the vendor.
CapabilityA part of Integration Suite you activate separately, like Cloud Integration.
iFlowAn integration flow in Cloud Integration, built graphically.
TenantYour own Integration Suite instance in a BTP subaccount.

Lab 1 · Map your landscape

  1. List five systems in a company you know (or the course scenario: S/4HANA, a CRM, a warehouse, a bank, a supplier).
  2. For each connection, write the integration style: process, B2B, API, event or data.
  3. Note which Integration Suite capability fits each one.
Module 02

Tenant setup and access

75 min · Hands-on

Integration Suite lives in a BTP subaccount. Setting it up is a one-time job, but it is also a common interview topic, so understand each step.

  1. Subscribe to SAP Integration Suite in the subaccount (the trial and free-tier offerings work for learning).
  2. Assign yourself the Integration_Provisioner role collection and open the Integration Suite home page.
  3. Add capabilities: choose Cloud Integration, API Management and anything else you need. SAP provisions them in the background.
  4. Assign role collections to users so they can work.
Role collectionTypical user
PI_Integration_DeveloperBuilds and deploys iFlows and monitors messages
PI_Business_ExpertMonitors messages and reads payloads, without design rights
PI_AdministratorFull rights, including tenant settings and security material
PI_Read_OnlyViews content and monitoring only

Letting other systems call your iFlows

Senders authenticate against the tenant runtime. Create a service instance of SAP Process Integration Runtime with plan integration-flow, then a service key. The key gives a client ID and secret, which senders use for basic authentication or OAuth client credentials. Endpoints look like this:

https://<tenant>.it-cpi0xx-rt.cfapps.<region>.hana.ondemand.com/http/orders/create

Reaching on-premise systems

Cloud Integration cannot open connections into your network. The Cloud Connector, a small agent installed inside your network, opens a secure tunnel outward to BTP. You list exactly which internal hosts and paths are exposed. In the iFlow you choose proxy type On-Premise and use the virtual host name from the Cloud Connector.

Setting up the Cloud Connector

  1. Install the Cloud Connector on a server inside your network that can reach the backend.
  2. In its admin UI, add your subaccount (region, subaccount ID and a user with the right role).
  3. Under Cloud To On-Premise, add a system mapping: a virtual host and port (what BTP sees) pointing to the internal host and port (the real server).
  4. Add resources: the exact URL paths allowed, such as /sap/opu/odata/sap/API_BUSINESS_PARTNER. Everything else stays blocked.
  5. Check that the connector shows as connected in the BTP cockpit under Cloud Connectors.

Plan your tenant landscape

Production projects use at least two tenants, usually three: development, test and production, each in its own subaccount. Content moves from one to the next (module on operations), and each tenant connects to the matching backend systems.

SAP BTP (cloud) Cloud Integration Your network CloudConnector S/4HANA tunnel openedfrom inside

Lab 2 · Your tenant, ready to use

  1. Subscribe to Integration Suite in a trial or free-tier subaccount and add Cloud Integration and API Management.
  2. Assign yourself PI_Integration_Developer and PI_Administrator.
  3. Create a Process Integration Runtime instance with plan integration-flow and a service key. Save the client ID and secret.
Module 03

Prepackaged content and the Business Accelerator Hub

60 min · Hands-on

Before building anything, check whether SAP already has it. The SAP Business Accelerator Hub (formerly SAP API Business Hub) lists APIs, events and ready-made integration packages for SAP products, for example SuccessFactors to S/4HANA employee replication or Ariba to S/4HANA purchase orders.

Using a standard package

  1. In Integration Suite, open Discover → Integrations and search for the package.
  2. Copy it to your design workspace.
  3. Configure its externalized parameters: addresses, credentials, schedule. You do not change the flow itself.
  4. Deploy and test.

When SAP releases a new version, the package shows Update available. If you only configured parameters, updating is easy. If you edited the iFlow, it becomes yours and stops receiving SAP updates. This is why you should change standard content only through configuration, and extend it where SAP provides extension points.

Trying APIs first

Every API on the hub has a sandbox: you can call it with sample data straight from the browser and copy the generated code. Use it to understand payloads before you design mappings.

Project tip · Keep a list of every standard package you use and its version. Check for updates after each SAP release.

Lab 3 · Standard content

  1. Find an S/4HANA sales order API on the Business Accelerator Hub and call it in the sandbox.
  2. In Discover, copy any small standard integration package to your workspace.
  3. Open Configure, note which parameters are externalized, and deploy it with test values.
Module 04

Designing integration flows

2 h · iFlow build

An iFlow is drawn in the Design workspace inside an integration package. On the left is the sender, on the right the receiver, and in between the integration process with its steps.

The message model

Every step works on one message with three parts. Knowing which part to use is the key to building iFlows:

Message (Camel exchange) Headerssent to the receivere.g. SAP_ApplicationID Propertiesstay inside the iFlowe.g. orderId, country Bodythe payloadXML, JSON, CSV …

Headers can travel to the receiver (for example as HTTP headers), so keep internal values in exchange properties. You read them with expressions such as ${header.name}, ${property.orderId} and ${in.body}.

The steps you will use most

StepUse it to
Content ModifierSet headers, properties or a new body
RouterSend the message down different paths based on a condition
ConverterChange format: JSON ↔ XML, CSV ↔ XML
FilterKeep only part of the payload with XPath
General / Iterating Splitter + GatherProcess items one by one, then combine results
Request-ReplyCall a system and continue with its response
Content EnricherMerge data from a lookup call into the message
Process Call / Local Integration ProcessReuse logic inside the same iFlow
ProcessDirect adapterCall another iFlow on the same tenant, to build modular flows

Step by step in the designer

  1. Design → Create an integration package. Give it a clear name, a short description, a version and an owner.
  2. In the package, Add → Integration Flow. The editor opens with a Sender, an Integration Process and a Receiver.
  3. Drag a line from the Sender to the Start event and choose the adapter. Do the same from the End event to the Receiver.
  4. Add steps from the palette onto the process line. Click each step to configure it in the properties panel below.
  5. Save as version to keep a restore point, then Deploy. Watch the status in Monitor → Manage Integration Content until it shows Started.

Standards worth agreeing on day one

  • Package per business area or source system, e.g. Sales – S4 to CRM.
  • iFlow names that show direction and object: Order_S4_to_CRM_Outbound.
  • Address paths that follow the same pattern: /sales/order/create.
  • Every iFlow sets SAP_ApplicationID to the business key, so support can search by it.
  • Every iFlow has an Exception Subprocess and a log level policy.

Externalize, then deploy

Anything that differs between development, test and production, such as URLs, credential names and schedules, should be externalized as a parameter ({{CRM_URL}}). The same iFlow then moves through your landscape and is only configured, never edited.

Lab 4 · Your first end-to-end iFlow

  1. Create package SAPTechie Training and iFlow Order_S4_to_CRM.
  2. Sender: HTTPS adapter with address /orders/create.
  3. Add a Content Modifier that stores the order ID in property orderId, then a Router: orders with type B2B go one way, others the default way.
  4. Use a JSON-to-XML converter and send to a test receiver (e.g. a mock HTTP endpoint).
  5. Deploy and call it with Postman using your service key credentials.
Module 05

Mapping and scripting

3 h 30 min · Hands-on · includes every node function

Mapping changes data from the sender's structure to the receiver's. Cloud Integration gives you several tools. Choose the simplest one that does the job.

ToolBest for
Message MappingGraphical XML-to-XML mapping with source and target structures (XSD, WSDL, EDMX). Most common.
XSLT MappingComplex XML restructuring, grouping and sorting.
Groovy ScriptLogic that steps cannot express: calculations, custom formats, dynamic values, logging.
Value MappingTranslating codes between systems, such as country or unit codes, in a separate artifact.

Groovy in practice

Every script receives the message and returns it. You can read and set body, headers and properties, and add searchable values to the message log:

import com.sap.gateway.ip.core.customdev.util.Message
import groovy.json.JsonSlurper

def Message processData(Message message) {
    def order = new JsonSlurper().parse(message.getBody(java.io.Reader)).order
    message.setProperty("orderId", order.id)
    message.setHeader("SAP_ApplicationID", order.id)   // searchable in monitoring
    messageLogFactory.getMessageLog(message)?.addCustomHeaderProperty("Customer", order.customer)
    return message
}
Good practice · Read large bodies as a stream (java.io.Reader), not as one big String, to save memory. Never log full payloads with personal data in production.

Reusing scripts and mappings

Put shared Groovy functions, mappings and value mappings in a script collection or reusable artifact in the package, so several iFlows use one version.

Contexts and queues: the key to mapping

The graphical mapping does not process one value at a time. It processes queues: all values of a source field, in order. The values are grouped into contexts, and by default a field's context is its parent node. If two orders each have items, the item numbers arrive as one queue with a context change between the first order's items and the second order's items.

Queue for /Orders/Order/Item/ItemNo
1020context change10

Most mapping problems ("only the first item is mapped", "values end up under the wrong parent") are context problems. Use Display Queue in the mapping simulation to see the queue of any field or function output. You can also change a source field's context by right-clicking it and choosing a higher parent node.

A value can also be SUPPRESS, meaning "no value here", which is different from an empty string. Node functions are the tools for reshaping queues and contexts.

Every node function, with an example

Each card shows the mapping as you would draw it in the editor (source on the left, function in the middle, target on the right) and what the queue looks like before and after.

createIfcreateIf(condition)

Creates the target node only when the input is true. When it is false, the target node is not created at all.

Use it to: Create a segment or element only in certain cases, for example a Partner node only for B2B orders.

OrderType/Order/TypeequalsS"B2B"createIfPartner/CRMOrder/Partner
Input: OrderType
B2Bcontext changeB2C
Output
truecontext changefalse
Result
Partner is created for the first order only
removeContextsremoveContexts(values)

Removes all context changes, so every value ends up in one single context.

Use it to: Collect values that sit under different parents into one list, for example all item numbers of all orders.

ItemNo/Orders/Order/Item/ItemNoremoveContextsAllItems/Target/Item/No
Input
1020context change10
Output
102010
replaceValuereplaceValue(values) — parameter: value

Replaces every value with the fixed value you set, but keeps the number of values and the context structure.

Use it to: Create one target node per source occurrence when the source value itself is not needed, or set a constant per record.

Item/Order/ItemreplaceValuevalue = "X"Flag/Target/Item/Flag
Input
ABcontext changeC
Output
XXcontext changeX
existsexists(node)

Returns true if the source field exists in the context, otherwise false. One result per context.

Use it to: Check if an optional field was sent before mapping it, often combined with if or createIf.

Email/Customer/EmailexistsHasEmail/Target/HasEmail
Input (2 customers)
a@x.comcontext change(empty)
Output
truecontext changefalse
splitByValuesplitByValue(values) — each value | value change | empty value

Inserts context changes into a queue. Each value: after every value. Value change: whenever the value differs from the previous one. Empty value: where an empty value appears.

Use it to: Create one target parent per value, or group sorted records by a key such as customer number.

Customer/Lines/Line/CustomersplitByValuevalue changeCustomer/Target/Group/Customer
Input
C1C1C2
Output (value change)
C1C1context changeC2
Output (each value)
C1context changeC1context changeC2
collapseContextscollapseContexts(values)

Takes the first value of every context and puts them all into one context. An empty context becomes an empty value, so positions stay aligned.

Use it to: Get exactly one value per parent, e.g. the first phone number of each customer, as one flat list.

Phone/Customers/Customer/PhonecollapseContextsPhone/Target/Customer/Phone
Input
111222context change333context change(empty)
Output
111333""
useOneAsManyuseOneAsMany(value, count, structure)

Repeats a value as many times as another field occurs. Input 1 is the value (one per context), input 2 decides how many times, input 3 gives the context structure of the result.

Use it to: Copy a header value, such as the order number, onto every item line.

OrderNo/Orders/Order/OrderNoItem/Orders/Order/ItemItem/Orders/Order/ItemuseOneAsManyOrderNo/Target/Line/OrderNo
Input 1: OrderNo
1001context change1002
Input 2 and 3: Item
i1i2context changei3
Output
10011001context change1002
sortsort(values) — ascending/descending, lexical/numeric

Sorts the values inside each context. Choose ascending or descending and lexical or numeric comparison.

Use it to: Order lines by item number, or prepare values for splitByValue (value change).

ItemNo/Order/Item/ItemNosortnumeric, ascendingItemNo/Target/Item/ItemNo
Input
301020
Output
102030
sortByKeysortByKey(key, value)

Sorts the value queue using a second queue as the sort key. Both queues must have the same number of values.

Use it to: Sort item descriptions by item number, while mapping only the descriptions.

ItemNo (key)/Order/Item/ItemNoText (value)/Order/Item/TextsortByKeynumericText/Target/Item/Text
Key
312
Value
CableBoltNut
Output
BoltNutCable
mapWithDefaultmapWithDefault(value) — parameter: default

Passes values through, but replaces missing (suppressed) values with a default, so the target field is always filled.

Use it to: Mandatory target fields where the source is optional, e.g. a currency that defaults to EUR.

Currency/Order/Item/CurrencymapWithDefaultdefault = "EUR"Currency/Target/Item/Currency
Input
USDSUPPRESSGBP
Output
USDEURGBP
formatByExampleformatByExample(values, example)

Takes the values of the first input and splits them into contexts exactly like the second input (the example).

Use it to: Re-group a flat list of values back under the right parents after you removed or changed contexts.

Value/Source/ValueExample/Source/Group/FieldformatByExampleValue/Target/Group/Value
Input 1: values
ABC
Input 2: example
xxcontext changex
Output
ABcontext changeC
copyValuecopyValue(values) — parameter: position

Returns the value at a given position of a repeating field. Position 0 is the first occurrence.

Use it to: Take a specific occurrence, e.g. the second address line, from a repeating source field.

Line/Address/LinecopyValueposition = 1Street2/Target/Street2
Input
Main St 1Building BFloor 3
Output
Building B
getHeadergetHeader() — parameter: header name

Reads a message header from the iFlow into the mapping.

Use it to: Use runtime values set before the mapping, such as SAP_ApplicationID or a header from the sender.

Constant(no source needed)getHeaderSAP_ApplicationIDReference/Target/Reference
Header value at runtime
4500012871
Output
4500012871
getPropertygetProperty() — parameter: property name

Reads an exchange property from the iFlow into the mapping.

Use it to: Bring in values computed earlier, like a lookup result or the target system ID, without putting them in the payload.

Constant(no source needed)getPropertytargetSystemSystem/Target/System
Property value at runtime
CRM_PROD
Output
CRM_PROD

The other function categories

CategoryFunctionsTypical use
Arithmeticadd, subtract, multiply, divide, abs, round, ceil, floor, max, min, sqrt, power, formatNumber, counterTotals, unit conversions, number formats
Booleanand, or, not, equals, notEquals, if, ifWithoutElse, isNilConditions for if and createIf
Constantsconstant, sender, receiverFixed values and the sender or receiver name
ConversionsfixValues, valueMappingCode translation inside the mapping or from a value mapping artifact
DatecurrentDate, dateTrans, dateBefore, dateAfter, compareDatesChanging formats such as yyyyMMdd to yyyy-MM-dd
Statisticsum, average, count, indexLine counts, totals, numbering items 1, 2, 3
Textconcat, substring, equalsS, indexOf, lastIndexOf, compare, replaceString, length, startsWith, endsWith, toUpperCase, toLowerCase, trimBuilding names, cutting codes, comparing text
Custom (Groovy)Your own script functionsLogic no standard function covers

Custom functions in Groovy

When no standard function fits, add a script function to the mapping. A simple function works on one value at a time. For queue-based logic, which works on all values and contexts at once, declare Output and MappingContext parameters:

import com.sap.it.api.mapping.*

// Single value: called once per value
def String toSapDate(String isoDate) {
    return isoDate?.replace("-", "")        // 2026-10-17 -> 20261017
}

// Queue-based: gets all values of the context at once
def void lastValue(String[] values, Output output, MappingContext context) {
    if (values.length > 0) output.addValue(values[values.length - 1])
}

Lab 5 · Map the order

  1. Upload a source XSD for the S/4HANA order and a target XSD for the CRM.
  2. Build a Message Mapping including a date format change and a concatenated full name.
  3. Add a Value Mapping for country codes (DE → Germany, IN → India) and use it in the mapping.
  4. Add the Groovy script above so each message shows its order ID and customer in monitoring.
Module 06

Adapters and connectivity

90 min · Concepts + hands-on

Adapters connect the iFlow to the outside world. A sender adapter receives or fetches messages; a receiver adapter sends them on.

AdapterTypical use
HTTPS / HTTPREST calls in and out
SOAPWeb services, including SAP's SOAP APIs
OData (V2/V4)S/4HANA and SuccessFactors APIs with query and batch support
IDoc and RFCClassic SAP ERP and S/4HANA on-premise interfaces
SFTP and MailFiles and e-mails, often scheduled polling
JMS, ProcessDirectInternal: queues for reliability, direct calls between iFlows
AS2, AS4B2B document exchange with partners
AMQP, Kafka, AdvancedEventMeshMessaging and event brokers
SuccessFactors, Ariba, Salesforce and othersApplication-specific adapters

When no adapter exists, you can call the system's API over HTTP, use Open Connectors for popular SaaS apps, or build a custom adapter with the Adapter Development Kit.

Key settings by adapter

AdapterSettings you always check
HTTPS senderAddress path, user role or client certificate, CSRF protection
HTTP receiverAddress, method, proxy type, authentication and credential name, timeout, which headers to forward
OData receiverService address, operation (Query, Create, Update…), entity, $select and $filter, paging, batch
IDoc senderAddress path; the S/4HANA side needs an RFC destination of type G and a partner profile
SFTP senderDirectory, file name pattern, post-processing (delete, move, keep), schedule, Known Hosts
Mail receiverMail server, protection (STARTTLS), credential, attachments

Polling and scheduling

Some senders push messages in (HTTPS, SOAP, IDoc). Others must be pulled: SFTP, Mail and OData senders poll on a schedule. Use a Timer start event for iFlows that should run on their own, such as a nightly master data sync.

On-premise systems

For IDoc, RFC, SOAP or OData calls to S/4HANA on-premise, set the adapter's proxy type to On-Premise, use the Cloud Connector virtual host, and fill the Location ID if your subaccount has several Cloud Connectors.

Lab 6 · Two adapters

  1. Add an OData receiver that reads business partner data from the S/4HANA sandbox API (from module 3) with a Request-Reply step.
  2. Create a second iFlow with an SFTP sender that polls a folder every 5 minutes and posts each file to your first iFlow via ProcessDirect.
Module 07

Security

90 min · Configuration

Security in Cloud Integration has three layers: who may call your iFlow, how your iFlow logs into other systems, and how the data itself is protected.

Inbound: who may call

  • Role-based (default): the sender authenticates with the service key client ID and secret, by basic authentication or OAuth.
  • Client certificate: the sender presents a certificate that you map to the service instance.
  • Restrict access per iFlow with a custom user role when different senders should reach different flows.

Outbound: logging into receivers

Never type passwords into an adapter. Store them in Monitor → Security Material and refer to them by name:

Security materialUse
User CredentialsBasic authentication user and password
OAuth2 Client CredentialsToken URL, client ID and secret; the tenant fetches tokens for you
OAuth2 Authorization Code / SAML BearerCalls on behalf of a user, e.g. to Microsoft 365 or SuccessFactors
Keystore entriesYour key pairs and the trusted certificates of partners
Known Hosts (SSH)Trusted SFTP servers
PGP keysEncrypting and signing files

Message-level security

When transport encryption (TLS) is not enough, for example for files that pass through other hands, use the PGP Encryptor/Decryptor or PKCS#7 / XML signature steps to encrypt and sign the payload itself.

Production rule · Separate credentials per environment and per receiver, and track certificate expiry dates. An expired certificate is one of the most common causes of sudden integration outages.

Lab 7 · Secure your flow

  1. Create an OAuth2 Client Credentials entry for the CRM and use it in the receiver adapter.
  2. Add a custom user role so only one service key can call /orders/create.
  3. Upload a test SFTP server's host key to Known Hosts and connect.
Module 08

Reliability and error handling

2 h · Patterns

Real receivers go down. A production iFlow must never lose a message and must make failures visible. Cloud Integration gives you the building blocks.

Exception Subprocess

Add an Exception Subprocess to the integration process. When any step fails, control jumps there instead of simply failing. Inside, you can log the error (${exception.message}), send an alert e-mail, return a clean error response to the sender, or store the message for later.

Asynchronous decoupling with JMS

Split one iFlow into two. The first receives the message and puts it on a JMS queue, then answers the sender at once. The second reads from the queue and calls the receiver. If the receiver is down, the message stays on the queue and is retried automatically with an increasing wait. After a set number of retries you can route it to a separate error handling path.

Sender iFlow 1receive + store JMS queue iFlow 2send + retry CRM failed → back on the queue, retried later

Other tools

  • Data Store: save a message or value for later, e.g. hold orders until a nightly batch, or keep failed messages for reprocessing.
  • Idempotent Process Call: skip messages whose ID was already processed, so retries and resends never create duplicates.
  • Escalation and alerting: in the Exception Subprocess, end with an Error End event when the message should show as Failed, or an Escalation End event for business errors you want to separate from technical ones.
  • Global and local variables: remember values between runs, such as the last successful sync time for delta loads.

Lab 8 · Make it unbreakable

  1. Split Order_S4_to_CRM into an inbound iFlow writing to JMS queue ORDERS_CRM and an outbound iFlow reading from it.
  2. Set the retry interval and maximum retries on the JMS sender.
  3. Stop the receiver (or use a wrong URL), send three orders, and watch them wait and retry in Manage JMS Queues.
  4. Add an Exception Subprocess that writes failed messages to a Data Store after the last retry.
Module 09

Exposing integrations as APIs with API Management

2 h · Hands-on

An iFlow endpoint works, but it is not a product. It has no rate limits, no self-service onboarding for consumers, no analytics and no single place to find it. API Management puts a managed layer in front of your iFlows and backend services.

The building blocks

ObjectWhat it is
API providerA connection to a backend, such as your Cloud Integration tenant or an on-premise S/4HANA through the Cloud Connector
API proxyThe public facade consumers call. It forwards to the target endpoint and applies policies on the way in and out
PoliciesRules attached to the proxy flow: security, traffic control, mediation, caching
ProductA bundle of one or more proxies that consumers subscribe to
ApplicationA consumer's subscription to a product, which issues an API key and secret
API Business Hub EnterpriseYour developer portal, where consumers discover products and create applications

Policies you will use most

  • Verify API Key or OAuth v2.0: only registered applications get through.
  • Spike Arrest: smooths traffic bursts, e.g. at most 10 calls per second.
  • Quota: limits calls per application per day or month.
  • Assign Message and JavaScript: add headers, set the backend credentials, reshape requests.
  • Response Cache: serve repeated read requests without calling the backend.
  • Raise Fault: return clean, consistent error messages.

Putting an iFlow behind API Management, step by step

  1. Create an API provider of type Cloud Integration that points to your tenant, with the service key credentials from module 2.
  2. Create an API proxy from that provider. API Management lists your deployed HTTP iFlow endpoints, so pick /orders/create.
  3. Add a Verify API Key policy on the incoming request, and a policy that sets the tenant's credentials on the target request, so consumers never see them.
  4. Add Spike Arrest, then deploy the proxy.
  5. Create a product containing the proxy and publish it to API Business Hub Enterprise.
  6. As a consumer, subscribe to the product, create an application, and call the proxy with the issued API key.

OData services work the same way: create a provider for S/4HANA on-premise and a proxy for an OData service, and API Management can even generate the proxy definition from the service metadata.

Design idea · Treat APIs as products with owners, versions and documentation. "API-first" means designing the interface before building the integration behind it.

Lab 9 · Your first managed API

  1. Create an API provider for your Cloud Integration tenant.
  2. Create a proxy for /orders/create with Verify API Key and Spike Arrest (5 calls per second).
  3. Publish a product "Order API" and subscribe to it from API Business Hub Enterprise.
  4. Call the proxy six times in one second and observe the Spike Arrest response, then check the analytics dashboard.
Module 10

Third-party applications with Open Connectors

90 min · Hands-on

Every SaaS application has its own API style, authentication and pagination rules. Learning each one takes time. Open Connectors provides prebuilt connectors to many popular third-party apps (CRM, marketing, collaboration, storage and more) and exposes all of them as normalized REST APIs with the same patterns.

Key ideas

  • Connector: the prebuilt integration for one application, such as HubSpot or Salesforce.
  • Connector instance: a connector authenticated to your account in that app. Open Connectors stores the tokens and refreshes them.
  • Common resources: your own canonical data model, such as a "contact" with your field names, mapped to each app's fields with transformations. One integration then works with several CRMs.
  • Events: instances can notify you of changes through webhooks or polling.

Calling it from Cloud Integration

  1. Create a connector instance in Open Connectors and note the user secret, organization secret and element token shown in its API docs.
  2. In Cloud Integration security material, create an Open Connectors credential with those three values.
  3. Add a receiver with the Open Connectors adapter, choose the base URI of the instance, the resource (e.g. /contacts) and the method.
  4. Map your S/4HANA data to the normalized JSON and send it.

You can also put an Open Connectors instance behind API Management (module 9) to give partners a governed API to the third-party app.

Lab 10 · S/4HANA customer to a CRM

  1. Create a free account in a supported CRM and a connector instance for it.
  2. Test GET /contacts in the instance's API docs.
  3. Build an iFlow that receives a business partner, maps it to a contact and creates it with the Open Connectors adapter.
  4. Define a common resource "saptechie-contact" and use it instead of the app-specific fields.
Module 11

Event-driven integration

90 min · Concepts + hands-on

So far, every flow was triggered by a sender calling the iFlow or by a schedule. In event-driven integration, a system announces that something happened, such as "business partner changed", and every interested receiver reacts. The sender does not wait and does not know the receivers.

Why use events

  • Real time without polling: no more "check every 5 minutes for changes".
  • Decoupling: add a new consumer without touching S/4HANA or existing flows.
  • Resilience: a broker holds events in queues while a consumer is down.

Brokers and patterns

An event broker sits in the middle. SAP offers SAP Event Mesh for simpler SAP-centric scenarios and Advanced Event Mesh for enterprise scale; both work with Integration Suite. Brokers support two main patterns:

PatternHow it worksExample
Queue (point to point)Each message is processed by one consumerAn iFlow working through new orders
Topic (publish/subscribe)Each subscriber gets its own copyCRM, warehouse and analytics all receive "order created"

In practice you combine them: publish to a topic, and give each consumer its own queue subscribed to the topic, so every consumer gets every event and none is lost while it is offline.

S/4HANA events into Cloud Integration

  1. Configure S/4HANA to publish standard business events to the broker (Enterprise Event Enablement, with a channel and outbound bindings).
  2. Create a queue per consumer, subscribed to the relevant event topics.
  3. In Cloud Integration, use the AMQP sender adapter (or the broker's own adapter) to consume the queue.
  4. Because events usually carry only the key, add a Request-Reply to read the full object from S/4HANA, then map and send it.
Remember · Events can arrive more than once. Combine them with the Idempotent Process Call from the reliability module.

Lab 11 · Event-driven business partner sync

  1. Create a queue Q_CRM_BP subscribed to business partner change events.
  2. Publish a test event to the topic and confirm it lands on the queue.
  3. Build an iFlow with an AMQP sender on the queue that reads the partner from the S/4HANA sandbox API and sends it to your CRM flow.
Module 12

B2B integration

90 min · Concepts

Business-to-business integration exchanges documents with external partners: customers send purchase orders, you send invoices and delivery notices. Partners usually use EDI standards such as UN/EDIFACT or ANSI ASC X12, over protocols like AS2 or SFTP.

Integration Advisor

Mapping a full EDI message by hand takes days. Integration Advisor speeds it up:

  • A type system library contains the standards (EDIFACT, X12, SAP IDoc, cXML and more).
  • A Message Implementation Guideline (MIG) describes exactly which parts of a standard message a partner uses.
  • A Mapping Guideline (MAG) maps one MIG to another, with machine-learning proposals based on many earlier mappings.
  • From a MAG you generate runtime artifacts that run in Cloud Integration.

Trading Partner Management

With dozens of partners, one iFlow per partner becomes unmanageable. Trading Partner Management stores partner profiles (identifiers, protocols, certificates) and agreements (which documents, which MIGs and MAGs). Generic, SAP-provided iFlows then process every partner's messages based on these agreements, so onboarding a partner is configuration, not development.

Where B2B differs · Partners need acknowledgements (functional acknowledgements such as CONTRL or 997), strict validation, and audit trails. Plan these from the start.

Lab 12 · A partner's purchase order

  1. In Integration Advisor, create a MIG for an EDIFACT ORDERS message with only the segments your partner sends.
  2. Create a MIG for the SAP ORDERS05 IDoc and a MAG between them. Review the proposals.
  3. In Trading Partner Management, create a partner profile and an agreement using your MAG.
Module 13

Operations, transport and PI/PO migration

2 h · Production

Monitoring

Monitor → Message Processing shows every message with its status: Completed, Failed, Retry, Escalated or Processing. Open one to see its message processing log (MPL), step by step. Search by your custom header properties, such as order ID, from module 5.

To see payloads at each step, raise the iFlow's log level to Trace. Trace switches back automatically after a short time, and it stores message content, so use it only while debugging.

Manage Integration Content shows deployed artifacts and their endpoints. Manage Stores covers JMS queues, data stores and variables. Set up alerting so failures reach your team instead of waiting to be noticed.

Moving content between tenants

Develop in a dev tenant, test in a test tenant, run in production. Move packages with the SAP Cloud Transport Management service (recommended) or CTS+, or by export and import for small setups. Because you externalized parameters, you only configure values in each tenant.

Moving from SAP PI/PO

Many companies still run SAP Process Orchestration on-premise. Its mainstream maintenance ends in 2027, so migration to Integration Suite is a common project today:

  1. Migration Assessment reads your PI/PO system and classifies each interface by effort.
  2. The migration tooling in Cloud Integration converts many integration scenarios into iFlows using templates.
  3. Interfaces that need to stay close to on-premise systems can run on Edge Integration Cell.
  4. Retest everything; mappings and adapters often need adjustments.
Interview favourite · Be ready to explain how you would migrate one real PI/PO interface: assessment, migration, adapter changes, security, testing and cut-over.

Lab 13 · Run it like production

  1. Send ten orders through your flow, including two failures, and find each failed one by order ID in Message Processing.
  2. Switch the outbound iFlow to Trace, send one message, and inspect the payload after each step.
  3. Export your package and import it as a copy, then set its parameters for a "test" environment.
Module 14

Live example: the Pipeline Concept, synchronous and asynchronous

3 h · Real project pattern · PI/PO migration

Companies moving from SAP Process Orchestration often have hundreds of interfaces. Building each one as a complete, separate iFlow means hundreds of copies of the same logic: receiving, queuing, retries, routing, error handling. SAP's Pipeline Concept solves this. A small set of generic iFlows, delivered by SAP as standard content, handles everything that is the same for every interface. You build only the part that is different: the mapping and the receiver call. Routing rules live in the Partner Directory, not in code.

It works like SAP PO's own pipeline: inbound processing, receiver determination, interface determination, mapping and outbound processing. This makes PO interfaces much easier to migrate, because the PO routing rules can be reused as XSLT.

The generic iFlows in the standard packages

SAP delivers the pipeline in three packages. These are the iFlows they contain (version 2 of the pipeline):

PackageiFlowJobAdapters
Generic InboundStep01 · Inbound Processing for IDocEntry point for IDocs from SAP systemsIDoc sender → JMS, ProcessDirect
Step01 · Inbound Processing for XIEntry point for ABAP proxies and PO/XI senders, sync or asyncXI sender → JMS, ProcessDirect
Generic PipelinesStep02 · Inbound ProcessingReads the inbound queue and calls an optional inbound conversionJMS sender → ProcessDirect, JMS
Step02 · Integrated Messaging Runtime AsyncInbound conversion, receiver and interface determination in one flow (fewer queues)JMS sender → ProcessDirect, JMS
Step02 · Integrated Messaging Runtime SyncContent-based routing for synchronous callsProcessDirect sender → ProcessDirect
Step04 · Receiver DeterminationFinds the receivers using XSLT from the Partner DirectoryJMS sender → JMS
Step05 · Interface DeterminationFinds the outbound interface (and its flow) per receiverJMS sender → JMS (receiver-specific queue)
Generic OutboundStep06 · Outbound ProcessingReads the outbound queue and calls the scenario flowJMS sender → ProcessDirect
Step08 · Outbound Processing for IDocReusable IDoc channel to SAP backendsProcessDirect sender → IDoc receiver
Step08 · Outbound Processing for XIReusable XI channel to ABAP proxiesProcessDirect sender → XI receiver

The one flow you build per interface is Step07, scenario-specific outbound processing: a ProcessDirect sender, your mapping, and the receiver adapter (or a call to a Step08 flow).

Asynchronous flow, step by step

S/4HANAIDoc / proxy Step01Inbound queue Step02Inbound conv. queue Step04Receiver det. Step05Interface det. receiverqueue Step06Outbound Step07 (yours)mapping + receiver ReceiverCRM / SAP / partner Partner Directoryrouting XSLT, endpoints, queues per Pid ProcessDirect
  1. Step01 Inbound receives the IDoc (IDoc sender, address /PIP/IDoc) or proxy message (XI sender, /PIP/XI). It authenticates the sender (role ESBMessaging.send), checks for duplicates with an Idempotent Process Call, adds searchable custom header properties, and writes the message to the inbound JMS queue. The sender gets its answer immediately.
  2. Step02 Inbound Processing reads the queue. If an inbound conversion is configured for this interface (for example flat file to XML), it calls it through ProcessDirect.
  3. Step04 Receiver Determination builds the Partner ID (Pid) from sender and interface, loads the receiverDetermination XSLT from the Partner Directory and runs it on the payload. The result is a list of receivers. If none is found, ReceiverNotDeterminedType decides: raise an error, ignore the message, or use ReceiverNotDeterminedDefault.
  4. Step05 Interface Determination runs interfaceDetermination_<receiver> for each receiver. It returns the outbound interface and the ProcessDirect address of the Step07 flow, and splits the message so each receiver has its own copy on its own queue (ReceiverSpecificQueue if set). A slow receiver no longer blocks the others.
  5. Step06 Outbound Processing reads the receiver queue and calls the endpoint in header SAP_OutboundProcessingEndpoint through ProcessDirect.
  6. Step07, your flow, maps the message and sends it with the receiver adapter, or hands it to a Step08 generic channel for IDoc or XI receivers.

The Integrated Messaging Runtime Async variant does steps 2, 4 and 5 in one iFlow with fewer queues. Use it when you do not need separate queues between those steps; it saves JMS resources.

Synchronous flow

Senderwaits for reply Step01XI inbound Step02 Syncreceiver + interface det. Step07 (yours)map + call Receiver /PIP/XS01SAP_Outbound…Endpoint response travels back the same way; no JMS queues

For a synchronous call, such as a stock check, the sender waits for the answer, so there are no queues. Step01 forwards the request through ProcessDirect to /PIP/XS01, the Integrated Messaging Runtime Sync flow. It determines the single receiver and interface, calls your Step07 flow, and returns the response. Technical headers are removed from the response, and errors go straight back to the sender, which is where synchronous errors belong.

Live example 1 (asynchronous): S/4HANA sales order IDoc to a CRM

Scenario: S/4HANA sends ORDERS05 IDocs. Orders for sales organization 1000 go to the CRM as JSON over REST. Here is everything you configure.

1. Deploy the generic flows once. Copy the three packages and configure the externalized parameters. These are the important ones:

ParameterExample valueMeaning
PipelinePrefixPIPPrefix for queues and ProcessDirect addresses
IDocEntryPoint / XIEntryPoint/PIP/IDoc, /PIP/XISender addresses that S/4HANA calls
SenderAuthType / UserRoleRoleBased / ESBMessaging.sendHow senders authenticate
DefaultJMSQueueNumberX01Default inbound queue (PIP + X01)
JMS_ExpirationPeriod, JMS_RetentionThreshold30 days, 2 daysHow long messages are kept, and when a stuck message raises an alert
JMS_MaxRetryInterval, JMS_ExponentialBackoff60 min, onRetry timing for failed messages
JMS_DLQ, DLQ_EndEventon, EscalatedMove messages to a dead-letter queue after the retries, and show them as Escalated
CustomXPreGlobal_Enabled / CustomXError_EnabledfalseSwitch on custom exits for pre-processing or error handling

2. Point S/4HANA at the pipeline. Create an RFC destination of type G to the tenant host with path prefix /cxf/PIP/IDoc, a port for it in WE21, and a partner profile in WE20 that sends ORDERS05 through that port. Use the service key from module 2 for the logon.

3. Configure the Partner Directory for this Pid (sender plus interface):

Partner Directory entryTypeContent
receiverDeterminationBinary (XSLT)Returns receiver CRM when sales org is 1000
interfaceDetermination_CRMBinary (XSLT)Returns the outbound interface and Step07 endpoint /pip/07/OrderToCRM
ReceiverNotDeterminedTypeStringError, Ignore or Default
ReceiverSpecificQueue_CRMString (optional)A dedicated queue for the CRM

A simplified receiver determination XSLT looks like this. In a PO migration, you export it from the PO receiver determination instead of writing it.

<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:ns0="http://sap.com/xi/XI/System">
  <xsl:template match="/">
    <ns0:Receivers>
      <ReceiverNotDetermined><Type>Error</Type></ReceiverNotDetermined>
      <!-- route by sales organization -->
      <xsl:if test="//E1EDK14[QUALF='008']/ORGID = '1000'">
        <Receiver><Service>CRM</Service></Receiver>
      </xsl:if>
    </ns0:Receivers>
  </xsl:template>
</xsl:stylesheet>

4. Build the Step07 iFlow, the only new iFlow for this interface:

  1. Sender: ProcessDirect, address /pip/07/OrderToCRM.
  2. Message Mapping ORDERS05 → CRM order XML. Use useOneAsMany to copy the order number onto each item, and createIf for optional partner segments (see the node functions in module 5).
  3. XML to JSON converter.
  4. Content Modifier sets Content-Type: application/json.
  5. Receiver: HTTP adapter, POST to the CRM API, authentication OAuth2 Client Credentials from Security Material.
  6. Exception Subprocess that raises the error, so the pipeline's JMS retry takes over. Do not swallow errors in Step07.

5. Test and monitor. Send an IDoc from WE19. In Message Processing you see one log per pipeline step. They share the same correlation ID, so you can follow the message from Step01 to Step07. Failed messages wait in the queue and retry; after the last retry they move to the dead-letter queue (…_DLQ) and show as Escalated.

Live example 2 (synchronous): stock check from S/4HANA

  1. S/4HANA calls an ABAP proxy synchronously. The SOAMANAGER logical port points to the XI entry point /PIP/XI.
  2. Step01 for XI receives it and forwards it to /PIP/XS01 because the call is synchronous (quality of service Best Effort).
  3. The Sync runtime uses the Partner Directory XSLT to pick receiver WMS and Step07 endpoint /pip/07/StockCheck.
  4. Your Step07 maps the request to the warehouse REST call, sends it with Request-Reply, maps the response back to the proxy response structure, and ends.
  5. The answer travels back through the Sync runtime and Step01 to S/4HANA. If the warehouse is down, S/4HANA receives the error immediately.

Choosing the outbound channel in Step08

The generic IDoc outbound flow contains a receiver channel for each combination of connection (on-premise through the Cloud Connector, or internet), authentication (Basic, client certificate, principal propagation or none) and packaging (single IDoc or IDoc package). Properties such as Receiver_IDocEndpoint and Receiver_IDocCredentialName, set from the Partner Directory, decide which channel runs. One generic flow then serves every SAP backend, and it also sets the IDoc control record (EDIDC: sender port and partner, receiver port and partner) from defaults or from the message. The XI outbound flow works the same way for ABAP proxies.

Custom exits

Every generic flow can call your own iFlows at fixed points through ProcessDirect: global pre-processing (CustomXPreGlobal, for all interfaces), scenario-specific exits per Pid, custom receiver and interface determination flows instead of XSLT, and custom error handling (CustomXError), for example to open a ticket. You switch them on with the …_Enabled parameters or Partner Directory entries, so the SAP flows themselves stay unchanged and updatable.

Golden rule · Never edit the generic pipeline iFlows. Configure them, and put your logic into Step07 flows and custom exits. That way you can take SAP's updates to the pipeline packages.

Reference: SAP's "Pipeline Concept" and "Migration Guide for SAP Process Orchestration" on help.sap.com, and the Cloud Integration Pipeline packages on the SAP Business Accelerator Hub.

Lab 14 · Run your first pipeline interface

  1. Copy the Generic Inbound, Generic Pipelines and Generic Outbound packages, configure the prefix and JMS parameters, and deploy them.
  2. Create the Partner Directory entries for a test Pid with a receiver determination XSLT that always returns one receiver.
  3. Build a Step07 flow with a ProcessDirect sender and an HTTP receiver to a test endpoint.
  4. Post a test IDoc to /PIP/IDoc and follow it through every step using the correlation ID.
  5. Break the receiver URL and watch the retries, then the DLQ.
Module 15

Solution blueprints: architecture in real projects

2 h · Architecture

Knowing the tools is half the job. The other half is choosing the right combination for a company's situation. These blueprints are patterns you will meet repeatedly as an integration consultant or architect.

1 · Integration strategy and a Center of Excellence

Large companies often have several middleware tools and no common rules. A good first step is an integration strategy: which integration styles exist, which tool is used for each, naming standards, security rules and a review process. SAP's Integration Solution Advisory Methodology (ISA-M) and the Integration Assessment capability help structure this. A small Integration Center of Excellence owns the standards, reusable assets and governance.

2 · Moving from SAP ERP to S/4HANA

During a migration, old and new systems run side by side for months or years. Integration Suite sits between them and the rest of the landscape, so partner and SaaS integrations point to one stable layer while the backend changes behind it. Interfaces are switched from ECC to S/4HANA one by one, often by changing a receiver configuration rather than rebuilding the flow.

3 · Digital integration hub

Mobile apps, portals and partners may call the same backend data thousands of times per minute. Instead of hitting S/4HANA directly, a digital integration hub keeps a copy of frequently read data in a fast store, synchronized from the backend with iFlows or events. API Management serves reads from that store and sends writes through to the backend. The core system is protected and response times stay low.

4 · Hybrid, enterprise-wide landscape

Most enterprises have cloud and on-premise systems from SAP and many other vendors. A common target picture: Cloud Integration for process integration, API Management as the single entry point for APIs, an event broker for real-time distribution, Trading Partner Management for B2B, the Cloud Connector or Edge Integration Cell for on-premise reach, and central monitoring over all of it.

5 · Common SAP scenarios to practise

ScenarioTypical building blocks
SuccessFactors employees to S/4HANAStandard package, SuccessFactors adapter, value mappings
Ariba purchase orders to S/4HANAStandard package, cXML, Cloud Connector
Salesforce accounts to S/4HANA business partnersOpen Connectors or Salesforce adapter, OData receiver
EDI orders from customersAS2, Integration Advisor, Trading Partner Management, IDoc
Bank statements and paymentsSFTP, PGP, scheduled iFlows
E-invoicing to tax authoritiesStandard country packages, signatures, monitoring

Lab 15 · Design a landscape

  1. Pick one company scenario: a manufacturer moving from ECC to S/4HANA with Salesforce, SuccessFactors and 40 EDI customers.
  2. Draw the target integration architecture using the capabilities in this course.
  3. For each interface, write the integration style, tool and whether standard content exists.