Find your API host and login host
The API host is where StackOne sends requests and the login host is where you sign in. This method is for SAP S/4HANA Cloud Public Edition.
- Take your Fiori launchpad host and add
-apiafter the system ID. - Format: Login Host
{system-id}.s4hana.cloud.sap, API Host{system-id}-api.s4hana.cloud.sap - Example: launchpad
https://my123456.s4hana.cloud.sap/uigives Login Hostmy123456.s4hana.cloud.sapand API Hostmy123456-api.s4hana.cloud.sap.
Register StackOne as an OAuth client
The OAuth client is defined on a Communication System in your own tenant.
Create the Communication System
Open Communication Systems, click New and create a system for StackOne (mark it Inbound Only if offered).
Set the redirect URI
Under Inbound OAuth 2.0 Client Settings, enter the Callback URL StackOne shows you as the Client Redirect URI.
Add the OAuth 2.0 client
Under Users for Inbound Communication, click Add, select OAuth 2.0 as the authentication method and enter an OAuth 2.0 Client ID, for example STACKONE.
- Copy the same Client ID across when you link.
- No client secret is needed.
Create the Communication Arrangements
Each API is enabled by a Communication Arrangement using the Communication System above.
Create the arrangements
Open Communication Arrangements and create one arrangement per API.
SAP_COM_0008for Business Partner, Customer and SupplierSAP_COM_0118for Sales Quotation,SAP_COM_0119for Sales ContractSAP_COM_0294for Sales Pricing Condition Records,SAP_COM_0134for Customer MaterialSAP_COM_0164for Material Stock,SAP_COM_0108for Material Documents- Product, Sales Order, Billing and Warehouse APIs do not accept OAuth; connect them with Basic Auth or Client Certificate.
Copy the scopes
In each arrangement, open Inbound Communication > OAuth 2.0 Details and copy the scope ID (for example API_BUSINESS_PARTNER_0001). Enter all of them in Scopes, separated by spaces, then sign in with your SAP business user and consent.
Link the Account
Connect
- Click Connect.
- If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider’s authorization flow.
- Once authorization is successful, you will see a confirmation popup.
Use Actions