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

CPI integration with Subscription Billing

shalini2204
Explorer
0 Likes
2,216

Error Details

I was integrating S4hana with CPI and the BP got replicated and now when i trying to connect to subscription billing i am getting this error pls help guys what must be wrong

org.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking https://eu10.revenue.cloud.sap/api/business-partner/v3/customers?q=externalObjectReferences.external... with statusCode: 403

Accepted Solutions (1)

Accepted Solutions (1)

shpresimshabaj
Participant

Dear Shalini,

According to the documentation refering at https://api.sap.com/api/BusinessPartner_APIs/resource

the error code 403 stands for missing authorizations of the user. "403- You do not have the necessary authorization as defined by the permissions (scopes) assigned to your user".

Please check the authorization of the user or check the Security Artifact that you are using on your iFlow at Overview/ Manage Security Material on CPI side.

Best Regards,

Shpresim Shabaj

shalini2204
Explorer

thank you Sir

shalini2204
Explorer
0 Likes

Hello Sir,

We added all the scope mentioned in link

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

shpresimshabaj
Participant
0 Likes

Hello again,

For test purpose please add the other business-partner* scopes as well.

Before you deploy your iFlow you can test your authorizations by loging in and configuring your environment at the https://api.sap.com/ and by trying the requests that are being called on the iFlow. You can refer to the print screens below.

Regards,

Shpresim

shalini2204
Explorer
0 Likes

Hello Sir,

WE already did the above options still getting error

jklotz
Participant
0 Likes

shalini2204 did you receive the error by trying the api over sap-api-business hub as well? you have to use your oauth2 credentials, for more information have a look at your SAP BTP Cockpit, subscription-billing subaccount

Answers (4)

Answers (4)

jklotz
Participant

please check your authorisation-setup. you have to use oauth2 if you want to consume this APIs.

shalini2204
Explorer
0 Likes

We submitted all the scope still getting an error

vinaykumardigaveedi
Participant
0 Likes

Hello Experts,

We are facing the issue CPI integration with Subscription billing.

org.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking https://us10.revenue.cloud.sap/api/product-service/v1/products/search?changedAfter=2021-12-09T00:00:... with statusCode: 400

We have deployed the OAuth Client credentials exactly .

Could you please help us.

Thanks & Regards,

Vinay

shalini2204
Explorer
0 Likes

Hi Vinay,

Would you mind sharing your linkedln Id as not many people are working on Sb

Shalini Saxena | LinkedIn

My profile

Thanks and Regards

Shalini

frey_chen
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Vinay,

In another blog I see you said it was resolved.

But If you've got 400 error, it should not be related to credential, and you cloud be able to see the detail by search for 'responsebody' in CPI MPL.

Thanks

Frey

shalini2204
Explorer
0 Likes

ello Sir,

WE already did the above options still getting errorerrormsg.png

shpresimshabaj
Participant

Dear Madam,

Please recheck the service instance and service key configuration authorization. From the error log it is still failing authorization. Recreating them with the full authorizations, as recommended from the document it would be an idea. You can remove the authorizations later again.

You can refer to the chapter 3 at the document: https://help.sap.com/doc/5fd179965d5145fbbe7f2a7aa1272338/latest/en-US/PlatformConfiguration.pdf

Regards,

Shpresim

shalini2204
Explorer

We got the service instance created again and the CPI guys could connect the two systems

Thank you Sir the problem is solved we could see s4 hana bps in SB and the connection is done

Now I am working on connection from SB to s4hana

shpresimshabaj
Participant
0 Likes

Good to hear that it worked.

Regards,

Shpresim

shalini2204
Explorer
0 Likes

Thank you Sir