Message SAP WY104 - Partner function & defined for hierarchies

Diagnosis
You have tried to assign a partner function with a higher-levelpartner function to a partner schema for the vendor.

System Response
Partner functions with higher-level partner functions can only beassigned to partner schemas of the purchasing document header.The system determines these functions when you create the purchasingdocument using the vendor hierarchy.