cancel
Showing results for 
Search instead for 
Did you mean: 

Searching user by attribute.

Former Member
0 Kudos

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!

Accepted Solutions (0)

Answers (2)

Answers (2)

laurent_burtaire
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Hi,

Check next post:

Ab.

Former Member
0 Kudos

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