cancel
Showing results for 
Search instead for 
Did you mean: 

Rule to find out superior in org structure

Former Member
0 Kudos

Hi,

I want to find out all superior of a particular user in org structure. Lets say under user A1, there are two employee.. B1 & B2. Under B1, there are 3 employee C1, C2, C3. Now is there any standard rule is available in which if i give user C1 position id then it will give me superior B1 & A1. I know about rule 168, but it gives me only immediate supervisior in return. I need all supervisior id.

If there is no std rule available then how do i achieve this kind of requirement. Please share your opinion.

Regards,

Smit

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

No there is no such standard rule that will serve your purpose you have to play with 168 rule only.

Thanks

Arghadip

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Raj,

I will do the same what u have suggested.

Thanks all of u for giving reply.

Smit

former_member193382
Active Contributor
0 Kudos

Hi,

SAP does not provide standard rules to do that. you need to code the default

agent determination yourself.

I would suggest that, you create a custom method, you can use the fm SWX_GET_MANAGER in that method to get the manager.

You can loop at this FM within the method with the previous determined agent values to populate the agents table.

Then you can use the agents name based on the table index value.

Hope it helps.

Regards,

Raj

vijy_mukunthan
Active Contributor
0 Kudos

Hi

You cannot get by std way. You have write the select query

select * from hrp1001 into it_hrp1001 where PLVAR = '01' and OTYPE = 'S' and OBJID = lv_objid and RSIGN = 'B' 
 and RELAT = '012'.

The above query would help you.

Regards

vijay

Former Member
0 Kudos

HI;

have a look at

[Link|;

Regards

Shashi