Quantcast
Channel: SCN : Unanswered Discussions - SAP Business Process Management
Viewing all articles
Browse latest Browse all 3160

WF Builder --> Process Control step --> "cancel workitem" does nothing

$
0
0

Hello Workflow-Folks,

 

System Info:

 

NW AS 7.03 ABAP Stack 731 Level 13, ECC 606 (EHP 6) with SAP_HR 604 Level 81 and EA_HR 607 (HR-Renewal 1) Level 32

 

Background:

 

We are using FI-TV (SAP Travel Management). I have copied and adjusted the standard WF-Template 20000050. Recently I got the requirement to implement a second level or rather a pre-level of approval for certain use cases. This sub part of the workflow for this level of approval has three exits: approved, rejected, expired(deadline).

 

Problem:

 

At the "normal" level of approval, if the work item is rejected, the workflow simply continues to the default completion event at the end of the workflow and all is good. However, when the workitem is rejected in the pre-level of approval, the workflow is supposed to be over in midst of the template. To accomplish this, I inserted a step of type "process control" below the rejection-branch with function "1" (cancel work item). I kind of stole this approach from the way the workflow assistant implements a process control step when you create a deadline (which I also did). The difference between the deadline branch and the rejected branch, however, is, that I can't manage to get an event-step-thingy (screenshot follows -_-) below the process control. Apparently it cannot be inserted as a step separately and it cannot be copied / pasted either. I assumed this is just a graphical thing and doesn't meddle with the functionality. Unfortunately, though, it does. The process control does nothing, the flow of the workflow continues instead of being cancelled and uncool things happen.

 

workflow_end.JPG

 

Flow after rejection in SWIA:

 

workflow_actual_flow.JPG

 

 

 

What I tried so far / Analysis:

 

I searched for "SAP Workflow process control" on SAPxSearch and on Google:

 

From the SAP-help, I don't see any blatant mistakes on my side:

 

Modeled Deadline Monitoring or Standard Escalation - SAP Business Workflow - SAP Library

Process Control - SAP Business Workflow - SAP Library

 

The following thread and the wiki cover some similar issues but not exactly the one I have:

 

Good way to exit workflow without raising Error

Knowledge Base Articles for Workflow - Supplier Relationship Management - SCN Wiki

 

 

There must be some major thing I'm misunderstanding. If you know what it is, please tell me.

 

Cheers, Lukas


Viewing all articles
Browse latest Browse all 3160

Trending Articles