Skip to Content

Alternative to Terminating events. How to keep a custom workitem in the inbox after execusion.

Hello Gurus,

I've implemented a custom workitem with a dynpro in my workflow. The workitem is a decision but the user also has the possibility to resume work later so the button BACK on the dynpro is active. Now, the framework sets my workitem to completed after the screen has been left. I'm working with abap oo.

I have been searching for some hours how to let the workflow know that the workitem must remain in the inbox but I couldn't find any concrete answer. Please help.

Regards,

Ioan

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Aug 02, 2017 at 03:25 PM

    You need to catch the back event and raise exception CX_BO_CANCELLED. This will leave the WI in STARTED status in the inbox.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 02, 2017 at 12:01 PM

    Hi

    Why not using the confim the end of process flag ?

    On the other end it means that the user always have to go back to the inbox to confirm the end of the workitem.

    Cheers

    Stephane

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 02, 2017 at 02:48 PM

    Ioan,

    Can you explain how your dynpro is integrated within a decision workitem ?

    Are you using the method to open a new SAP Mode or using the workitem display ?

    When does your work item complete ? When you open the application or when you press the back button ?

    An alternative could be to have your decision step within a loop and until you do have a value in your container you create another work item.

    That could work, of course it is not the same work item.

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Stéphane,

      I am using a class method. The method calls a function module that calls a dynpro.

      I've managed to solve my problem as Mike suggested. Thank you.

      Regards,

      Ioan.