cancel
Showing results for 
Search instead for 
Did you mean: 

How to skip a step in BRF+ table if particular condition is met

Former Member
0 Kudos

Hi Experts,

We have a requirement in which 2 level approvers exist.

CR submit->1stLevelApprover->Approve/Reject(If Sales area data exist in CR)->2ndLevelApprover->Activate/Reject->Complete Workflow

CR submit->1stLevelApprover->Approve/Reject(If Sales area data does not exist in CR) ->Complete Workflow

If there is no sales area data in CR then 2nd Level Approve is not required So we have to skip the 2nd level approver step in BRF+ table.

Kindly suggest the way to do this.

Correct answer will be highly appreciated.

Thanks,

Kavya

Accepted Solutions (1)

Accepted Solutions (1)

henk_verdaasdonk4
Active Participant
0 Kudos

Hi Kayva,

Implement a call to RBW (rull based Worfklow) synchronous method. Which checks if Sales Org. data exist and depending no the outcome gives a diifferent action outcome. The action you can use in your WF to steer to a 2nd approval or skip.

Steps:

  • Define a RBW service name
  • Implement BAdI: Calling of System Method for Rule-Based Workflow (USMD_SSW_SYSTEM_METHOD_CALLER )
  • Use the request number and API  cl_usmd_conv_som_gov_api to retrieve CR details (Sales Org. data)
  • Put correct outcome (action) in EV_ACTION
  • Build in new step in RBW BRF+ tables to call the sync. method.
  • And based on the action steer the WF to correct next step

Cheers,

Henk.

Former Member
0 Kudos

Hi Henk,

Thanks and expected your reply.

I will try this way and let you know in case if i get stuck somewhere.

Thanks,

Kavya

Former Member
0 Kudos

Hi Henk,

Can you please elaborate on the below points

  • Put correct outcome (action) in EV_ACTION
  • And based on the action steer the WF to correct next step

If you have any document or link please do share. It will be very helpful.

If i pass step numbers in EV_ACTION like

if X = Y

EV_ACTION = '90'

else

EV_ACTION = '99'.

endif.

then how can i use this to steer WF to correct next step?

Please explain.

Thanks,

Kavya

henk_verdaasdonk4
Active Participant
0 Kudos

Hi Kavya,

Indeed.

In your RBW BRF table single value you can use this action in the PREVIOUS ACTION column. So you can steer the WF in the correct direction.

You don't have to use only figures. You could also use OK and SK (Skip).

Cheers,

Henk.

Answers (0)