Symptom
You create an integration flow that would do some "PUT" operation in S/4HANA Cloud.
OData V2 can not get used, due to missing fields in Product API, thus one must use V4 API's.
You use this is API for the integration flow setup.
It is required to perform multiple requests, thus use $batch operations, as mentioned in this SAP Blog post.
In the response you see similar error:
?xml version='1.0' encoding='UTF-8'?>
<batchPartsResponse
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<batchChangeSetResponse>
<batchChangeSetPartResponse>
<headers>
<header>
<headerName>content-language</headerName>
<headerValue>en</headerValue>
</header>
<header>
<headerName>Content-Length</headerName>
<headerValue>X</headerValue>
</header>
<header>
<headerName>Content-Type</headerName>
<headerValue>application/json;odata.metadata=minimal;charset=utf-8</headerValue>
</header>
<header>
<headerName>odata-version</headerName>
<headerValue>4.0</headerValue>
</header>
</headers>
<statusInfo>Unsupported Media Type</statusInfo>
<body>{"error":{"code":"/IWCOR/CX_OD_UNSUPP_MEDIA_TYPE/<hexa number>","message":"The server is refusing to process the request because the entity has an unsupported format","@SAP__common.ExceptionCategory":"Client_Error","innererror":{"ErrorDetails":{"@SAP__common.Application":{"ComponentId":"","ServiceRepository":"","ServiceId":"API_PRODUCT","ServiceVersion":""},"@SAP__common.TransactionId":"","@SAP__common.Timestamp":"","@SAP__common.ErrorResolution":{"Analysis":"Use ADT feed reader \"SAP Gateway Error Log\" or run transaction /IWFND/ERROR_LOG on SAP Gateway hub system and search for entries with the timestamp above for more details","Note":"See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)"}}}}}
</body>
<statusCode>X</statusCode>
</batchChangeSetPartResponse>
</batchChangeSetResponse>
</batchPartsResponse>
Read more...
Environment
- SAP Integration Suite
- SAP Business Technology Platform
- Cloud Integration
Product
Keywords
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.