SAP Knowledge Base Article - Public

2819572 - API API_PRODUCT_SRV returns error 'Resource not found for segment 'A_ProductType''

Symptom

  • Calling the API API_PRODUCT_SRV  ( Method GET ) returns the error code /IWBEP/CM_MGW_RT/020 - "value": "Resource not found for segment 'A_ProductType'"
  • The API  API_PRODUCT_SRV  ( Method GET ) returns HTTP response  404 error code with Resource not found for segment 'A_ProductType'
  • API API_PRODUCT_SRV  ( Method GET ) should return HTTP 200 code with empty response but instead shows  404 error code with Resource not found for segment 'A_ProductType'
     

Environment

  • SAP S/4HANA Cloud
  • Master Data

Reproducing the Issue

Call the API with a Product Code , For example sap/opu/odata/sap/API_PRODUCT_SRV/A_Product('BIKE')

Cause

The Product specified in the input has not been created.

The response is http 404 Resource not found if the Product doesn't exist.

Resolution

System works as designed.

Check the input file and supply a Material / Product that exists.

Keywords

API_PRODUCT_SRV , material master , ODATA , KBA , LO-MD-MM , Material Master , LO-MD-FIO-MM , Fiori UI for Product Master , Problem

Product

SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions