Symptom
- The quantity contract flexible workflow step condition “Total Net Value” is expected to initiate approval but does not initiate for quantity contracts.
- The workflow evaluates only the Target value at contract header, which is typically maintained for value contracts.
- For quantity contracts, users need the net value derived from the sum of all items, but the workflow does not initiate based on this sum.
- The workflow initiates only when the “Total Value” field at the contract header is filled.
- Error message: “Flexible Workflow does not trigger”
- When using Flexible Workflow for contracts and scheduling agreements, it is not clear how the start condition "Target value is greater than" works.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Create a workflow for a quantity contract using Flexible Workflow.
- Set the step condition to “Total Net Order Value” and define thresholds (for example, greater than predefined amounts).
- Create a quantity contract with multiple items and leave the header “Total Value” empty; observe the workflow is not initiated.
Cause
Since the standard header-level field “Target value” has no value, the workflow is not working as expected.
Resolution
- Create separate workflow for quantity contracts and value contracts to differentiate evaluation logic.
- For quantity contracts, implement a custom pre-condition so that the total value is derived from items and then compared against the workflow condition value.
- Define and deploy the custom procurement pre-condition in the Manage Workflow apps; refer to the guidance below.
See Also
Keywords
quantity contract, flexible workflow, total net value, target value, header total value, item sum, purchase contract, approval condition, step condition, not initiated, workflow condition, procurement, contract approval, manage workflow apps, extension field , KBA , MM-FIO-PUR-REL-2CL , Fiori UI for Purchasing Approval (Public Cloud) , Problem
Product
SAP S/4HANA Cloud Public Edition all versions
SAP Knowledge Base Article - Public