Skip to Content

Connectivity Issue: CPI with S/4 HANA

Dear Community,

We need some advice in the connection between CPI & S/4 HANA on-premise. The connection of C4C with CPI seems fine (using certificates).

Firstly note that we are not using a web dispatcher/ reversed proxy for the communication between S/4 and CPI.

  • Is it mandatory to use web dispatcher/reverse proxy for successful communication with S/4?

Lets take for example the iflow Replicate Business Partner to SAP Business Suite, you can find the current s/4 configuration in the Receiver side in the image attached.

Below the Error received while trying to connect with S/4 using HTTP PROTOCOL.

Error 503:

org.apache.cxf.interceptor.Fault: Could not send Message., cause: org.apache.cxf.transport.http.HTTPException: HTTP response '503: Service Unavailable' when communicating with http://<ip>:8000/sap/bc/srt/scs/sap/businesspartnersuitebulkreplic?sap-client=100&MessageId=00163E16-4D58-1ED7-8EFA-3CFE3E5B8622&QueueId=404C4F056249C7F9&QualityOfService=ExactlyOnce

  • Have you faced similar errors when implementing CPI – S/4 connectivity?
  • Is there something missing in the S/4 receiver configuration?
  • What is the appropriate Protocol Hostname/Port format?
  • Shall we use HTTPS protocol or the connectivity can be done with HTTP also?
  • In case of HTTP protocol, what Proxy Type we should use? (On-Premise, Internet)?
  • Have you tested the web services connectivity with any other tool outside CPI? (Error Elimination process)

Thanks,

Kind Regards,

Andreas

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Best Answer
    May 19, 2017 at 08:00 PM

    Hello Andreas,

    I am not an expert in the integration area, but I have found some similar posts from the past, could you please maybe check if they can help you?

    https://archive.sap.com/discussions/thread/3673268

    https://archive.sap.com/discussions/thread/3953274

    https://archive.sap.com/discussions/thread/3730723

    Please also always remember to check the SAP C4C FAQ

    https://blogs.sap.com/2016/08/05/blog-post-general-issue-with-integration/

    Best Regards

    Gabriel Brage

    Add comment
    10|10000 characters needed characters exceeded

  • May 21, 2017 at 08:39 PM

    Hi Andreas,

    First of all web dispatcher/reverse proxy is not mandatory requirement for the end to end connectivity.
    Regarding connectivity protocol from HCI to S/4 , If you using SAP Cloud connector then only use HTTP protocol with the on-premise proxy. In case if you are not using SAP Cloud connector then proxy type should be 'Internet'.

    Regards
    Sharad

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 23, 2017 at 07:50 AM

    Hello everyone,

    The below post has a guide for certificate based connectivity configuration and it has web dispatcher as a prerequisite.

    https://archive.sap.com/documents/docs/DOC-55037

    Furthermore.

    When i am trying to send a business partner from C4C -> CPI -> S/4 i am getting the below error in the CPI iflow.

    Message processing failed.

    org.apache.cxf.interceptor.Fault: Could not send Message., cause: org.apache.cxf.transport.http.HTTPException: HTTP response '401: Unauthorized' when communicating with http://<ip>:8000/sap/bc/srt/scs/sap/businesspartnersuitebulkreplic?sap-client=100&MessageId=00163E18-3707-1EE7-8FDE-F9A03330C6D0&QueueId=89A28933009DCD1B&QualityOfService=ExactlyOnce

    When using test connection in S/4 i am getting the below.

    Regards,

    Dimitris

    Add comment
    10|10000 characters needed characters exceeded

  • May 23, 2017 at 02:44 PM

    Hi Dimitris,

    If I understood correctly these are two separate issues, am i correct?

    1. CPI -> S/4 : Unauthorized
    2. S/4 to outbound test connection: SSL handshake error

    Regards
    Sharad

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 24, 2017 at 06:39 AM

    Hello Sharad,

    Yes exactly.

    The first error is showing in CPI monitor when trying to replicate business partner from C4C to S/4.

    The second error is showing in S/4 when trying to test connection with CPI.

    Regards,

    Dimitris

    Add comment
    10|10000 characters needed characters exceeded

  • May 26, 2017 at 05:37 PM

    Hi Dimitris,

    Regarding issue 1, as you are using basic authentication, Could you please check credentials for CODINTEG are correct?

    Regarding issue 2, Please check if all certificates are in place in direction S/4 to HCI. As SSL handshake is failing that means either S/4 is not trusting CPI or CPI is not trusting S/4. You can quickly check if CPI server root certificate chain is present in s/4 strust and vice versa?

    Regards
    Sharad

    Add comment
    10|10000 characters needed characters exceeded