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

Auto Approval of flexible workflow based on Custom Condition

PranavMahajan
Explorer
0 Kudos
1,421

Please help to design solution to setup flexible workflow in a case where PO should be automatically approver if PO has Outline agreement as reference object. 

In a case where PO doesn't have any Outline agreement as reference then same PO should be passed to approver for WF approval. 

We are already able to trigger flexible workflow to approver for PO, but now just want to get auto approved in a case where there is OA in PO item.

Many Thanks !

Accepted Solutions (1)

Accepted Solutions (1)

Eric_Yu1
Product and Topic Expert
Product and Topic Expert
0 Kudos

Answers (2)

Answers (2)

Krithika_B80
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

The BADI Automatic Release of Purchase order is to be set active in Manage workflows for Purchase orders app.

If there are no active workflows configured other than automatic release, the PO will automatically be approved without referencing to any pre-conditions.

SAP has delivered a set of pre-conditions and step conditions. Customers can additionally define their own pre-condition / step condition using the custom BADI. New conditions can be defined using custom BADI SWF_WORKFLOW_CONDITION_DEF.

Please refer to https://me.sap.com/notes/2841783

Best regards,

Krithika

Jorgo
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

you are aware that you can define your own preconditions for the start of workflows and for workflow steps.

You can create implementations for the following BAdIs:

  • Providing additional conditions for scenarios (SWF_WORKFLOW_CONDITION_DEF)
  • Value evaluation of additional conditions for scenarios (SWF_WORKFLOW_CONDITION_EVAL)

Best regards