cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Email Template should not trigger for Auto PR Release Approval in Flexible Workflow

dinesh_kumar45
Participant
1,067

Hi Everyone ,

I have created an Email template for PR release approval process and its working fine for Flexible Workflow . The Problem is email template is also triggering for Auto Approval for PR release . This should not be trigger .Anyone have idea how to restrict the mail process for that.

Thanks

Dinesh Kumar

Accepted Solutions (0)

Answers (1)

Answers (1)

thkolz
Contributor
0 Kudos

You could define conditions via BAdIs SWF_WORKFLOW_CONDITION_DEF and SWF_WORKFLOW_CONDITION_EVAL:
2767845 - How to define new Procurement Pre-conditions in Manage Workflow Apps. | SAP Knowledge Base...

dinesh_kumar45
Participant
0 Kudos

Hello Thorsten Kolz,

Is this BADI work for recipient ? I have also used these BADI for Custom Step condition. Please in-lighten on this.

Thanks

Dinesh Kumar

thkolz
Contributor
0 Kudos

Hi Dinesh,


those BAdIs don't have the purpose to determime approvers, but to define starting conditions that can be configured in the FIORI app for the flexible workflows.

BR,

Thorsten

Mithun_Kr
Active Participant
0 Kudos

This BAdI is only to define pre-conditions for the steps in the workflow, or whether a particular WF is considered at all. If all of those conditions do not satisfy, then the last one is selected, which is the Auto-Approve.

Email being sent out after approval is independent of whatever this BAdI does. So the actual question is still not answered, how to prevent the email being sent only for the auto-approval case?