Hi,
If you need a different length, you may modify the structure in OVSV transaction - maintain prod hierarchy structure. Refer the help doc: Define Product Hierarchies - Material Master - SAP Library
Hope the note: 927249 - FAQ: Different problems with product hierarchy can provide you few more idea.
Regards,
AKPT