Skip to Content
Product Information

Integration User for Odata services in SAP Cloud for Customer

Dear Community members,

 

Note: Current post strictly provides steps for SAP Cloud for Customer (SAP Sales Cloud and SAP Service Cloud).

With the 1911 release of SAP Cloud for Customer, SAP has provided capability to use integration or technical user for Odata services.

Odata Services – 1911

 

With A2X services being deprecated from February 2020, customers and partners are requested to move their A2X and SOAP services to Odata. But with Odata services we have had to use basic authentication with a Business User. This causes concerns when the password expires, leading to failure of the integration.

You can read more on this here.

https://apps.support.sap.com/sap/support/knowledge/public/en/2325562

 

Below, we will see how we can use a technical user for basic authentication and Certificate based authentication for Odata services.

 

Create a new Communication system. Maintain the host name.

 

Create Communication arrangement for standard Communication Scenario: OData Services for Business Objects

Select the services which you wish to enable under technical data. In the next image you can see that the technical user is generated.

 

The technical user created above can be used for basic authentication as well.

Further, we have similar steps as with SOAP services.

Click on edit credentials and create and download a key pair. (a *.p12 extension file will be downloaded)

 

Add the key pair file to your CPI tenant under manage keystore.

 

Configure the Odata adapter as follows.

Maintain the address of the service you wish to call, and the alias saved in the previous step.

Select authentication method as Client Certificate or Basic authentication.

CSRF token is not needed as we are using a technical user.

In case of Client certificate, provide the name of the *.p12 file which you saved in keystore.

In case of Basic authentication, deploy a credential artifact in CPI with the technical user created above, and provide the credential name.

 

Download the edmx file from the metadata URL.

https://myNNNNN.crm.ondemand.com/sap/c4c/odata/v1/c4codataapi/$metadata

and configure the request query.

 

Using a technical user provides better security and prevents failure of integrations due to expiration of password.

 

You can get more details on this here.

https://github.com/SAP/C4CODATAAPIDEVGUIDE

 

Regards

Praveen Dwivedi

Be the first to leave a comment
You must be Logged on to comment or reply to a post.