Managing these rules without automated approval processes can lead to mistakes. Requests may go to the wrong person, approvals may be delayed, and tracking the document’s stage can be difficult.
This is exactly where Flexible Workflow in SAP S/4HANA can help. It lets you define workflow conditions, approval steps, and approvers based on business requirements without developing a separate workflow for every approval scenario.
In this article, we explain how Flexible Workflow works and walk through its configuration using Purchase Requisition approval as an example.
Flexible Workflow is a low-code, configuration-based workflow capability in SAP S/4HANA that allows businesses to define and automate approval processes based on predefined business conditions.
For example, a company can define such rules:
A workflow scenario defines the business process or document the workflow applies to and provides the framework for configuring the approval process.
SAP provides predefined workflow scenarios for different business processes and documents. For Purchase Requisitions, for example, SAP provides scenarios for overall release and item-level release.
In this example, we use WS02000458 – Overall Release of Purchase Requisition.
The workflow starts when the start conditions are met. Then the configured approval steps run, and approvers can see the tasks in My Inbox.
Note:
Start conditions determine which documents a specific workflow should process.
Step conditions determine whether a particular approval step runs.
In this article, we will walk through Flexible Workflow configuration using the purchase requisition approval process as a practical example.
The configuration of Flexible Workflow can be divided into two main areas:
Now let’s dive into these steps in more detail.
In this article, we use purchase requisition approval as an example.
The process starts with Automatic Workflow Customizing. It ensures the required system settings for workflow are activated and configured correctly.
Actions:

For purchase requisitions, the workflow scenario defines the approval process and provides the framework for setting up approval conditions, steps, and approvers.
You can maintain and activate workflow scenarios in the SWDD_SCENARIO transaction.
SAP provides a wide range of preconfigured workflow scenarios for various business documents and processes.
In our example, we will use the standard workflow scenario WS02000458 – Overall Release of Purchase Requisition.

To activate the scenario, the user needs to add the workflow scenario IDs and activate it.
Actions: SPRO-> ABAP Platform-> Application Server -> Business Management -> SAP Business Workflow -> Flexible Workflow -> Scenario Activation
This is what it looks like:

My Inbox is a central SAP Fiori application where users view and process all workflow tasks assigned to them. In Flexible Workflow, My Inbox is the main workspace for approvers. When a document like a purchase requisition requires approval, the workflow task appears in their inbox. The user can open the task, review the information, and perform actions such as Approve, Reject, or Request Rework.
Actions:

Deactivate workflows based on old scenarios. Find all records for BUS2105 and clear the field “Indicator showing whether event type linkage is activated.”
Where to do it: Transaction SWETYPV

This step connects the workflow scenario with corresponding workflow tasks and system events. It ensures the system automatically triggers the workflow when the relevant business event occurs.
Actions:
Where to do it: SPRO → SAP NetWeaver → Application Server → Business Management → SAP Business Workflow → Perform Task-Specific Customizing



Flexible Workflow uses value helps when configuring workflow conditions and other settings. To make these value helps available, register the required OData service S_MMPURWORKFLOWVH_CDS.
Where to do it: Transaction /IWFND/MAINT_SERVICE

At this stage, you enable Flexible Workflow for the relevant purchase requisition document type.
Action:
Where to do it: SPRO -> Materials Management -> Purchasing -> Purchase Requisition -> Flexible Workflow for Purchase Requisitions -> Activate Flexible Workflow for Purchase Requisitions
Warning: Once you activate Flexible Workflow for a purchase requisition document type, you must process PRs of this type using Flexible Workflow, either through manual or automatic release.

As we know, here business users can configure the process independently in the SAP Fiori app «Manage Workflows for Purchase Requisitions» ID F2705.
First, you create a new Flexible Workflow.

Next, enter a workflow name and specify its validity period.

Define the conditions that determine when the workflow applies, such as the document type and request amount.

Define the workflow approval sequence: who needs to approve the request, when each approval step is triggered, and the order in which the steps are executed.
The first step can be, for example, the Head of Department approval.

For each approval step, specify the recipients, the users responsible for approving the request. A recipient can be defined as a business user role or a specific user.

You can define conditions for each workflow step. A step condition determines whether the approval step runs for a particular request.

Example
The required approval process is:
If the request amount is 8,000, the second approval step is skipped.
If the request amount is 15,000, the second approval step is executed.

The configured workflow looks like this:


After such configuration, we get the following workflow:
Flexible Workflow in SAP S/4HANA allows you to configure document approval processes in a convenient and transparent way. Using the Purchase Requisition as an example, we examined how to set workflow start conditions, define the approval sequence, and assign responsible parties.
As a result, the approval process becomes clear to the business and easier to configure and modify as needed.