SAP Knowledge Base Article - Public

3285077 - Error while assigning a product to a product hierarchy node using the API "Products to Product Hierarchy Assignment".

Symptom

While assigning a product to a product hierarchy node using the API "Products to Product Hierarchy Assignment", the following error occurs;

CMD_PROD_HIER_MSG/014 : "Parent entity does not exist." 

Environment

SAP S/4Hana Cloud.

Reproducing the Issue

Execute URL and payload for post method /sap/opu/odata4/sap/api_prod_hier_prods_srv/srvd_a2x/sap/prodhierprods/0001/ProdUnivHierNormalNode(ProdUnivHierarchy='XXXX',HierarchyNode='0YYYY',ProdHierarchyValidityEndDate=YYYY-MM-DD)/_ProdUnivHierProdByHierNode

Payload :

{
      "ProdUnivHierarchy" : "XXXX",
      "HierarchyNode" : "00000000000PPPPPPP",
      "ProdHierarchyValidityEndDate" : "YYYY-MM-DD",
      "Product" : "PPPPPPP"
}

Cause

There is no any existing hierarchy node used in the URL or Payload.

Resolution

You can assign only the existing products to an existing hierarchy version and node combination.

You can find the same information in below link :

https://help.sap.com/docs/SAP_S4HANA_CLOUD/3c916ef10fc240c9afc594b346ffaf77/3a5bf3f17f8c4aff9b06030ec5b90135.html?version=2208.500

 

Keywords

CMD_PROD_HIER_MSG/014, Parent entity does not exist, Products to Product Hierarchy Assignment, Product Hierarchy API, Assign Products to Existing Nodes in Hierarchy Version, LO-MD-MM, S/4hana cloud. , KBA , LO-MD-MM , Material Master , Problem

Product

SAP S/4HANA Cloud all versions