cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member205645
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

pokrakam
Active Contributor
0 Kudos

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

former_member205645
Participant
0 Kudos

Thank you very much, Mike you saved me again 🙂 Now I have acquired your book 😉

Cheers,

Ioan.

pokrakam
Active Contributor

Good, another donation to Doctors without Borders 🙂

Answers (2)

Answers (2)

sbl
Active Contributor

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

former_member205645
Participant
0 Kudos

Hi Stéphane,

that is an additional pop-up that shouldn't pop 🙂 I only need my own screen, no standard stuff.

Thanks

Ioan.

sbl
Active Contributor
0 Kudos

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.

former_member205645
Participant
0 Kudos

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.