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 :
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