SAP_WAPI_WORKITEM_COMPLETE - you can use this BAPI to complete workitem if you have the Workitem ID with you <br>or else you can check the status by referring to table 
<style type="text/css">
SPAN {
font-family: "Courier New";
font-size: 10pt;
color: #000000;
background: #FFFFFF;
}
</style>
<span>swwwihead</span>
to check the status of Workitem.<br><br><br><br clear="all">Regards<br>Tushar Shinde.<br><a href="mailto:tushar.shinde20@gmail.com">tushar.shinde20@gmail.com</a><br><a href="mailto:ts_tushar@yahoo.co.in">ts_tushar@yahoo.co.in</a><br>

<br>
<br><br><div class="gmail_quote">On Mon, Aug 1, 2011 at 10:57 PM, Tim Price <span dir="ltr">&lt;<a href="mailto:tim_price@totalise.co.uk">tim_price@totalise.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hello,<br>
<br>
System ECC6 and Portal<br>
<br>
I have developed a bespoke workflow that has workflow tasks calling a web dynpro.<br>
These workflow task call method DISPLAY on business object WEBSERVICE, this all works well. The tasks do not have Confirm end of processing checked.<br>
<br>
I was wondering, if it is possible to distinguish if the task has been process/completed directly in R/3 without using the Portal to execute the task, as the business only want the tasks to be processed from the Portal.<br>


<br>
Regards<br>
Tim<br>
<br>
<br>
<br>
_______________________________________________<br>
SAP-WUG mailing list<br>
<a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
<a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
</blockquote></div><br>