cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP Subscription Billing integration with S/4HANA

ayushtiwari
Participant
0 Likes
851

Hi All,

We are currently working on the integration of S/4HANA (on premise) and SAP Subscription Billing (Cloud) and would like to replicate Business Partner from S4 to SB, But integration Flow is failing in CPI with below error.

Please help me to identify what is wrong. Many thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Hi,

you got status code: 403 when you try to call the business partner API of Subscription Billing, the explanation of this error can be found on the API hub

https://api.sap.com/api/BusinessPartner_APIs/resource

{
"status":403,"message":"Given request does not have required scopes in access token. It is not authorized to perform this operation.","type":"insufficient_permissions"
}

You do not have the necessary authorization as defined by the permissions (scopes) assigned to your user.

please check if you have maintained the correct scope for the token you get from the API authorization server? In the response body from the token request, you would see something like:

{"scope": "revenue-cloud!b1532.business-partner-customer_create revenue-cloud!b1532.business-partner-contact_create",}

if you cannot see such info, you need to configure the scope for service instance. You can find the relevant info on Subscription Billing API Guide->Getting Started with APIs->SAP Subscription Billing API Scopes:

"Your administrator provides the relevant scopes when defining the service instance, as described in the SAP Cloud Platform Configuration guide (section Prepare API Access)."

Answers (1)

Answers (1)

former_member226
Employee
Employee

Hi,

As seen in error snapshot, the HTTP call is getting a response status code as 403 which means that due to insufficient privilege of the communication user or API KEY, Subscription BIlling has rejected the request for HTTP operation.

Hence my recommendation to you is cross check API Key used and its assigned roles in SCP.

Thanks

Saurabh