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

Authorization error while sending by HTTP (error code: 401 , error text: Unauthorized)

Bhargavakrishna
Active Contributor
3,951

Hi Experts,

We are trying to post the messages from the SAP back-end application to SAP CPI using proxy communication.

Interface flow: SAP (Back-end) --> CPI --> SFTP

The messages are getting failed in the SAP back-end system with the below error.

Error : Authorization error while sending by HTTP (error code: 401 , error text: Unauthorized)

  1. We have double checked the credentials and they are valid.
  2. RFC destination of type "G" is working fine with status "HTTP - 200 (OK).
  3. Tested from Postman with the same credentials and the data getting posted to SAP CPI.
  4. The user is having the role ESBMessaging.send

Please help us to fix the issue.

Thanks

Bhargava Krishna

View Entire Topic
Bhargavakrishna
Active Contributor

The issue was resolved after configuring the runtime hostname of the SAP CPI application in the SAP backend RFC destination.

Example:

Actual CPI hostname : test-dev.it-cpi008.cfapps.xxxx.hana.ondemand.com

Runtime CPI hostname : test-dev.it-cpi008-rt.cfapps.xxxx.hana.ondemand.com (It will be generated after deploying the iflow)

Thanks & Regards

Bhargava Krishna T