cancel
Showing results for 
Search instead for 
Did you mean: 

Error 400 sent idoc Routing and Work center to SAP Digital Manufacturing Cloud

former_member680032
Participant
0 Kudos

Hi all,

I have an issue when I sent idoc type routing and work center from SAP S/4 HANA on premise to SAP Digital manufacturing Cloud by CPI. What should I do ?

CPI error :
org.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking https://dm-prod-az-quality-dme-integration-ms.cfapps.xxxxhana.ondemand.com/erp/workCenter/handler with statusCode: 400


SAP DMC error:

{"error":{"message":"WorkCenter https://dm-prod-az-quality-dme-plant-ms.cfapps.eu20.hana.ondemand.com/erp/workCenter/handler download failed, response body: {\"error\":{\"message\":\"400 Bad Request: [{\\\"msg\\\": \\\"action execute error: Unable to f...


Payload:
<?xml version="1.0" encoding="UTF-8"?><workCenterIn><plant>1000</plant><workCenter>DP001</workCenter><description>DIPPING 001</description><capacityCategoryIn><erpInternalId>10000000</erpInternalId><category>001</category><description/></capacityCategoryIn><erpInternalId>10000001</erpInternalId><supplyArea/><standardValueKey>SAP1</standardValueKey><standardValueIn><sequence>0002</sequence><standardValue>SAP002</standardValue></standardValueIn><standardValueIn><sequence>0003</sequence><standardValue>SAP003</standardValue></standardValueIn></workCenterIn>



Best Regards,

Maitree Sodsee

Mahalakshmi1
Participant
0 Kudos

Hi,

I am facing the same issue. is this resolved for you? if yes, can you quote the resolution

Thanks

Mahalakshmi

former_member680032
Participant
0 Kudos

Dear mahalakshmisyamsunder

My issue was resolve by, you must send all of idoc type Work Center (LOIWCS) which is related to idoc type routing before send idoc type Routing(LOIROU).
Check your CPI about error message in iFlow.

Best Regards,
Maitree Sodsee

Mahalakshmi1
Participant
0 Kudos

Hi Maitree,

Thanks for your repsonse. Apparently, i also found the same that workcenter should be sent in prior to routing. however my workcenter is also failing with a similar error as below.

CPI error (operations view)

javax.script.ScriptException: java.lang.Exception: java.lang.Exception: Exception: org.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking https://dm-prod-quality-dme-integration-ms.cfapps.eu10.hana.ondemand.com/erp/workCenter/handler with statusCode: 500 Response Body: {"timestamp":"2021-06-14T04:57:11.130+00:00","status":500,"error":"Internal Server Error","message":"","path":"/erp/workCenter/handler"} Status Code: 500 @ line 23 in determine_error_step.groovy, cause: java.lang.Exception: Exception: org.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking

https:///erp/workCenter/handler with statusCode: 500 Response Body: {"timestamp":"2021-06-14T04:57:11.130+00:00","status":500,"error":"Internal Server Error","message":"","path":"/erp/workCenter/handler"} Status Code: 500

DMC error (integration message dashboard)

400 Bad Request - {"error":{"message":"400 Bad Request - {\"msg\": \"System error:action execute error: The HTTP response code (500) indicates an error.\"}","causeMessage":null,"code":null,"correlationId":"3c24fbac-7ebf-4182-5d87-803c9bffdcc8"}}

Any thoughts?

Thanks

Mahalakshmi Syamsunder

Mahalakshmi1
Participant
0 Kudos

Hi,

Issue is resolved. it was due to missing authorization in S/4 for the user used for sending idocs.

Thanks

Mahalakshmi Syamsunder

Accepted Solutions (0)

Answers (1)

Answers (1)

SSriram
Active Contributor
0 Kudos

Hi Maitree

Refer the SAP notes for the CPI error 2898749 & 2642240

Regards

SS

former_member680032
Participant
0 Kudos

Dear s.sriram

Thank you for your suggestion, but I integrate with SAP Digital Manufacturing Cloud I cannot modifiled iFlow in CPI. I use "configure only" as document https://help.sap.com/doc/f6b2ab2222794bebad4c0dcd33138e71/latest/en-US/SAP_DMC_Integration_Guide_enU....