cancel
Showing results for 
Search instead for 
Did you mean: 

Auto-Approval of individual steps in a Flexible Workflow

Mithun_Kumar
Active Participant
0 Kudos

Hi All experts,

I searched a lot, but couldn't figure out a solution for this. Do you know if the following scenario is possible by any means (config, BAdI impl., or even (dirty) implicit enhancements)?

Our Flexible workflow has multiple steps, and e.g at step 2 there's a specific condition, due to which the WF is required to get auto approved at that step and then determine agent for the step 3.

We've the conditions and agent determination, all under control, but not able to figure out the auto-approval part.

Is this possible by any means? Has SAP even thought of such a requirement?

Can you please give me some guidance or pointers?

Accepted Solutions (0)

Answers (2)

Answers (2)

SBach
Advisor
Advisor

Hi Kumar,

thanks for coming back and sorry for the late response.

One idea would be to call the agent determination BAdI in the Condition Evaluation BAdI and compare to the first approver. I didn´t check if feasible.

Second, in procurement scenarios an implementation exists, where a step is "optional" only if an agent is found. So in the agent determination, prior approvers are removed as agents. Is there no new agent found, the step is skipped. Unfortunately I don´t know the exact scenario ID / release. I would need to ask.

Best regards

Sebastian

Mithun_Kumar
Active Participant
0 Kudos

Thanks for the hints. I did think of doing this as well, however the parameters required for the Agent determination BAdI doesn't seem to be available at the time of Condition evaluation 😞 So it doesn't seem possible to call the Agent BAdI from within condition BAdI.

I'll try to find out the other possibility you mentioned. Haven't seen anything like that, yet.

SBach
Advisor
Advisor
0 Kudos

Hi mithunkr10,

you could implement a custom condition so that step 2 is skipped if the condition mets. There is a BAdi to add a custom conditions and one for condition evaluation.

If it is time depending on a deadline please reach out to the application to implement a deadline action "auto approval" for the scenario. This may also be helpful.

Best Regards

Sebastian

Mithun_Kumar
Active Participant
0 Kudos

Hi Sebastian,

Thanks for your reply. But unfortunately this doesn't solve our purpose, because the condition I'm talking about is related to the agents determined in Step 2. I've already implemented the conditions BAdI, and it works as required. However, we can't determine agents for the step, in this BAdI.

It's something similar to this:

Step 1: Step condition Satified -> Agent Detmined -> Approved

Step 2: Step Condition Satisfied -> Agent Determined (As per the logic, Agent turns out to be the same as in Step 1) -> Need to Auto-Approve without bothering the same user again.

Step 3: Step condition satisfied -> Determine Agent....

Now the question is, how can we achieve the above scenario in Step 2?