Skip to Content

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jul 20, 2018 at 05:59 AM

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

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 23, 2018 at 04:04 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded