cancel
Showing results for 
Search instead for 
Did you mean: 

Employee Hierarchy

Former Member
0 Kudos

Hi,

Could any one please help me to find the Superior of the employee or Employee hierarchy for escalation process?

My requirement is that i need to escalate to superiror of the employee if the employee was not able to answer the escalation.

Do we have any Function modules to find this Employee Hierarchy?

Thanks for all your support.

Regards,

Gopi.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

You can also use Rule 157 to determine the Superior with respect to Position Id. If you have User ID and Personnel number then it is wise to use Rule 168.

<b>Reward points if useful</b>

Former Member
0 Kudos

Hi,

I am trying for that but here i can't call this rule directly from the workflow.

I need to call this FM explicitly from my code.

Could you please elaborate me the input fields that i need to give for this Function module?

Your help is greatly appreciated.

Thanks and Regards,

Gopinath Addepalli.

Former Member
0 Kudos

DATA: l_ac_container TYPE STANDARD TABLE OF swcont WITH HEADER LINE,

l_actor_tab TYPE STANDARD TABLE OF swhactor WITH HEADER LINE.

l_ac_container-element = 'ORG_OBJECT'.

l_ac_container-elemlength = '025'.

l_ac_container-type = 'C'.

CONCATENATE 'US' uname INTO l_ac_container-value.

APPEND l_ac_container.

CALL FUNCTION 'SWX_GET_MANAGER'

TABLES

actor_tab = l_actor_tab

ac_container = l_ac_container

EXCEPTIONS

nobody_found = 1

OTHERS = 2.

Former Member
0 Kudos

Hi,

Thanks for the input.

Last but not least.

Do we need to add the UName or EMployee ID for the l_ac_container-value?\

Thanks and Regards,

Gopinath Addepalli.

Former Member
0 Kudos

It's depend on object,

if u use uname - concatenate "US" (object type) and username into value.

if other object - concatenate "S " for examle, or 'P ' for person and its ID.

This function returns uname (type US).

Former Member
0 Kudos

Hi,

standard rule fto find superior - 00000168 (u can test it in PFAC), function SWX_GET_MANAGER.

You can use function RH_STRUC_GET with proper WEGID to read hierarchy