Symptom
More preconditions of the Workflow settings for Purchase Requisition need to be added.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Open APP Manage Workflows for Purchase Requisition
- It is not possible currently to add new pre-conditions in addition to those delivered by SAP
Resolution
Use BAdIs to active custom condition in workflow:
- BADI - SWF_WORKFLOW_CONDITION_DEF, Method : GET_CONDITIONS
Use : to define additional conditions for scenarios
- BADI - SWF_WORKFLOW_CONDITION_EVAL, Method : EVALUATE_CONDITION
Use : to evaluate the additional conditions defined
The scenario ID for PR is
- WS00800157 - Release of Purchase Requisition Header Level
- WS00800173 - Release of Purchase Requisition Item Level
Additionally, approver agent determination based on different purchase requisition attributes can be influenced via Recipients -> Role ->"Agent Determination by BADI" for each step.
Use BAdI for agent determination to modify the recipients based on implementation of BAdI MMPUR_WORKFLOW_AGENTS_V2(Workflow Agent determination).
Refer to KBA note 2646400 for more details about BADI Implementation.
Keywords
flexible WORKFLOW, MMPUR_WORKFLOW_AGENTS_V2 , KBA , MM-PUR-REQ-2CL , Purchase Requisitions (Public Cloud) , Problem
SAP Knowledge Base Article - Public