
Flexible Workflow: Flexible workflows enable businesses to establish approval processes that align with their specific needs, allowing customization for various departments, document types, and approval hierarchies.
Concept of Flexible workflow in SAP S/4HANA:
Key aspects of Flexible Workflow in S/4HANA include:
Overview of Flexible Workflow in SAP S/4HANA:
Comparison between the Classic Release Strategy and Flexible workflow:
Strategy | Operation | Starting Condition | Validity Period | Step Sequence | Class/ Characteristics | HCM Required | Deadline |
Classic Release | SAP GUI | Net Value, | NO | NO | Yes | NO | NO |
Flexible Workflow | Fiori APP | Cost center, | Yes | Yes | NO | Yes | Yes |
Mandatory Pre-Requisite settings need to be configured:
1. Check automatic workflow customizing: In this configuration step, we just Ensure that the automatic customizing is active for the workflow functionality. Normally this configuration is done by the Basis Team. Transaction code: SWU3 Functionality: SWU3 is used to maintain Automatic Workflow Customizing, covering areas like runtime environment, definition environment, additional settings, and task classification. Configuration: SPRO –> ABAP Platform –> Application Server –> Business Management –> SAP Business Workflow –> Maintain Standard Settings
If you have previously used a workflow functionality (either SAP Business Workflow or flexible workflow), check whether all customizing steps listed have a green checkmark.
If not, click Redo Automatic Customizing or select one of the activities and click Execute Activity to make the required settings.
2. Activate flexible workflow scenarios: Activate the workflow scenarios for a type of business document for example Purchase order. Configuration: SPRO –> IMG –> ABAP Platform –> Application Server –> Business Management –> SAP Business Workflow –> Flexible Workflow –> Scenario Activation
It is already activated in the system; if not, you can add it by selecting "New Entries," enter the Workflow Scenario ID, select the "Activate" tab, and then click on "Save.
3. Define step names and decision options in My Inbox: Check step names and decision options to be used in the app My Inbox. This step allows you to assign meaningful names to workflow steps and specify the decision options (e.g., Approve, Reject) available to users in the My Inbox app, improving workflow clarity and user interaction.
Key | Decision Text | Nature |
1 | Approve | POSITIVE |
2 | Reject | NEGATIVE |
Configuration: SPRO –> IMG –> ABAP Platform –> SAP Gateway Service Enablement –> Content –> Workflow Settings –> Maintain Task Names and Decision Options
Select the workflow scenario ID and click on Decision keys as shown. Please make sure that the columns Icon MIME Repository Path must be empty.
Decision keys are not maintained for the workflow scenario ID: WS00800238. We can add by click on New Entries.
Maintain the data as shown and click on save
4. Define visualization metadata for My Inbox: When you use the flexible workflow for the approval of procurement documents, you have to ensure that the app My Inbox is available and set up for your approvers. To do this, you have to enter the data listed below.
Parameter Name | Visualization Parameter Value |
SCHEME | Sapui5 |
COMPONENT_NAME | cross.fnd.fiori.inbox.annotationBasedTaskUI |
QUERY_PARAM00 | service=/sap/opu/odata/sap/C_PURCHASEORDER_FS_SRV |
QUERY_PARAM01 | entity=/C_PurchaseOrderFs('{&_WI_Object_ID.MS_PURCHASE_ORDER. PURCHASEORDER&}') |
QUERY_PARAM02 | annotations=/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Annotations (TechnicalName='C_PURCHASEORDER_FS_ANNO_MDL',Version='0001')/$value/ |
Configuration: SPRO – IMG – Material Management – Purchasing – Purchase Order – Flexible workflow for Purchase orders – Client-Dependent Configuration
For the workflow for the release of purchase order (workflow scenario ID WS00800238 and task ID TS00800531) If Task ID does not appear we will add by clicking on create button and the parameters as shown.
5. Deactivate Event Type linkages for SAP Business Workflows: In this step we can Deactivate the workflows based on the old workflow Scenarios. Transaction code: SWETYPV/SWE2 Standard Workflow for PO Release Strategy – WS20000075 If it is activated, Double-click on the line to deactivate it.
The main reason for deactivating Event Type linkages for SAP Business Workflows in Flexible Workflow is to prevent conflicts and redundancy between the old event-driven workflows and the new condition-based Flexible Workflows. We can deactivate the classic release strategy for PO by unselect the checkbox Linkage activated and click on save.
For the Work scenario ID: SW00800238 if the linkage is not activated, activate the linkage and click on save.
6. Generalize tasks and activate event type linkages for flexible workflow: In this step you have to ensure that the system events are linked to your workflow scenarios, and you have to define the potential agents of workflow tasks to clearly define the organizational responsibility for processing work items. Configuration: SPRO –> IMG –> ABAP Platform –> Application Server –> Business Management –> SAP Business Workflow –> Perform task-specific Customizing
To generalize your workflow tasks, navigate to the required SAP application component, for example MM-PUR-PO - Purchase Order, and proceed as follows:
To activate the event linkages, proceed as follows:
7. Register gateway service for value helps: The main purpose of activating the configuration "Register gateway service for value helps" in Flexible Workflow for Purchase Order is to enable the integration of value help functionality in the workflow process. This allows users to easily select and retrieve valid values (e.g., vendor names, material codes, or other relevant data) during the approval or processing steps in the workflow, improving user experience and data accuracy.
Transaction code: IWFND/MAINT_SERVICE Configuration: SPRO –> IMG –> ABAP Platform –> SAP Gateway –> Odata Channel –> Administration –> General Settings –> Activate and Maintain Services
Standard Technical service is S_MMPURWORKFLOWVH_CDS
If it is not maintained follow the mentioned steps:
8. Activate Flexible Workflow for Purchase Orders: Reason for Activating Flexible Workflow for Purchase Orders in SAP:
Configuration: SPRO –> IMG –> Material Management –> Purchasing –> Purchase Order –> Flexible Workflow for Purchase Orders –> Activate Flexible Workflow for Purchase Orders.
Activate the Workflow scenario based check box for the PO Document Type and click on save.
Next Mandatory setting is HR-BP Data Synchronization: This configuration will be done by SAP HR Team.
Starting from version 1511, Business Partner (BP) is mandatory, and for certain Fiori apps like Workflow and Supplier Evaluation, assigning an Employee with a User ID is also required. Therefore, the Employee must be created as a BP and synchronized with HR data. Transaction Code: PA30
Select the Infotype Text Action and click on the create tab as shown.
Set the parameters as shown and click "Save"; this will take you to the next screen.
Enter the Sub-Area and click on save.
Maintain the Address and click on save.
Maintain the Bank details and click on save
For the communication maintain the Infotype as Communication and Subtype as 0001 as shown and click on create,
Assign the User ID and click on save.
For the communication maintain the Infotype as Communication and Subtype as 0001 as shown and click on create,
Assign the Email ID and click on save.
The Employee has now been created with the Personnel Number. Ensure that the configuration settings mentioned below are maintained before creating the Business Partner. Activate HR Integration –> Goto SM30 –> Maintain table V_T77S0 –> search for entry group: HRALX, sem. abbr.: HRAC and set the value abbreviation value to X. When you set the abbreviation value to "X" for the semantic abbreviation HRAC in the entry group HRALX, you are enabling the system to recognize and process HR master data (such as personnel or organizational data) properly.
Configuration: SPRO –> Cross-Application Components –> SAP Business Partner –> Business Partner –> Basic Settings –> Identification Numbers –> Define Identification Categories
The main purpose of maintaining the "Define Identification Categories" step for flexible workflow in SAP is to configure the identification categories that are used to define and categorize objects or data within the workflow process. This enables the system to differentiate between various objects (such as business partners, personnel, or organizational units) and apply appropriate workflow rules and actions based on their categorization. If activated, remove the Identification Categories for HCM0001 for display only and click on save.
Now create Business Partner in Transaction code BP.
Configuration: SAP Menu –> Logistics –> Logistics Execution –> Master Data –> Partner –> Supplier –> Create
Select BP category as a Person.
Maintain the parameters as shown and click on Identification tab as shown.
Maintain HCM001 as the ID Type, and enter the personnel number created in PA30 under the Identification Number tab. The main purpose of maintaining this step in Business Partner (BP) is to establish a link between the personnel number from PA30 and the corresponding identification type (HCM001) within the Business Partner master data.
This ensures that the employee's identification is correctly associated with the Business Partner record, allowing for accurate integration of HR data into other business processes like personnel management, workflows, and reporting.
Business partner 700052 created.
Now, select the BP role FLNV00 and click on the company code.
Enter the company code (CC) and reconciliation account, scroll down, then enter the personnel number and save.
Now, select the BP role FLNV01 and click on purchasing.
Enter the Purchasing Organization, Order currency and click on save.
Now, select the FS0000 role, open the company code, verify if it is extended or not and then click save. The main purpose of checking the FS0000 role in the Business Partner (BP) for flexible workflow is to ensure that the company code is properly assigned and extended for the relevant Business Partner.
This step is essential for integrating financial and organizational data in the workflow, allowing the system to recognize the Business Partner in financial transactions and processes.
Select the BUP001 role, verify if all address details are populated or not and then save.
Now go to the Transaction code SA38 Enter Program Name /SHCM/RH_SYNC_BUPA_EMPL_SINGLE and click on execute. The purpose of executing the program /SHCM/RH_SYNC_BUPA_EMPL_SINGLE in the SA38 transaction for flexible workflow is to synchronize the employee data from SAP Human Capital Management (HCM) with the Business Partner (BP) master data in the system.
This program ensures that the employee information, such as personnel number and associated data, is correctly reflected in the Business Partner master data for use in various HR and financial processes.
Maintain the Personnel Number and click on Execute.
Now, we can check the logs in the SLG1 transaction. Maintain the object and Subobject as shown.
Now the Personnel Number is successfully synced with Business Partner.
Check in SU01 Transaction, It’s synced with Business Partner as shown.
From here, the process is handled in FIORI.
In the search bar, enter the Fiori tile "Manage Flexible Workflow." This will display a list from which we can select the relevant workflow to process. In this case, I am select managing the workflow for Purchase Orders.
It will display the existing workflows in the system. To create a new one, click on the "Create" tab.
In the Header tab, the Workflow Name tab is mandatory.
In Properties tab the fields are optional. The main reason for maintaining "Valid From" and "Valid To" dates in managing flexible workflows is to define the period during which a specific workflow is active and applicable.
These dates ensure that the workflow is executed only within the specified timeframe, providing control over the workflow's validity. This helps prevent outdated workflows from being triggered and ensures that only the relevant workflows are active for processing during the designated periods.
In this step, we can define the conditions under which the flexible workflow will be triggered in the purchase order.
We can add additional conditions by clicking the plus (+) button as shown.
In this step, we can assign the User ID and define how the Purchase Order (i.e., Automatic or Manual Release) will be released by clicking the create button.
In the Header, we have two options like
Based on requirement, we can select any one option.
The main reason for maintaining the steps for Automatic Release of Purchase Order and Release of Purchase Order in Manage Flexible Workflow for Purchase Order is to streamline and automate the approval process.
In the Recipients we have two tabs like User and Role
The purpose of maintaining the "Recipients" step in the Manage Flexible Workflow for Purchase Orders, with the two tabs User and Role, is to define and manage who will be involved in the workflow process.
To know the User list, click on F4 Help and click on “GO” system will display the list of users list. Select the appropriate user for the approval and click on “Ok” Tab.
In Manage Flexible Workflow for Purchase Order, the options like "One of the Recipients" and "All of the Recipients" are used to control how approval or action is handled by the recipients within the workflow.
It is an optional step because we are already maintained conditions.
If all the pre-requisites are maintained correctly, the deadline tab will trigger. By clicking on create we can add Number of days as a deadline for approval.
In this step, If the Approver Reject the workflow what is the action result is to be taken is maintained here.
After Maintaining all the data click on the “Create” button.
After clicking on the create button, the workflow steps are created and then click on save.
Next, we can click on the Active button.
The system defines the sequence order. Therefore, we need to maintain the flexible workflow at the top, or alternatively, we can deactivate the other person's flexible workflow.
Click on Define order tab. Drag our workflow Name to the top and click on save.
Now Create the purchase Order in ME21N Transaction. Based on the activation of Flexible workflow for the Document type Flexible Workflow tab is triggered in the Purchase Order. After Maintaining all the data click on save.
ZN_Standard PO created under the number 6000001. Based on the conditions maintained in the Manage workflow for Purchase order the User will trigger in the PO.
Based on the 31-day deadline set in the Manage Flexible Workflow for Purchase Order, the system calculates the deadline by adding 31 days to the creation date and time of the Purchase Order.
In the FIORI Launchpad, search for the Fiori tile "My Inbox" in the search bar.
Select the Task and click on Approve, the system displays a pop up tab to enter the Decision Note.
Enter the Decision Note and click on submit.
Now check the status in the Flexible workflow of the Purchase order. The Status has been changed from Ready to Purchase Order Released
Note: If the Email was not received by the recipient in My Inbox App, let's proceed with setting up the email transmission. The prerequisites for setting up the email are as follows: In transaction code S_ATO_SETUP, configure the Adaptation Transport Organizer with specific data, using ZZ1_ as the prefix and ZZ9_ as the sandbox prefix.
The configurations for SOST and SCOT should be properly set up. The following are the initial screens for SOST and SCOT, which are typically managed by the Basis team. Transaction code SOST is used to view and manage all messages sent through SAP connect. It displays requests that are either in progress or have already been sent. Each send request in this transaction is linked to a single recipient.
The SCOT transaction code is primarily used to receive notifications via email, fax, and other communication channels. Add the mail Id and click on tick mark as shown.
I hope this blog will useful for the consultants who is new for the concept of Flexible workflow. In conclusion, Flexible Workflow in SAP MM simplifies and automates procurement processes by allowing businesses to customize approval steps based on their needs, improving efficiency and ensuring better control over purchase orders and approvals. This flexibility helps organizations streamline operations, reduce manual work, and enhance overall productivity.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
3 | |
3 | |
3 | |
2 | |
2 | |
2 | |
2 | |
1 |