Several Cloud BADIs are available for Purchase Requisition Flexible Workflow as listed below. Cloud BADIs can be implemented by using app "Custom Fields and Logic" with the role SAP_BR_ADMINISTRATOR.

  • Approval Agent Determination 

 BADI MMPUR_WORKFLOW_AGENTS_V2(Workflow Agent determination) is available for approver agent determination to determine agents in addition to role based or user  based approval agents.

KBA note https://launchpad.support.sap.com/#/notes/2646400 can be referred for further details

Note:-

  • If there are multiple steps with Recipients as Agent Determination by BAdi, the pre-conditions associated with the steps need to be considered in the BADI Implementation as well.
  • Again in case of BADI agent determination rule, the number of steps defined in the workflow configuration should be equal to or less than the number of approval level implemented in BADI agent determination rule. 
  • Custom Pre-conditions in apps for Manage Workflow for Purchase Requisitions

BADIs SWF_WORKFLOW_CONDITION_DEF(Providing additional conditions for scenarios) and SWF_WORKFLOW_CONDITION_EVAL(Value evaluation of additional conditions for scenarios) are available for adding and evaluating custom pre-conditions for flexible workflow scenarios.

KBA note https://launchpad.support.sap.com/#/notes/2767845 can be referred for further details

  • Manage conditions for re-start of flexible workflow

BADI MM_PUR_S4_PR_WFL_RESTART(Define Conditions to Restart Flexible Workflow) is available to define your own conditions to restart the approval workflow in purchase requisitions. Critical changes made to the existing purchase requisitions will restart the approval process. You can use this BAdI to overwrite the configurations defined in configuration step Manage Conditions to Restart Flexible Workflow in app Manage Your Solution.

KBA note https://launchpad.support.sap.com/#/notes/2846174 can be referred for further details.