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

Authorization error

shalini2204
Explorer
0 Likes
3,314

Hi All

When we are integrating Subscription billing to S/4 hana exactly from CPI to s4 hana we are getting authorization issue

Subscription billing is on cloud and s4hana on premise

We have created communication user added to CPI and getting this error can any help what must be wrong in Iflows that is triggering this error

Thanks in advance

Accepted Solutions (0)

Answers (5)

Answers (5)

Hi,

the information provided is too little...

would you mind providing more info, like what kind of authorization error? What did the system say? have you ruled out or confirmed the probability of CPI issue via a http request tool like Postman / SOAP ?

Best regards,

Tiger

SAP Subscription Billing Development

frey_chen
Product and Topic Expert
Product and Topic Expert
0 Likes

Hello Shalini,

Cloud you do the following steps:

1. SOAMANAGER -> Simplified Web Service Configuration -> Search 'BUSINESSPARTNERSUITEBULKREPLI1', make sure User Name/Password (Basic) is selected.

2. Select the item and click 'Show Details' button, copy the Access URL under Configuration Details section.

3. Paste the Access URL in POSTMAN and send the request:

Method: POST

Authorization Type: Basic Auth, input Username and Password

Header: Content-Type = text/xml

Body: chose raw, select XML, for test the authorization you can use an empty body

After you send the request, if the URL is reachable and username / password is correct, you should see 500 Internal Server Error, otherwise you will see a 401.

Thanks

Frey

shalini2204
Explorer
0 Likes

Hello Again,

We have chked authorization and everything it is not working again

same error

error15.jpgerror14.jpg

Please can we have a call to discuss this issue kindly send an invite

0 Likes

Hi Shalini,

do you have a basis colleague who can help you get you connected to S/4 HANA system via SOAP UI first?

or whatever endpoint that can prove the system can accept external API Call successfully without any 403 authorization error?

shalini2204
Explorer
0 Likes

Hello Again,

I just chked the communication user and I found it is to be okay but still getting error

screenshot attached error8.jpgerror9.jpg

shalini2204
Explorer
0 Likes

Communication user error10.jpg

0 Likes

Hi Shalini,

From your error9.jpg, I can see you have unkown host exception. Can you ask your basis colleague for help about the connection? Make sure there is no connection issue, and your S4 OP system can accept inbound calls successfully.

From Subscription billing & CPI perspective, there is nothing can be done.

Best regards,

Tiger

Hi Shalini,

I have a new finding, when you use SOAP UI to test your S4 HANA OP system, you got this important info, which was not clear in your picture, but I figured out

INFO Error getting response for [http://awsast0541.enggsap.accenture.com:44300]

it's "http", so I guess this is the address of your cloud connector. But for your pure testing, you don't need to use the cloud connector address, you can directly use your real server address starting with "https".

please test and make sure you can connect to your S/4 HANA OP system first. If it can work correctly, it means your user is working fine, and then check the one maintained in CPI, better you edit and maintain and make sure it's the same as you used in SOAP UI.

When you used CPI to call S/4 HANA OP, CPI got authorization error, but when you used SOAP UI, you got unknown host, it's different and hope you noticed it.

Best regards,

Tiger

shalini2204
Explorer
0 Likes

Hello Sir

Thanks for your answer

I have integrated S4 HANA to SB and BP from S4hana on premise are reaching SB

When we are replicating BP from SB to S4 HANA we are getting error just when it is reaching s4hana authorizationerror6.jpgerror7.jpg error

Communication users defined in s4hana are also maintained in CPI

Thanks

Hi Shalini,

I also see you have created an incident for us. From the screenshot error7.jpg, you can see that you cannot even call it successfully via SOAP. So that means you must have something wrong with the communication user you created. I would suggest you do the following:

  1. Check the communication user you created, if the password is exactly the same as you used in SOAP.
  2. Make sure that you can call successfully via SOAP
  3. Then move to SAP Cloud Integration (aka CPI), try it again, it should work as SOAP works, if not, you need to check further what the error is.