Hi Mayank,
There is no standard FM, specific to ur requirements.
n I have created one but rite now I can't give because company policy but I can tell the logic.
There r 2 tables HRP1001 n HRP1000
You create one FM with Object Id as a import parameter and
tree as an output
You have to select the data first from HRP1001 table based on provided Object Id and other where clause.
If sy-subrc = 0.
Then select from HRP1000..
If sy-subrc = 0.
Then u need to call same FM u created again..
We call it recursive functionality to get tree.
I hope, you have got some idea. Inform me if not clear.
Reg,
Arpit
Add comment