SAP Knowledge Base Article - Public

2899036 - Error "Wrong input parameters. Please check metadata document." when creating outbound deliveries via API

Symptom

The following error is returned when creating a outbound delivery via API API_OUTBOUND_DELIVERY_SRV_0002:

"Wrong input parameters. Please check metadata document."

Environment

SAP S/4HANA Cloud

Reproducing the Issue

  1. Use the API API_OUTBOUND_DELIVERY_SRV_0002 to create a outbound delivery, for example, the URL is https://myxxxxx-api.saps4hanacloud.cn/sap/opu/odata/sap/API_OUTBOUND_DELIVERY_SRV;v=0002/A_OutbDeliveryHeader
  2. Payload is like below:
    {
        "ShippingPoint": "1010",
            "to_DeliveryDocumentItem": {
            "results": [{
                "ActualDeliveryQuantity": "1",
                "Batch":"1234",
                "DeliveryQuantityUnit": "EA",
                "ReferenceSDDocument": "123",
                "ReferenceSDDocumentItem": "10"
                }
            ]
        }
    }
  3. The error "Wrong input parameters. Please check metadata document." is returned.

Cause

Only the following parameters are allowed when you create an outbound delivery:

  • ReferenceSDDocument
  • ReferenceSDDocumentItem
  • ActualDeliveryQuantity
  • DeliveryQuantityUnit
  • SerialNumber
  • ShippingPoint
  • DeliveryDocument

All other fields like ActualGoodsMovementDate, Batch etc. are not allowed for create. Therefore, the error is returned.

Resolution

As a workaround, please only use allowed fields to create the outbound delivery firstly via the API. Then change the field you need via the PATCH operation of the API.

See Also

Help document of API API_OUTBOUND_DELIVERY_SRV

Keywords

API_OUTBOUND_DELIVERY_SRV, API_OUTBOUND_DELIVERY_SRV_0002, ActualGoodsMovementDate, batch, metadata, wrong input, create , KBA , LE-SHP-API , Interfaces for Delivery Documents (API) , Problem

Product

SAP S/4HANA Cloud all versions