cancel
Showing results for 
Search instead for 
Did you mean: 

PR Flexible Workflows Skip Step BADI

2,539

Hi All,

I have a requirement in PR Flexible workflows where i have to dynamically skip the step when user was not found in the customized table in agent determination badi. When i configured the workflow i used fixed number of steps and configured each step as optional as my requirement initially was that there would be fixed number of approvers. But now my requirement changed such that there could be lesser number of approver than steps. So inside the agent determination BADI, i am assigning last approver in the last step (for instance if there are only 4 approvers and 6 steps, i am assigning 4th approver to 6th step and not giving any approver to 4th and 5th steps). When we create PR then after all approvals, the workflow step is stopping at 4th step as Completed as there is no agent found. I was expecting it should skip the step, but not luck.

Also i searched several blogs in SAP but could not find any BADI with respect skipping the steps. Any one worked with such sort of requirement, could you plz respond this my query - It would be very helpful, would reward

Accepted Solutions (1)

Accepted Solutions (1)

ramki_maley
Active Contributor
0 Kudos

Hi Rakesh,

The only way to skip a step in Flexible Workflow is to use a step condition.

Cheers,

Ramki Maley.

Answers (2)

Answers (2)

hemachandran_v
Explorer
0 Kudos

Hi Rakesh,

Did you fixed the issue? I am also having requirement. Let me know if you a solution for the issue.

Regards

Hemachandran

0 Kudos

Hi Ramki,

Thanks for the reply.

I cannot use any conditions to skip the step as it has to be dynamic based on the available entries in the custom table, and current processor.

I need to check if i can use custom badi enhancement for custom condition evaluation and determine current processor from tables and processed so far and skip the steps. Thanks again.

Mithun_Kumar
Active Participant
0 Kudos

Hi rakeshm02_sap ,

Did you find any solution to this?

Best Regards,

Mithun.