I'll start with simple hierarchy demo containing HIERARCHY NAME, GROUP and OBJECT.[HIERARCHY NAME is the top node, GROUP is the middle node and OBJECT is the end node]
1.In data model, you have to create all the as 3 entity types.
2.In the middle node,i.e. GROUP here, choose the hierarchy option as version dependent or Non-version dependent as per your requirement.
3.In the middlle node,i.e. GROUP here, build hierarchy by assigning
Here the top node,i.e. HIERARCHY NAME ,will be assigned use as Hierarchy names
You can find related documentation by using F1 help on specific field.
4.Your hierarchy model is now ready.