Origin org unit in pnpobjid table
I'm working in HR module and I've problems to retrieve the organizational unit. From the selection screen is posible to select an org unit and all the units dependants from the first one. These units and groups are located into a table called pnpobjid and what I need is to retrieve which was the original one the 'mother' of all the other, because this pnpobjid table sort the them in an ascending way and the 'mother' is not always the smaller, so could be located in the middle of the table.
Does anybody know some FM or some way to retrieve this originary og unit from pnpobjid?????
Many thanks to all of you!!!