on ‎2021 Jan 12 7:50 AM
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)

Please help us to fix the issue.
Thanks
Bhargava Krishna
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bhargava,
it can be certificate issue as well . Please verify that CPI certificate should be available under SSL system client in STRUST transaction. Also, you can download http trace from CPI audit log and check if your http call reached CPI and thrown error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 4 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.