SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Build a Supply Risk API with API Composition

Use API Composition in SAP Integration Suite to compose supplier, plant, stock, and risk data from four APIs into a single unified Business Data Graph.

Overview

You will learn

  • How to create a Business Data Graph composing four backend APIs into a single unified OData endpoint
  • How to create a Model Extension and define a Custom Entity that joins data from multiple sources
  • How to activate the Business Data Graph and retrieve the OData URL and OpenAPI Specification
  • How to explore and test composed API using the API Composition Navigator
Shyam S Shyam September 24, 2026
Created on September 23, 2026
Contributors

More from Shyam

See all 2 tutorials by Shyam →

Prerequisites

Prerequisites

If you don’t have an SAP Integration Suite tenant yet, the quickest path is a free SAP BTP Trial account:

Refer to the API Composition Initial Setup guide for full details.

Steps

Scenario

Company: BestRun

Challenge: The company BestRun wants to optimize their procurement process by establishing a Risk Assessment Process using an AI Agent.

Data Sources:

SourceContent
Business Partner APISupplier details
Risk Analytics APIThird party API (e.g. Everstream system) that exposes risk associated with a location
Plant APIPlant details
Material APIMaterial, Storage location, stock levels, and batch details

[!NOTE] All these APIs are mock APIs publicly hosted for trial. They can be used to create a composed API via Business Data Graph, as detailed in this exercise.

Goal: Select most reliable supplier for each material taking into consideration the risk associated with a location of the plant, stock levels of the material at a plant and physical distance of the plant from delivery location.

MCP Scenario Diagram
MCP Scenario Diagram

Step 1 Step 1 — Set Up the Four Destinations

Before creating the Business Data Graph, configure four HTTP destinations in your SAP BTP subaccount. Each destination points to one of the publicly hosted mock APIs as mentioned below:

DestinationPathRepresents
LocationRiskhttps://api-composition-plant-material-risk.cfapps.eu20-002.hana.ondemand.com/location-risk/Location risk data (Everstream mock)
S4_API_MATERIAL_STOCK_SRVhttps://api-composition-plant-material-risk.cfapps.eu20-002.hana.ondemand.com/material-stock/Material stock levels (S/4HANA mock)
S4_sap-s4-ce-plant-0001-v1https://api-composition-plant-material-risk.cfapps.eu20-002.hana.ondemand.com/plant/Plant details (S/4HANA mock)
s4hana_api_business-partnerhttps://api-composition-plant-material-risk.cfapps.eu20-002.hana.ondemand.com/business-partner/Supplier / Business Partner data

Repeat the steps below for each destination.

From SAP Integration Suite, click the grid icon (⠿) in the top-right navigation bar and select SAP BTP Cockpit.

SAP Integration Suite — grid icon menu with SAP BTP Cockpit selected
SAP Integration Suite — grid icon menu with SAP BTP Cockpit selected

In the BTP Cockpit, go to your subaccount. In the left sidebar, navigate to Connectivity → Destinations and click Create.

BTP Cockpit — Connectivity → Destinations list with Create highlighted
BTP Cockpit — Connectivity → Destinations list with Create highlighted

Fill in the following fields, then click Save.

FieldValue
Name(destination name from the table above, e.g. LocationRisk)
TypeHTTP
Proxy TypeInternet
URL(URL from the table above, e.g. https://api-composition-plant-material-risk.cfapps.eu20-002.hana.ondemand.com/location-risk/)
AuthenticationNoAuthentication

Under Additional Properties, add:

KeyValue
IntegrationCell.Includetrue

Create Destination form — example for_LocationRisk
Create Destination form — example for_LocationRisk

The IntegrationCell.Include = true additional property is required to make the destination visible in the Integration Cell runtime. Without it, the destination will not appear when selecting data sources for a Business Data Graph.


Step 2 Step 2 — Create a New Business Data Graph
+
Step 3 Step 3 — Configure, Analyze and Review
+
Step 4 Step 4 — Activate the Business Data Graph
+
Step 5 Step 5 — Create a Model Extension
+
Step 6 Step 6 — Create a Custom Entity
+
Step 7 Step 7 — Connect the Model Extension to the Business Data Graph
+
Step 8 Step 8 — Explore and Test via API Composition Navigator
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 8
1. Step 1 — Set Up the Four Destinations 2. Step 2 — Create a New Business Data Graph 3. Step 3 — Configure, Analyze and Review 4. Step 4 — Activate the Business Data Graph 5. Step 5 — Create a Model Extension 6. Step 6 — Create a Custom Entity 7. Step 7 — Connect the Model Extension to the Business Data Graph 8. Step 8 — Explore and Test via API Composition Navigator
Next