I am trying to fill an internal table with org units, which have been downloaded from SAP HR to CRM. I found 2 tables, HRP1000 and HRP1001, which store all orgunits and their relations. As we have manually added some virtual service organisations in ppoma_crm, it ist not possible to differentiate between orgunits coming from HR and those which were manually added.
My idea is to read the complete tree recursively in a program, starting with the root of the HR organisation, but I don't understand the data structure of org management (espacially relations between infotypes) nor do I know, which functions to use.
Can anybody help me ?
Thanks and kind regards