cancel
Showing results for 
Search instead for 
Did you mean: 

Function to find users in Role assignment

sap-harshada
Participant
0 Kudos

Hi,

Is there any function module to get the users for the assigned role in the cProject task?

Thanks in advance.

Harshada

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member201206
Active Contributor
0 Kudos

Hi Harshada,

After you get the guid of the BP of user-id.

1. Select dpr_bupal_link using BP guid to get the role (concrete) guid.

2. Select the dpr_part using the role guid to get the role.

3. Select the dpr_entitiy_link using the role guid to get the assigned tasks.

If you would like to take the abstract role into account, you can use cgpl_hierachy to abstract role.

Then repeat steps 2 & 3 above.

Kind regards,

Zhenbo

sap-harshada
Participant
0 Kudos

Thanks for ur reply !!

Can you tell me from where I can get the roles/BPs assigned to task?

sap-harshada
Participant
0 Kudos

BAPI_BUS2175_GET_DETAIL returns guids for roles assigned!!

I need to send email to all the users in roles assigned.....

Thanks

Edited by: harshada haldankar on Mar 31, 2011 7:28 AM

Edited by: harshada haldankar on Mar 31, 2011 7:28 AM

Former Member
0 Kudos

Hi Harshada,

Have you tried: BAPI_BUS2177_STAFFING_GET_DET & BAPI_BUS2177_TASK_ASSIGN_GET_D ?

BR

Matthias

sap-harshada
Participant
0 Kudos

Thanks for your reply Matthias....

I have found one FM BUP_PARTNER_GET_BY_BPROLE which is returning Business Profiles assigned to BP role....

But do you have any idea which table has list of all BP roles. There is one TB003, but is is not having all BP roles.

Thanks.

Former Member
0 Kudos

Hi,

DPR_PART table stores all roles: concrete (resource role) + abstract (project role)

Matthias