Graph is a new and innovative feature of API Management, part of the SAP Integration Suite. Expanding on traditional API Management, Graph allows you to present all your business data as a semantically connected data graph, accessible through a single, unified, and powerful API.
SAP Graph is generally available as a core capability within SAP Integration Suite includes the following new features:
Graph Capability in Integration Suite:
Graph can be used in any SAP Integration Suite plan where API Management is available (including SAP BTP trial accounts), but not necessarily in every region where API Management is available. For more details about the regional availability of Graph, be sure to check out SAP Note 3338820.
Enabling Graph on your Integration Suite
Ensuring the Required Roles and Enabling Graph
Note: Graph requires SAP API Management to be activated.
Assigning Roles for Graph
Once Graph is enabled, you will see two additional Role Collections in the SAP BTP Cockpit:
To proceed, go to your SAP BTP Cockpit and assign these Role Collections to your user.
Note the term: Business Data Graphs. SAP refers to Graphs as BDGs or Business Data Graphs in their documentation.
That's it, you are all set for Configuring BDGs or Business Data Graphs! Logout and Log back on Integration Suite and you will now see Graphs Enabled in Integration Suite under Design Tab.
Enable SAP Graph Entitlement on BTP Subaccount
In below screenshot Graph entitlement is enabled
To enable SAP Graph (Business Data Graphs - BDGs) in your BTP Subaccount, follow these steps:
Creating a Service Instance for SAP Graph
Creating a Service Key for SAP Graph
The Graph instance is created and Binded with its Service Key:
Once your Service Key is created, make sure to note the following details:
You'll need these details when exploring BDGs using Postman or any API client.
Graph Creation
Fetch Sales Order Details with Customer Details
Imagine a S/4Hana System, where you have a BusinessPartner API and SalesOrder API exposed. This could be a S/4Hana On-Premises System or a S/4Hana Public Cloud Edition System. These are classic ODATA APIs from SAP – Business Partner ODATA API and Sales Order ODATA API.
Note: In my case I’m using SAP Business Accelerator Hub – API HUB
Querying Sales Orders and Customer Details with SAP Graph
In a typical integration scenario, querying Sales Orders from SAP S/4HANA and fetching Customer Details (SoldToParty) involves:
Since SAP provides this information through two separate APIs, this approach traditionally requires two API calls and additional processing to merge the data. However, with SAP Graph (BDGs - Business Data Graphs), you can simplify this by using a single GraphQL query to fetch Sales Orders and their associated Customer details in one call.
Simplifying Data Retrieval with SAP Graph
Traditionally, in SAP Cloud Integration, fetching Sales Order details along with SoldToParty (Customer Details) from S/4HANA Cloud requires:
This is a common challenge when integrating SAP and non-SAP SaaS applications.
The Power of SAP Graph (BDGs - Business Data Graphs)
With SAP Graph on Integration Suite, you can retrieve all this data in one API call—with no custom development!
SAP Graph introduces the concept of Mirrored Entities, which allows you to:
What’s Next?
We’ll explore Mirrored Entities in SAP Graph and see how they can simplify fetching Sales Order details along with Customer details from an Business Accelerator Hub—all in one call.
Creating Destinations on SAP BTP
To integrate SAP Graph with your S/4HANA Cloud or On-Premise system, you need to create destinations on your BTP Subaccount.
Prerequisites
Steps to Create Destinations in BTP
Setting Up a Business Data Graph in Integration Suite
Next, we’ll create a Business Data Graph (BDG) in SAP Integration Suite. To get started, go to Integration Suite → Design → Graph.
Once destination as source are added, click next, review the configurations, below screen will appear in a while after processing
Click on Activate.
Test Your Graph on Graph Navigator
Validating Graph OData API
As discussed earlier, all Business Data Graphs (BDGs) created in SAP Integration Suite are accessible via OData V4 APIs, as documented in SAP's official guides.
Now, we’ll use the Service Key generated in the previous step to obtain an OAuth token and authenticate our request to test the Graph OData API.
Note the URI in your Service Key has the format
https://<subdomain>.a.integration.cloud.sap/graph/api
List all BDGs
List all Services of a BDG (namespace)
List all namespaces of a Specific BDG. Namespaces can be sap.s4, sap.graph, sap.hcm and so on.
List all Entities in a namespace in a BDG
Entities of a Graph can be displayed using below
Get Metadata of a Service (Namespace)
Test our Service to get Sales Order Details with SoldToParty
In our example this will be in below format
That's it! We have successfully invoked your Graph OData V4 API and retrieved Sales Order data enriched with Business Partner details.
What would typically require a two-step process using a Content Enricher in Cloud Integration is now streamlined into a single API call—thanks to Graph on Integration Suite.
SAP Graph has the below GraphQL endpoint :
https://<subdomain>.a.integration.cloud.sap/graph/api/<bdg>/graphql
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 23 | |
| 13 | |
| 9 | |
| 8 | |
| 8 | |
| 6 | |
| 6 | |
| 5 | |
| 2 | |
| 2 |