Error message "Wrong input parameters. Please check metadata document." occurs when updating a custom field which is assigned to entity A_ReturnsDeliveryHeader with API API_CUSTOMER_RETURNS_DELIVERY_SRV_0002.
SAP S/4HANA Cloud
Reproducing the Issue
- Use the API API_CUSTOMER_RETURNS_DELIVERY_SRV_0002 to update a return delivery header. The URL is like https://myxxxxx-api.saps4hanacloud.cn/sap/opu/odata/sap/API_CUSTOMER_RETURNS_DELIVERY_SRV;v=0002/A_ReturnsDeliveryHeader
- Payload is like below:
- Error message "Wrong input parameters. Please check metadata document." occurs.
It is a known issue which is planned to be fixed at CE2105.
Workaround for CE2102:
The entity A_ReturnsDeliveryHeader needs to have at least one custom field, and it cannot be initial in patch operation.
You can create an additional dummy custom field of type text with length 1. This custom field must be enabled for the Customer Returns Delivery A2X service. The attribute must be set as "X" (or any other values which are not initial) in every patch operation.
A_ReturnsDeliveryHeader, A_ReturnsDeliveryHeader, Custom field, Customer Returns Delivery , KBA , LE-SHP-API , Interfaces for Delivery Documents (API) , LE-SHP-DL , Delivery Processing , Problem