would be the Extractor connector an Option?
Maybe these extractors might be an Option:
There are some script parts provided by using the Extractor Connector supports you building the hierarchies.
You might check the result of these in RSA3 if they are already available in the SAP System.
Otherwise it might be actiavated via SBIW.