Symptom
Calling the API API_INBOUND_DELIVERY_SRV (Method GET) returns the error code
/IWBEP/CM_MGW_RT/020 - Resource not found for segment '&'
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Retrieve the specific inbound delivery partner and partner address via API Inbound Delivery (A2X) API_INBOUND_DELIVERY_SRV
Example URL:<host>/sap/opu/odata/sap/API_INBOUND_DELIVERY_SRV;v=0002/A_InbDeliveryPartner(PartnerFunction='XX',SDDocument='YYYY')/to_Address - The API call fails with response HTTP error code 404, error: /IWBEP/CM_MGW_RT/020 - "value": "Resource not found for segment 'A_InbDeliveryAddressType'"
Cause
The partner function mentioned in the URL does not exist in the corresponding delivery.
For the above example, partner function 'XX' used in URL does not exist in delivery 'YYYY'.
Resolution
- Select the 'Display Inbound Delivery' App and display the inbound delivery being retrieved in the API call.
- Check the Partners tab in the inbound delivery and correct the request URL by passing the existing partner functions that exist in the inbound delivery.
Keywords
/IWBEP/CM_MGW_RT/020, /IWBEP/CM_MGW_RT 020, A_InbDeliveryAddressType, Resource not found for segment '&', API_INBOUND_DELIVERY_SRV, GET Method , KBA , LE-SHP-API-2CL , Interfaces for Delivery Documents (API) (Public Cloud) , Problem
Product
SAP S/4HANA Cloud Public Edition all versions