Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8800

How to terminate workflow via ABAP?

$
0
0

We have an existing workflow (WF-A) in place that sometimes is not completed due to another workflow starting (WF-B).  The business would like WF-A terminated/completed when WF-B is started.

 

I tried using SAP_WAPI_WORKITEM_COMPLETE to mark the work item that WF-A usually ends processing at to complete the WF, but that simply caused it to end in Error status, which is of course undesirable.

 

Is it possible to end a workflow via ABAP and if so, how?  Or better yet, is it possible to trigger a particular outcome (i.e. the NoFurther outcome shown below) via some function module?

 

10-10-2014 10-52-11 AM.png

 

Thanks,

Mike


Viewing all articles
Browse latest Browse all 8800

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>