cancel
Showing results for 
Search instead for 
Did you mean: 

How to get current role name in nwbc if one user have multiple roles assigned ?

0 Kudos

Hi Experts,

I am trying to get the role name in MDG MM.In my scenario ,in the first workflow step when requestor submits change request after entereing all the data  it routed to four functional teams parallely.i want to retrieve the role name in the second workflow step who is trying to access the change request and enriching the data at that point of time.these functional teams are assigned in second workflow step paralelly.

It's really helpful if anybody guide me on this .

Regards

Debasish

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

I'm not sure that's a valid design assumption (that the same user will have different roles). If a user has to do something, the user will work with the change request list (regardless of what role s/he is logged onto). If the task is to approve, the user will know when s/he opens up the task. If the task is to change/correct details, s/he will know when s/he opens up the task.

Is this a custom or standard task that you send to the user? If custom, you might be able to add a new parameter and you pass a flag indicating the role in the workflow template through binding.

If you are trying to modify the change request list, then you should look into the web dynpro application that displays the list of change request workflow items.

Former Member
0 Kudos

The quesetion is a little confusing. What role are you talking about? The security role? Why do you need that in workflow? What is the relationship between that and NWBC?

0 Kudos

Hi Abdullah,

Thanks to take interest in my requirement .According to my requirement we are using pfcg roles for MDG MM which are assigned to user  .These roles are used at the time of workflow routing . i am trying to retrieve the run time role name which are used in nwbc . The user going through the nwbc and using his corresponding role to create a material or to enrich the data for a process material to enrich the data.if you have any solutions please share with me .

Thanks & Regards

Debasish

subhronath_mukherjee
Participant
0 Kudos

Hi Debasish,

There are 5 standard roles for Material.

SAP_MDGM_MENU (Menu)

SAP_MDGM_REQ (Requestor role)

SAP_MDGM_DISP (Display role)

SAP_MDGM_STEW(Data Steward)

SAP_MDGM (Manager)

During runtime based on the workflow step and the person authorized to perform the work gets the role from the above list. Also if you do a SU01 you can see all the roles assigned to a particular user.

As you mentioned if a person performs the create operation then he gets a SAP_MDGM_REQ role.

The SAP_MDGM role has all the authorization. Hope this helps!

Thanks,

Subhronath

Former Member
0 Kudos

Hello,

The workflow routing is already done in the workflow engine. For e.g. the next workflow step is routed to role SAP_MDGM_STEW, then users with this role will see the workflow task in their task list.

Are you saying that if the user has multiple roles but he has logged onto a specific role, then he should only see the tasks that is assigned to that role?

Former Member
0 Kudos

I still don't see why you need the role name in the workflow run time. What are you going to do with it? The workflow starts and gets routed based on the change request type and the different workflow agents you assign in MDGIMG.

0 Kudos

Hi Tommy,

Thanks to took interest in query.Your assumption is correct .In this case the user has multiple role and he has logged into a specific role .Then he should only see the customized ui assigned to him and his specific task he has to perform.

                                                           

                                                            What should be the approach  to get this current role assigned to him at runtime.

Thanks & Regards

Debasish

0 Kudos

Hi abdullah,

In the current scenario I have to retrieve current agent/assigned role who access his functional role in the system to submit the change request.In this scenario requestor created the change request and submit it then it routed parallely to four functional teams for submission.After submission of change request by four functional teams it goes to another functional team for approval .when a functional team access the change request for data enrichment he should see his role specific task .

Thanks & Regards

Debasish