My requirement goes like this----
Suppose for an organization, Org. Chief is not maintained, next higher level Org.unit Chief should be fetched.
EX: 10000002 Org.Unit Reports to 10000001 Org.Unit
i.e 'O' 10000002 A002 'O' 10000001
There is no org.chief for 10000002 Org.unit i.e
'O' 10000002 B012 does not exist and there exists a relationship such that
'O' 10000001 B012 'S' 30000015.
Now when i execute that function module with Object type as 'O' and org.Unit as 1000002 with relationship B012, it should get me 'S' 30000015.
Is there any function module which will help me in getting the required?