Skip to Content
avatar image
Former Member

Can we create a custom terminating event for any business object?

Can we create a terminating event for BUS2032, whenever the approve button is clicked in UI5 frontend the custom Sales Order workflow should complete. there is no standard event to terminate the workflow if released, this is there for PO.

I have create a custom task where I have written the method to release the blocked Sales Order in VKM3. this task is getting completed is R/3 when executed through sbwp. but when I click on approve button in fiori app, the task will complete but the blocked order will not release.
I have tried with all the option with synchonised, dialog, confirm end processing..
please let me know how can I complete the task when clicked throught fiori app.

task1.PNG (30.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 30, 2015 at 02:23 PM


    First, the terminating event is not on the business object, it can be within your workflow or within your task.

    Fiori is using approve all, which you can customise,

    If you are using a decision step, with button approve and reject

    Just after the approve branch within your workflow insert a step that will trigger the "unblocking" task

    Decision step are easy to handle in Fiori and the rest you just do in workflow.



    Add comment
    10|10000 characters needed characters exceeded

    • Ok thanks Stephane.  Ah ... yes clearer.

      BUS2032 event use as a terminating event

      And of course ABAP Class events can be used as terminating events

      As well as some special local events in the workflow


      .... but problem still remains ...

      the event is raised when the Sales Order is released.... so you have to check the Released event is actually raised when that release task is executed.

      And the event has to be correctly included as a terminating event of an asynchronous task.

      Also my other comment still stands... re making sure  you are working with the Fiori app in the most effective manner

  • Oct 28, 2015 at 10:54 PM

    Yes you can create a custom terminating event for any object see: Enhancing Object Types: Inheritance and Delegation - SAP Business Workflow: Reference Documentation - SAP Library

    As for the integration with Fiori, I usually create a decision task followed by a  background step which automatically will remove the block (create a background method etc.), this should work if you are using SBWP/UWL/FIORI or any other UI.    

    Add comment
    10|10000 characters needed characters exceeded