Application Development 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: 

How to find cheif of Organization Unit.

Former Member
0 Kudos

Hi,

I am developing a report related to HR org management. Could anybody suggest me how to get chief of a organization unit using function module or select stmt. I have PERNR and I need to get who if the chief of that PERNR.

Thanks,

Ram

5 REPLIES 5

Former Member
0 Kudos

hi,

check function module:

rh_get_leading_position.

regards,darek

0 Kudos

Could you please tell me how to use FM 'rh_get_leading_position'. When I call this FM in my program, I am not getting any value. Its always blank.

Former Member
0 Kudos

Hello

Use the FM SWX_GET_MANAGER by passing the AC_CONTAINER with the following values.

ELEMENT = 'ORG_OBJECT'.

ELEMLENGTH = '025'

TYPE = 'C'

VALUE = 'P <pernr>' " Make sure you have a space between character 'P' and <pernr> which you pass.

The return table ACTOR_TAB will have the personnel number of manager.

Regards

Ranganath

MarcinPciak
Active Contributor
0 Kudos

Hi,

- read EE's current org unit

- use i.e. FM HRCM_ORGUNIT_MANAGER_GET passing it as objid and otype = 'O' .

You will get this org unit Manager.

Note!

There are plenty of functions you can use to achieve the same. The above is just an example.

Regards

Marcin

Former Member
0 Kudos

chk fm,

RH_ACT_LEADING_POSITION - to get Superior (chief position))

RH_GET_LEADING_POSITION - using in this module RH_ACT_LEADING_POSITION

chk this thread too.