Skip to Content

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Feb 21 at 07:55 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 27 at 08:45 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 27 at 11:35 AM

    Hi Bhargava Krishna,


    Greetings!!!


    We are trying to integrate S/4HANA cloud with Employee Central and facing a similar issue.

    I hope you have got the solution by this time. Request you to guide us to resolve this issue.

    Regards

    Sankha

    +91-7411995717


    Add comment
    10|10000 characters needed characters exceeded