SAP Knowledge Base Article - Public

3285103 - Error - " Invalid segment 'ProdUnivHierNormalNode(ProdUnivHierarchy='XXXXXXXX' " while using API 'Products to Product Hierarchy Assignment' to assign a product to a product hierarchy node.

Symptom

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

" Invalid segment 'ProdUnivHierNormalNode(ProdUnivHierarchy='XXXXXXXX’ "

Environment

SAP S/4Hana Cloud.

Reproducing the Issue

Execute URL 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

Cause

Wrong punctuation is used in the URL call.

Resolution

Please Change right single quotation mark to " ' "  in URL.

( i.e )ProdUnivHierarchy='XXXXXX to ProdUnivHierarchy='XXXXXX'  

Keywords

400 error,  Invalid segment 'ProdUnivHierNormalNode(ProdUnivHierarchy='XXXXXXXX’, Product Hierarchy API , ProdUnivHierNormalNode, LO-MD-MM, S/4Hana cloud. , KBA , LO-MD-MM , Material Master , Problem

Product

SAP S/4HANA Cloud all versions