on 2025 May 07 12:05 PM - last edited Tuesday
This blog explains how to access an SAP Graph OData V4 URL using SAP Cloud Integration (CPI). We will configure the connection, use OAuth 2.0 Client Credentials, and query data using OData parameters.
SAP Graph is a unified API that provides a simplified, single interface to access data across various SAP systems (like SAP S/4HANA, SAP SuccessFactors, SAP Sales Cloud, etc.). It helps developers interact with complex SAP systems using a consistent API structure, making integration and data access easier.
Access to SAP BTP with an SAP Graph instance.
OAuth 2.0 Client Credentials for SAP Graph.
SAP CPI with design privileges.
In SAP BTP Cockpit, navigate to your SAP Graph instance.
Go to Security and create OAuth 2.0 client credentials.
Note the Client ID and Client Secret.
Save the credentials in Security Material of CPI as a new OAuth2 Client Credentials artifact (e.g., Credential Name: GraphOAuthCredentials).
In SAP Integration Suite, navigate to the Design section.
Inside Business Data Graph, you can find the OData V4 URL for your SAP Graph instance.
Copy the OData V4 URL (e.g., https://<your-graph-url>/graph/api/graphdemo).
Log in to SAP CPI, go to Design, and create an Integration Flow.
Add a Start Timer and a Request Reply step.
3. Set connection details:
Address: https://<your-graph-url>/graph/api/graphdemo/sap.s4
Authentication: OAuth2 Client Credentials
Credential Name: GraphOAuthCredentials
Resource Path: A_SalesOrder
Query: $select=SalesOrder,SoldToParty&$filter=SalesOrder eq '1'&$expand=_SoldToParty
Deploy the integration flow.
Monitor message processing to verify the response.
You have successfully configured SAP CPI to access SAP Graph OData V4 using OAuth 2.0 authentication.
Request clarification before answering.
User | Count |
---|---|
33 | |
22 | |
17 | |
8 | |
7 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.