Thursday, 25 July 2024

Configuring Standard API in S/4 HANA Cloud

Generating OData of standard API:

First we have to login to SAP business accelerator hub account and go to SAP S/4 HANA Cloud Public edition.

Configuring Standard API in S/4 HANA Cloud

Choose a standard API as shown below

Configuring Standard API in S/4 HANA Cloud

 In this case I have choose the product master standard API.

Configuring Standard API in S/4 HANA Cloud

Select the overview tab, under that we can see Communication Scenario ID.

Configuring Standard API in S/4 HANA Cloud

Configuring Standard API in S/4 HANA Cloud

Copy communication scenario from standard API. Now Move to the

S/4Hana cloud system -> Communication Arrangements

Configuring Standard API in S/4 HANA Cloud

Select the Option New, and add a Scenario ID which we have copied from the Standard API

Configuring Standard API in S/4 HANA Cloud

Configuring Standard API in S/4 HANA Cloud

Configuring Standard API in S/4 HANA Cloud

Configuring Standard API in S/4 HANA Cloud

Create new communication system:

Search for Communication System in S/4 HANA cloud, here we need to create user and password for all OData services

Configuring Standard API in S/4 HANA Cloud

Click on New,

Configuring Standard API in S/4 HANA Cloud

System will ask for new communication system id and system name. we can give the ID & Name of our choice. And Click on create. 

Configuring Standard API in S/4 HANA Cloud

Give the Host name as shown below, 

Configuring Standard API in S/4 HANA Cloud

In User for Inbound Communication, click on Add and Create New Inbound Communication User. Click on “New User” 

Configuring Standard API in S/4 HANA Cloud

Give the username and description and select on proposed password to get the password which will give by system itself. (Copy the user name and password and paste somewhere so that, Once the user and password has created we can use the same for all the OData service Consumption.) 

Click on create

Configuring Standard API in S/4 HANA Cloud

Click on Save  

Configuring Standard API in S/4 HANA Cloud

Then add your custom communication system in this communication arrangement

Configuring Standard API in S/4 HANA Cloud

Then you get required ODATA URL

Configuring Standard API in S/4 HANA Cloud

Now will connect S/4HANA Cloud to Power BI or any other reporting tools through OData Feed. Example:Open Power BI->get Data->OData feed.

Configuring Standard API in S/4 HANA Cloud

In the OData feed enter the OData URL generated in S/4HANA Cloud. And give user name and password that we have generated in S4hana cloud “Communication System” to get the OData url.

Then Click on connect.

Configuring Standard API in S/4 HANA Cloud

Select the checkbox to data preview and click on Transform data or Load.

Configuring Standard API in S/4 HANA Cloud

No comments:

Post a Comment