SAP Knowledge Base Article - Public

3027793 - API API_CUSTOMER_RETURNS_DELIVERY_SRV_0002 cannot update a custom field

Symptom

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.

Environment

SAP S/4HANA Cloud

Reproducing the Issue

  1. 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
  2. Payload is like below:
    {
      "d": {"YY1_RET_LABEL_SAMPLE":false}
    }
  3. Error message "Wrong input parameters. Please check metadata document." occurs.

Cause

It is a known issue which is planned to be fixed at CE2105.

Resolution

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.

Keywords

A_ReturnsDeliveryHeader, A_ReturnsDeliveryHeader, Custom field, Customer Returns Delivery , KBA , LE-SHP-API , Interfaces for Delivery Documents (API) , LE-SHP-DL , Delivery Processing , Problem

Product

SAP S/4HANA Cloud all versions