Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Avoid multiple hits on HRP1001

Former Member
0 Likes
588

Hello all,

I have a requirement wherein I need to check if there is a chief position existing for a particular Org Unit. I can do this by checking in HRP1001 with appropriate obj type etc. But if I fail to find the chief position, I need to check if the Ord Unit has a superior Org Unit and then find the chief position of that Superior Org Unit.

This means we need to hit HRP1001 till we find a chief position, which is highly performance deteriorating. Is there any other way that would improve the performance in this logic?

Useful answers will be awarded with points.

Thanks,

Anil

1 ACCEPTED SOLUTION
Read only

venkat_o
Active Contributor
0 Likes
530

Hi <li>Try to use RH_GET_LEADER function module to get manager. Thanks Venkat.O

Hello all,

I have a requirement wherein I need to check if there is a chief position existing for a particular Org Unit. I can do this by checking in HRP1001 with appropriate obj type etc. But if I fail to find the chief position, I need to check if the Ord Unit has a superior Org Unit and then find the chief position of that Superior Org Unit.

This means we need to hit HRP1001 till we find a chief position, which is highly performance deteriorating. Is there any other way that would improve the performance in this logic?

Useful answers will be awarded with points.

Thanks,

Anil

2 REPLIES 2
Read only

venkat_o
Active Contributor
0 Likes
531

Hi <li>Try to use RH_GET_LEADER function module to get manager. Thanks Venkat.O

Read only

Former Member
0 Likes
530

Thanks a lot venkat.... it solved the problem, though i am not sure of the improvement in performance.