cancel
Showing results for 
Search instead for 
Did you mean: 

How to skip first stage in MSMP when approvers are same

former_member490487
Participant

Hello Experts,

In our scenario, MSMP workflow has up to 3 stages of approval and the risk mitigation is done in the 2nd stage.

There are cases where the first and second approver is the same person.

How can we skip the first stage in such cases?

Thank you in advance for any insight.

Accepted Solutions (0)

Answers (2)

Answers (2)

alessandr0
Active Contributor

Hi Theresa,

It also works when you decide the path during the initiation of the request. Compare the roles owners and the manager and if the same, route to a different path. You can either use the existing rules that exist, or you build custom functions. In BRFPlus you might have to use a DB Lookup for GRACROLEAPPRVR table, as well as a function call to the HR system or table GRACUSER (if MANAGER_ID is synced).

Hope that helps.

Regards, Alessandro

former_member490487
Participant
0 Kudos

Hi Alessandro,

It sure helps. Would you have a link for reference material on how to use function call in BRFPlus, please? I found for DB Lookup.

Thanks.

alessandr0
Active Contributor
0 Kudos

Hi Theresa,

I guess DB lookup should be fine. Manager is stored in table GRACUSER in field MANAGER_ID. Check if information is present and then that's a simple solution.

In case it's not, you have to define a user detail data source and run an user sync.

The standard function module that is used in MSMP (GRAC_MSMP_MANAGER_AGENT) also retrieves the manager from GRACUSER. Check also method CL_GRAC_API_ACCESS_REQUEST-GET_MANAGER_INFO.

Hope that helps.

Regards, Alessandro

alessandr0
Active Contributor

Theresa,

it's possible with BRFPlus and the use of routing rules. You might need to change your current design so that this is possible. If manager is the first stage, then add a routing rule that gets called when the manager approved. If the role owner (second stage) is the same, you can route the request to another path. That path would then be e.g. security stage. Since you are having a second path, you also need a routing at the end of the role owner (second stage) to route to your security folks.

Hope that gives you an idea of how to design it.

Regards, Alessandro

former_member490487
Participant
0 Kudos

Hi Alessandro,

Thanks for your always prompt help.

We are already using BRFPlus for the initiator rule based on the request type and standard routing rules for some stages.

However, since the risk mitigation is mandatory only in the second stage, then the first stage should be skipped in case of same approver. In MSMP terms: if the approvers are different, then the path should have Manager and Role Owner; if the approvers are the same, then the path should have only Role Owner.

Anyways, how did you compare the Manager and Role Owner, please?

Thank you again.
Regards, Theresa

0 Kudos

Dear Alessandro,

We have similar scenario where the MSMP workflow has 3 stages to assign firefighter userID. Once the request raised it goes to first stage which is the Head of Section, then in second stage it goes to Data Owner then the last stage to Security team. There are cases where the approval in first and second stages are the same person so we don't want him to approve same workflow two times.

How can we skip the second stage? we are using function modules not BRFPlus
Any help would be appreciated.

Thank You

Maj

Monsores
Active Participant
0 Kudos

Hi majsap

In your case you can set stages without approvers to be automatically approved and develop a custom approver agent for your 2nd stage to return no approvers when they have already approved previous stages.

Regards,

Marcelo