Skip to Content
Technical Articles

YES!! Customer CAN create CUSTOM Flexible Workflow for specific requirement.


As we already know SAP came up with new predefined  Flexible workflow template in  S4Hana which is completely different from normal ECC workflow.  From Flexible Workflow customer  can directly assign  work dynamically based on  condition to different layer of persons or do different activity.  Customer will get  high benefit using Flexible Workflow in terms of  save Time for determination of approver  and also in terms of automation of their business  process or easily assign work overload to others  .



In this blog I am showing the simple  custom demonstration which will block Sales order after  change without any  printing.


There have a custom flexible  workflow developed .


But to developed a Flexible workflow lots of  custom objects need to developed including cross client objects. Snapshots of some objects summary showing below.





Now Configure the flexible workflow like below.  Agent will  be determine based on Badi.



In the Badi,  users  are populated   for approval.




Business Process:

NOW start the Sales order change or create process.



Now Approver will get their  workitem in their  Fiori inbox for approval or rejection.



After approval it is visible that,  Delivery Block set for No Printing.  You have done .




Though in this document simple process shown, but the developments need lots of efforts including cross system development. Though SAP might come up with new Flexible workflow scenario every  new  release.    Customer can easily configure it as per their requirement to feel the power of dynamic automation .  So it is always  desirable to use standard scenario  .

You must be Logged on to comment or reply to a post.
  • Thanks Anjan for the article – we recently implemented several flexible workflows in the Purchasing area but had a few concerns. If you have solved for these please share:

    • We have variable step approval process. Depending on the value of a PO for example, we may have 3, 4, or up to 10 approvals. We have configured 10 steps in this process. If the PO is a lesser value we may only need 1 approval. Our issue is that the workflow will continue to generate the next step even after our last logical approval. We need a way to end this workflow, and release the PO at any point in the 10 step process.
    • Background steps are very handy in classical workflows. They can be used in all manner of processing from setting status, calling additional applications, emails etc…In the flex workflow we are only supplied with one dialog step. Is there any process to add a background step (no agents) to allow for this type of background processing?
    • Flexible WF leverages the same task for every approval step. Can we add/change information on this task for a specific step in the process? This would allow us to customize the information sent to a given approval group.

    Thank you!


    • Hi Jim,

      Good Questions. I know you’re not alone with questions like this so here are some answers.

      1. Using the Manage Workflow app you can configure 10 small simple workflows, or one workflow with conditional steps, or a combination (e.g. if approvals 5-8 are identical other than the the approver aka agent-determination). The seismic change between flexible workflow and classic Business workflow is that the workflow handles the approval, and the application handles the consequent action (e.g. document release). So the problem you’re describing doesn’t occur.
      2. These are handled by coded exits in the flexible workflow. Simpler to implement and more robust.
      3.  Flexible workflow doesn’t have to use the same task. You can have different Tasks and a different Ux experience for the different steps/approvals. I agree, that most S/4HANA apps deliver just one task per approval type, but this does not have to be the case. I guess you are asking for more flexibility here, which is something worthy of serious consideration.

      Best regards,


  • Thanks for the blog Anjan 🙂

    It’s great to hear the perspective from consultant’s point of view. Flexible workflow is progressing nicely in terms of adoption by the applications in S/4 and functionality ( so I really appreciate the effort you put into researching the bespoke usage.  It’s worth pointing out that in SAP S/4, sales orders are already enabled for flexible workflow so the customer can configure their own workflows without the need for any development.

    • Thanks Alan for your  appreciation :).  At the time of writing this blog  this scenario not presents in 1809 on premise edition in my system. Thanks SAP for bringing this scenario for customers.  This  blog is for showing we can create custom flexible workflow  if  any scenario not available in standard.


      Thanks again.