Skip to Content
0
Former Member
Jun 11, 2006 at 05:24 AM

How to get the manager's personnel number

182 Views

Hi Team,

Am new to ABAP HR.

Can someone help me out in this issue...

This is my requirement...

1. Find assignment Person – Position – Org Unit. This OU is now <Working OU>.

2. Check whether the following relationship to this OU exists using the key: HRP1001-OTYPE = ‘S’, HRP1001-RSIGN = ‘A’, HRP1001-RELAT = ‘012’, HRP1001-SCLAS = ‘O’, HRP1001-SOBID = <Working OU>

2.1. If the result of the #2 is negative, find the OU that <Working OU> reports to, using the key: HRP1001-OTYPE = ‘O’, HRP1001-RELAT = ‘002’, HRP1001-OBJID = <Working OU>, HRP1001-RSIGN = ‘A’, HRP1001-SCLAS = ‘O’. Use the resulting OU in HRP1001-SOBID to replace <Working OU> and return to step #2

2.2. If the result of the #2 is positive, the HRP1001-OBJID is the chief’s position <Working POS>. Now find a person assigned to this position using the key: HRP1001-OTYPE = ‘S’, HRP1001-RELAT = ‘008’, HRP1001-OBJID = <Working POS>, HRP1001-RSIGN = ‘A’, HRP1001-SCLAS = ‘P’

2.2.1. If the result of the #2.2 is positive, HRP1001-SOBID is the personnel number of the manager. Stop and return.

2.2.2. If the result of the #2.2 is negative, discard <Working POS> and return to step 2.1.

The above algorithm may be implemented using the following function modules:

HRCM_ORGUNIT_MANAGER_GET

RH_STRUC_GET

I dont understand what are the parameters i need to send to both the functions.

Please help me out.....

Thanks and Regards

Abhi