SAP Message R8340 - Field type &1 in hierarchy segment &2 is incorrect

R8340 : Field type &1 in hierarchy segment &2 is incorrect