cancel
Showing results for 
Search instead for 
Did you mean: 

How to Keep the Activity Step Work Item in User Inbox Based on User Action

former_member502553
Participant
0 Kudos

Hi,

I have a Activity Step Executed and the Work Item is in User Inbox, upon executing the Work Item it will call a screen for user input and has option to cancel or submit for further processing.

Here if the user cancels the action, the work item should remain in user inbox to re-visit again.

I enabled Confirm End of Processing option in the task, but it gives a pop up and we don't want that option. I tried to set the WI Status to 'In Process' with FM SAP_WAPI_SET_WORKITEM_STATUS, but it is not working as the Function Module must not be used within the execution of a workflow or work item. so it is failing to set the status.

Is there any other way to set the Work item status, during execution of the WI(Activity Step), based on user action in the calling screen.

Appreciate you valuable inputs.

Regards,

Arun.

Accepted Solutions (1)

Accepted Solutions (1)

pokrakam
Active Contributor

Just raise an exception based on CX_BO_ACTION_CANCELLED, or macro EXIT_CANCELLED if using BOR.

former_member182546
Contributor
0 Kudos

Hi Mike ,

Where should I raise this exception exit_cancelled in BOR. Please advise.

pokrakam
Active Contributor
0 Kudos

It's not an exception, it's a macro. You can call it wherever it's appropriate in your code, e.g. after an unsuccessful return from dialog.

Answers (1)

Answers (1)

former_member502553
Participant
0 Kudos

Thank you Mike, macro EXIT_CANCELLED worked for me, I thought it will have a error message in WF Log, it says Action canceled by used as warning message only, Perfect.