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?
Thanks,
Mike