Skip to Content
0

Error when connecting to S/4 HANA cloud from SAP CPI

Feb 21 at 05:29 AM

245

avatar image

Hello All,

We are working on SuccessFactors integration with S/4 HANA cloud using SAP CPI to replicate employee data.

Interface flow: SuccessFactors (EC) --> CPI --> S/4 HANA cloud

We are using the integration content "Employee Central to ERP Employee Data and Organizational Assignment"

We referred the below document and did the configurations in the landscape.

We tried testing the interface in two ways

1) Basic Authentication

In case of basic authentication, we could see the successful logs in SAP CPI, but Data is not replicating to S/4 HANA.

2) Certificate based Authentication

In case of certificate based authentication, message is getting failed in SAP CPI with the error

Inbound processing in endpoint at /EC_to_ERP_Master_Data_And_Org_Query failed with message "Fault:Sequential processing failed for number 0. Exchange[ID-vsa3679993-44639-1518877048481-42-4]. Caused by: [org.apache.cxf.interceptor.Fault - Could not send Message.]", caused by "HTTPException:HTTP response '401: Unauthorized' when communicating with https://host/sap/bc/srt/scs/sap/eemasterdataandorgassbndlreq?MessageId=786df75e-b9ba-4c23-a4e1-095b8db9fe33" LastErrorModelStepId= MessageFlow_8

We have checked the following but still the issue persist.

1) We have referred the below note "2548392 - 401:Unauthorized error when connecting HCI to backend system"

2) Re-verified the configuration.

3) Verified the certificates in CPI and S/4 Hana cloud.

4) Did the connection test from SAP CPI "Authenticate with Client Certificate" and Validate server certificate both are success.

Regards

Bhargava Krishna

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Liz Jin
Feb 21 at 07:55 AM
0

Hi Bhargava,

Let's talk it case by case:

) Basic Authentication

In case of basic authentication, we could see the successful logs in SAP CPI, but Data is not replicating to S/4 HANA.

==>

If it is successful in CPI, and the receiver S/4 HANA didn't receive the messages, you need check the ICM log of S/4 HANA system, if the http request has been received. You need increase the icm trace level 2.

2) Certificate based Authentication

In case of certificate based authentication, message is getting failed in SAP CPI with the error with 401

==>

It means the server client authentication is OK, you import the correct the certificate of CPI in SuccessFactors side.

But the client authentication failed. You need export the certificate of SuccessFactors and upload it into iFlow , so that client authentication is also successful.

Best Regards,

Liz

Share
10 |10000 characters needed characters left characters exceeded
Bhargava krishna Talasila Feb 27 at 08:45 AM
0

Hi Liz,

Thanks for your response.

1) Basic Authentication

We tried to check in ICM logs in S/4 HANA cloud, but we didn't locate in S/4 HANA cloud system.

Can you please help me to check the ICM logs in S/4 HANA cloud system.

2) Certificate based Authentication

We have downloaded the certificates again from successfactors and uploaded again in SAP CPI,but the issue still persist.

Regards

Bhargava Krishna

Share
10 |10000 characters needed characters left characters exceeded