on 12-30-2009 7:01 PM
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
No there is no such standard rule that will serve your purpose you have to play with 168 rule only.
Thanks
Arghadip
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raj,
I will do the same what u have suggested.
Thanks all of u for giving reply.
Smit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.