cancel
Showing results for 
Search instead for 
Did you mean: 

Solutions for Cancelled WF due to cancelled WI in Production

soumya_ranjan_patel
Participant
0 Kudos


Hi ,

This issue happened in Prodution.

There is workflow based on incident life cycle. In that at 2nd approval when user tried to complete the WI from Portal, some error poped-up on his screen and in the backend that particular WI went to Cancelled(Logically deleted status). Now I don't know what to do with this Cancelled status. Browsed few links where in most it was mentioned nothing can be done with this Cancelled WF. I need some solutions for this. Kindly help me .

Below some screen-shots the same issue.

ACTIVITY step is synchronous with a terminating event WORKITEM_COMPLETED.

Please reply APAP, as prod issue.

Regards,

Soumya

Accepted Solutions (0)

Answers (2)

Answers (2)

SandySingh
Active Contributor
0 Kudos

Hello

As per SAP Best Practices, when the object instance is not longer applicable - Deleted, cancelled, then linked workflow instances should also be cancelled or logically deleted.

In your case, the approval task (along with main WF instance ) got logically deleted (cancelled) . If you look at the workflow template design in SWDD, you will find a event (marked for cancelling workflow) in the go to Cap icon->Version independent Tab -> events . Now if you look at SWEL trace, you will see that this event was triggered at the same  time when  the workflow instance and approval task got logically deleted. This is working as designed and I dont think there is any issue. Share some screen shots of Version independent Tab -> events

You should ask the Approver to refresh the Inbox.

Regards

Sandy

soumya_ranjan_patel
Participant
0 Kudos

Hi,

This is only data maintained in version-depended tab.

Thanks.

Soumya

SandySingh
Active Contributor
0 Kudos

Hello

Refer to workflow log and check who has logically deleted the approval task. You can refer to Agents tab.

If it is just one workitem then check if manual action can be performed by Support team in Production. Check if the request can be raised again for approval.

Regards

Sandy

soumya_ranjan_patel
Participant
0 Kudos


Hi,

If we go for manual we further process users also to do manually. And this is not a good idea I guess. For time being asked users to recreate from begining.

But till now I didn't found real cause behinfd the issue.

Regards,

Soumya.

Former Member
0 Kudos

There is nothing you can do for cancelled work items.

Your options are either:

1) Restart the workflow from beginning (for example with transaction SWUS) or

2) Handle the rest of the business process without the workflow. For example try to instruct the user to open the relevant application to "review and complete" and do the job.

Since I don't know the specifics of the your scenario, I cannot say which one of the above alternatives is the correct approach to choose.

Regards,

Karri

soumya_ranjan_patel
Participant
0 Kudos

Hi Karri,

You mean to say we can provide the application link used in proceess to user to complete. So that by using that url can execute the workitem.

Regards,

Soumya.

Former Member
0 Kudos

Well, it is nearly what I meant. You should provide the user the link to the application to complete his job "complete review". There is nothing you can do for the work item. You cannot execute the work item. Its status is cancelled, and I can see from your screenshot that the whole workflow has been cancelled. You can do absolutely nothing for this workflow.

There is always a possibility that everything is working as it should. Maybe there is a valid reason why the workflow was cancelled. (Or perhaps a new workflow has started for this same object, and the old one cancelled. Or perhaps the whole object has been deleted (or it somehow obsolete). I am just guessing here, because I don't know the specifics of this process.)

Regards,

Karri

soumya_ranjan_patel
Participant
0 Kudos

Hi,

That might work. But if we go for this there are chances that user can ask for the same soln everytime this issue is raised. And asking top level users to this doesn't sound good.

So for now we have asked the user to regenerate the scenario again in Production as it has not been escalated to higher level.

You have any suggestions to go for the real cause of this issue, bcaz we dont want this to happen again. And this sceane is raised to SAP also but didn't get any helpful reply from them.

Regards,

Soumya.

Former Member
0 Kudos

1) Read the technical workflow carefully. Find out the reason (=messages), why the workflow was cancelled. Most likely the relevant message is either in the "current" work item, or the top-level (parent) work item. What do the messages say?

2) Next time it happens, ask the user to take a screenshot of the popup he is getting. Maybe it is some kind of self-explanatory message ( perhaps not for the user, but for an application/WF specialist it might be).

3) See also the incident object in the system. Is there something wrong with the object?

Regards,

Karri

Former Member
0 Kudos

Also, because the whole workflow is cancelled, I assume that there is defined a terminating/cancelling event for the workflow template. This can be seen in the basic data (the hat button) in the workflow template. What is the possible terminating or cancelling event? If you find this out, then could start looking why the event gets triggered.

Regards,

Karri

soumya_ranjan_patel
Participant
0 Kudos

Hi Karri,

There is no event mentioned for cancellation. Screen for the same is attached above.

Regards,

Soumya.

Former Member
0 Kudos

Go to the same log view as in your third screenshot above, but select the first work item "Incident lifecycle" and then take a screenshot of the step history. There you should be able to see why the whole workflow got cancelled.

Regards,

Karri