Skip to Content
0
Aug 24, 2020 at 09:27 AM

401 Unauthorized while trying to send an IDoc from SAP CPI to ERP (On-Premise)

940 Views

Hello Experts,

I want to send an IDoc from my SAP CPI to my On-Premise ERP System.

I've setted up a simple IFlow with IDoc Adapter.

If I trigger the flow it passes til the outbound IDoc Adapter and throws me an:

ERROR (CPI Monitoring):

An internal server error occured: HTTP response '400: Bad Request' when communicating with http://XXXXXXXXXX/sap/bc/srt/idoc?sap-client=800.

ERROR (Cloud Connector Trace Log):

2020-08-24 11:00:43,323 +0200#ERROR#com.sap.scc.rt#http-bio-8443-exec-7# #Tunnel account:///XXXXXXXXXXXXXXXXXXXXXXXXX connect failed
com.sap.core.connectivity.tunnel.core.handshake.TunnelHandshakeException: Invalid status of handshake response: 401 Unauthorized

Any Idea how to solve this problem?

I've provided my User Credentials from ECC in the Adapter.

Best Regards

René