SAP Knowledge Base Article - Public

2860643 - Using API API_PRODUCT_SRV , Entity A_ProductBasicText with a PATCH request returns 404 error 'Resource Not Found'

Symptom

  • A Product's Basic Text can be updated in the App Manage Product Master Data and Change Material but not through the API API_PRODUCT_SRV
  • Using API API_PRODUCT_SRV , Entity A_ProductBasicText with a PATCH request returns 404 error 'Resource Not Found' even though the material exists. 

Environment

  • SAP S/4HANA Cloud
  • Material Master

Cause

The Basic Text for the Material does not exist .

The PATCH operation is for updating the entity. If there is no resource maintained for an entity then PATCH operation would fail. This is expected behavior.

Resolution

Since Basic Text does not exist, it should first bedcreated using POST request on A_ProductBasicText. Once the Basic Text is created, then it is possible to use PUT/PATCH operations to update it.

See Also

Product Master (A2X)

Product Master (A2X) - help.sap.com Documentation

Keywords

KBA , LO-MD-MM , Material Master , Problem

Product

SAP S/4HANA Cloud all versions