<br><font size=2 face="sans-serif">4.7</font>
<br>
<br><font size=2 face="sans-serif">From MIR7, upon selecting button Save
as Completed, obj type/event bus2081.completedtorelease is published.</font>
<br>
<br><font size=2 face="sans-serif">In my client, this event can start more
than one customized workflows: withholding tax approval and release for
posting workflow.</font>
<br>
<br><font size=2 face="sans-serif">I have a receiver FM that is testing
if the withholding tax approval workflow should start (based on Vendor
master data); if it doesnt then the release for posting workflow starts.</font>
<br>
<br><font size=2 face="sans-serif">Withholding tax approval wf : goes to
the agent to enter details on regards to withholding tax and then goes
to AP. The AP guys then enter whatever they have to in the invoice and
click Save as Completed - bus2081.completedtorelease is published and bus2081.completedtoreleased
is published.</font>
<br>
<br><font size=2 face="sans-serif">I need to control that workflow for
withholding tax approval does not start again.</font>
<br>
<br><font size=2 face="sans-serif">How in my receiver FM can I check if
the withholding tax approval workflow has been completed or it is being
processed ? The withholding tax approval should only start once (if applicable,
depends on vendor master data).</font>
<br>
<br><font size=2 face="sans-serif">If the vendor in the invoice is subject
to withholding tax, I am using FM SWI_WORKITEMS_OF_OBJECT_GET to retrieve
all the workflows that have started for my objkey and then checking if
there is any instance of the withholding tax approval that is set to either
'completed' or 'started' - but I think the events happen too fast and table
swwwihead doesn't get update on time.</font>
<br>
<br><font size=2 face="sans-serif">The client would like to have the users
always using button Save as Completed.</font>
<br>
<br><font size=2 face="sans-serif">1 - bus2081.completedtorelease </font>
<br><font size=2 face="sans-serif">2 - Receiver FM is called</font>
<br><font size=2 face="sans-serif">3 - Within FM: </font>
<br><font size=2 face="sans-serif">if withholding tax is applicable then</font>
<br><font size=2 face="sans-serif">------ if withholding tax approval workflow
has not been executed for this invoice or it is not set to completed nor
to started then</font>
<br><font size=2 face="sans-serif">-------------- start release for posting
approval worlflow</font>
<br><font size=2 face="sans-serif">-------else</font>
<br><font size=2 face="sans-serif">-------------- start withholding tax
approval workflow</font>
<br><font size=2 face="sans-serif">------ end if</font>
<br><font size=2 face="sans-serif">else</font>
<br><font size=2 face="sans-serif">-------- start release for posting approval
workflow</font>
<br><font size=2 face="sans-serif">end if</font>
<br>
<br><font size=2 face="sans-serif">Any ideas on how to achieve what I need?
</font>
<br>
<br><font size=2 face="sans-serif">Much thanks for any help!<br>
</font>
<br><font size=2 face="sans-serif">Regards,</font>
<br><font size=2 face="sans-serif"><br>
Cristiana<br>
_________________________________<br>
Cristiana d'Agosto<br>
IBM Business Consulting Services<br>
Mobile: &nbsp;+61 417 927 224<br>
cristiana.dagosto@au1.ibm.com</font>