on 2010 Oct 21 12:43 PM
Hi all,
I have to retrieve a list of users which have a specific value in an attribute: for example, I create the attribute ZDIR, and I should search all the users with attribute ZDIR = 'D_AAA'.
This attribute is often, not always, inherited from the organization in which the users are inserted: i.e. I set the attribute value for the organization but some users in this organization could has a different attribute value.
Is there a function or a method to develop this search?
I try to read the view hrv1222a but in this view I find only the organization, if the user attribute is inherited from the organization.
Thanks!
Request clarification before answering.
Hello Norberto,
I did not check if methods exist to cover your need, but using FM, you can:
1- get all organization plan's positions with RH_STRUC_GET FM (ACT_WEGID = ORGPOOL and object being root organizational unit),
2- for each position, check if your attribute exists or not with BBP_READ_ATTRIBUTES FM. If exists, check value you look for,
3- determine user with BBP_OM_STRUC_GET_USER_FROM_POS FM.
Regards.
Laurent.
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.
Hi
Althoug Laurent's option is best, but if its a one time exercise, then do the following:
1. Look for the positions having the respective attribute from table HRV1222B.
2. For these position find the active CPs from HRP1001 table
3. For these CPs, find the Users (US) from HRP1001
Regards
Virender Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.