SAP Knowledge Base Article - Public

3479982 - Technical Master Data Replication From SAP S4HANA ISU Towards SAP Service Cloud Version 2 Fails in SAP CPI With HTTP Status Code 400

Symptom

You are using the report "ISU_C4C_TECH_OBJECTS_REPL" to replicate Premise and connection objects from SAP S4-ISU to SAP Service Cloud Version 2 and it fails with HTTP status code 500(in ISU) and 400 (in CPI).

Environment

SAP Service Cloud Version 2

Reproducing the Issue

  1. Execute the report ISU_C4C_TECH_OBJECTS_REPL
  2. Check the SRT_MONI and messages fail with HTTP 500 error 
  3. Go into details, you are asked to check the CPI MPL ID for actual error message
  4. You can find the error similar to "https://my123456.XX1.test.crm.cloud.sap/sap/c4c/api/v1/inbound-data-connector-service/message/sap.crm.premiseservice.entity.technicalobject" with status code: 400"
  5. Activate the payload trace and repeat the above steps , you can find detailed error like below
    {"error":{"code":"inbound-data-connector.100","message":"Failed to create the inbound message.","details":[{"code":"inbound-data-connector.200","message":"Attribute receiverCommunicationSystemDisplayId cannot be empty."}]}}

Cause

The BADI Implementation "COD_UTILITIES_REPLICATION_CONF" is not active. This report will use the BADI to determine the receiver system(Service Cloud V2 system id) and append it into the outgoing messages.

If the id is missing, Service Cloud will reject the messages and send the above error back to CPI - then the CPI MPL ID will be sent back to ISU with status 500.

Resolution

Implement the BADI "COD_UTILITIES_REPLICATION_CONF" >> GET_RECEIVER_SYSTEM.

Use the statement APPEND 'sap_cloud_crm_my123456' TO ct_receiver_system in the BADI.

See Also

The Service Cloud V2 system id "sap_cloud_crm_my123456" can be found in the Settings >> Communication Systems >> Find the system ID with description "Default communication"

Keywords

"default communication system" "technical master data replication" "service cloud version 2" , KBA , CEC-CRM-INT , Integration for SAP Sales/Service Cloud , Problem

Product

SAP Sales Cloud and SAP Service Cloud Version 2 1.0