<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML dir=ltr><HEAD><TITLE>RE: WAPI SAP_WAPI_WORKITEM_COMPLETE</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3157" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=593294514-11102007><FONT face=Arial 
color=#0000ff size=2>Hello Alon,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=593294514-11102007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=593294514-11102007><FONT face=Arial 
color=#0000ff size=2>to complete a decision step, please use FM 
"SAP_WAPI_DECISION_COMPLETE".</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=593294514-11102007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=593294514-11102007><FONT face=Arial 
color=#0000ff size=2>regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=593294514-11102007><FONT face=Arial 
color=#0000ff size=2>Markus</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV align=left>
<DIV class=Section1>
<P style="tab-stops: 36.0pt" align=left><STRONG><SPAN 
style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: Arial">____________________________________</SPAN></STRONG><SPAN 
style="FONT-SIZE: 8pt; FONT-FAMILY: Arial"><?xml:namespace prefix = o ns = 
"urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P style="tab-stops: 36.0pt"><STRONG><SPAN 
style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: Arial">Markus 
Klein</SPAN></STRONG><SPAN 
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: Arial"><BR></SPAN><EM><SPAN 
style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: Arial">SAP Senior 
Consultant</SPAN></EM><SPAN 
style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: Arial"><BR><BR><STRONG><SPAN 
style="FONT-FAMILY: Arial">ABS Team GmbH</SPAN></STRONG></SPAN><B><SPAN 
style="FONT-SIZE: 8pt; FONT-FAMILY: Arial"><BR></SPAN></B><SPAN 
style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: Arial">Muehlenweg 65<BR>37120 
Bovenden</SPAN><SPAN 
style="FONT-SIZE: 8pt; FONT-FAMILY: Arial"><o:p></o:p></SPAN></P>
<P><SPAN lang=EN-GB 
style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: Arial; mso-ansi-language: EN-GB">Tel 
+49 551 820 33 0<BR>Mobil +49 151 126 23 047<BR>Email 
klein@abs-team.de<o:p></o:p></SPAN></P>
<P><SPAN class=SpellE><B style="mso-bidi-font-weight: normal"><SPAN 
style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: Arial">www.abs-team.de</SPAN></B></SPAN></P>
<P style="tab-stops: 36.0pt"><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: gray; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'">Geschäftsführer: 
Dr. Andreas Rupprecht - HRB Göttingen 1535</SPAN><SPAN 
style="FONT-SIZE: 8pt; FONT-FAMILY: Arial"><o:p></o:p></SPAN></P>
<P><SPAN 
style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: Arial; mso-bidi-font-family: 'Times New Roman'; mso-bidi-font-size: 12.0pt">Diese 
e-mail kann Betriebs- oder Geschäftsgeheimnisse oder sonstige vertrauliche 
Informationen enthalten. Sollten Sie diese <SPAN class=SpellE>e-mail</SPAN> 
irrtümlich erhalten haben, ist Ihnen eine Kenntnisnahme des Inhalts, eine 
Vervielfältigung oder Weitergabe der <SPAN class=SpellE>e-mail</SPAN> 
ausdrücklich untersagt. Bitte benachrichtigen Sie uns und vernichten Sie die 
empfangene <SPAN class=SpellE>e-mail</SPAN> Vielen Dank.<o:p></o:p></SPAN></P>
<P><SPAN lang=EN-GB 
style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: Arial; mso-ansi-language: EN-GB; mso-bidi-font-family: 'Times New Roman'; mso-bidi-font-size: 12.0pt">This 
e-mail may contain trade secrets or privileged, undisclosed or otherwise 
confidential information. If you have received this e-mail in error, you are 
hereby notified that any review, copying or distribution of it is strictly 
prohibited. Please inform us immediately and destroy the original transmittal. 
Thank you for your cooperation.<o:p></o:p></SPAN></P></DIV></DIV>
<DIV>&nbsp;</DIV><BR>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> sap-wug-bounces@mit.edu 
[mailto:sap-wug-bounces@mit.edu] <B>Im Auftrag von </B>Alon 
Raskin<BR><B>Gesendet:</B> Mittwoch, 10. Oktober 2007 20:31<BR><B>An:</B> SAP 
Workflow Users' Group<BR><B>Betreff:</B> RE: WAPI 
SAP_WAPI_WORKITEM_COMPLETE<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV id=idOWAReplyText56022 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Hi Kirshnan,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>Thanks but this is precisely what I am 
doing but this is not the problem.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>The problem is the synchronous processing 
chain that needs to occur AFTER the completion of the decision 
task.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2><BR>Regards,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV></DIV>
<DIV id=idSignature99927 dir=ltr>
<DIV><FONT face=Arial color=#000000>
<DIV dir=ltr align=left><STRONG>
<DIV dir=ltr align=left><STRONG>
<DIV dir=ltr align=left><STRONG><FONT size=2>Alon Raskin</FONT></STRONG></DIV>
<DIV dir=ltr align=left><STRONG><FONT size=2>e: </FONT></STRONG><A 
href="mailto:araskin@3i-consulting.com" target=_blank><STRONG><FONT 
size=2>araskin@3i-consulting.com</FONT></STRONG></A></DIV>
<DIV dir=ltr align=left><STRONG><FONT size=2>p: +1 207 523 3489 
</FONT></STRONG></DIV>
<DIV dir=ltr align=left><STRONG><FONT size=2><SPAN style="FONT-SIZE: 12pt"><FONT 
size=2>c</FONT>: </SPAN>+1 207 409 4983</FONT></STRONG></DIV>
<DIV dir=ltr align=left><STRONG><FONT size=2>f:&nbsp; +1 806 403 
4983</FONT></STRONG></DIV></STRONG></DIV></STRONG></DIV></FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu on behalf of 
krishna mohan<BR><B>Sent:</B> Wed 10/10/2007 09:10<BR><B>To:</B> SAP Workflow 
Users' Group<BR><B>Subject:</B> RE: WAPI 
SAP_WAPI_WORKITEM_COMPLETE<BR></FONT><BR></DIV>
<DIV><BR>
<P><FONT size=2>Hi Alon,<BR><BR>If i understood you requirement correctly, you 
are<BR>trying to complete the decision task programmatically.<BR><BR>Though you 
are using SAP_WAPI_WORKITEM_COMPLETE,<BR>before completing the workitem you 
should update the<BR>container elemets _RESULT , _WI_RESULT with 
correct<BR>values ( either 0001, 0002&nbsp; etc based on the decsion)<BR>using 
SAP_WAPI_WRITE_CONTAINER. Are you doing this?<BR><BR>Recently i did the same , 
meaning as a requirement one<BR>of my report program supposed to behave as if 
user has<BR>taken the decision , i could it do it with out 
any<BR>problem.<BR><BR>This is how to be done:<BR>1. Update the container 
_RESULT , _WI_RESULT with<BR>correct values<BR>2. Find the current agents of the 
workitem, and<BR>reserve it with any one of them, 
use<BR>SAP_WAPI_RESERVE_WORKITEM<BR>3. Now, complete the workitem with the agent 
as one<BR>who reserved the workitem.SAP_WAPI_WORKITEM_COMPLETE<BR><BR><BR>Thanks 
and Regards<BR>Krishna Mohan<BR>SAP Workflow Consultant<BR><BR><BR>--- Alon 
Raskin &lt;araskin@3i-consulting.com&gt; wrote:<BR><BR>&gt; It's a custom 
workflow which I put together for this<BR>&gt; test. It's a simple<BR>&gt; 
decision task followed up by a simple dialog step<BR>&gt; (which does not 
popup<BR>&gt; any screens). What I want to achieve is to complete<BR>&gt; the 
task<BR>&gt; programmatically and then have the subsequent step<BR>&gt; executed 
under the<BR>&gt; agent's user ID. This is what happens when I execute<BR>&gt; 
the decision task<BR>&gt; from the Inbox and I am trying to get the WAPI's 
to<BR>&gt; play nice too. I<BR>&gt; have logged an 
OSS.<BR>&gt;<BR>&gt;&nbsp;<BR>&gt;<BR>&gt; Alon Raskin<BR>&gt;<BR>&gt; e: 
araskin@3i-consulting.com<BR>&gt; &lt;<A 
href="mailto:araskin@3i-consulting.com">mailto:araskin@3i-consulting.com</A>&gt;<BR>&gt;<BR>&gt; 
p: +1 207 523 3489<BR>&gt;<BR>&gt; c: +1 207 409 4983<BR>&gt;<BR>&gt; f:&nbsp; 
+1 806 403-4983<BR>&gt;<BR>&gt;&nbsp;<BR>&gt;<BR>&gt; The easiest way to 
integrate SAP with any mobile<BR>&gt; device<BR>&gt;<BR>&gt; <A 
href="http://www.themobileworkplace.com/">http://www.themobileworkplace.com</A><BR>&gt; 
&lt;<A 
href="http://www.themobileworkplace.com/">http://www.themobileworkplace.com/</A>&gt;<BR>&gt;<BR>&gt; 
________________________________<BR>&gt;<BR>&gt; From: 
sap-wug-bounces@mit.edu<BR>&gt; [<A 
href="mailto:sap-wug-bounces@mit.edu">mailto:sap-wug-bounces@mit.edu</A>] On 
Behalf<BR>&gt; Of Richard V Marut<BR>&gt; Sent: Tuesday, October 09, 2007 10:36 
PM<BR>&gt; To: 'SAP Workflow Users' Group'<BR>&gt; Subject: RE: WAPI 
SAP_WAPI_WORKITEM_COMPLETE<BR>&gt;<BR>&gt;&nbsp;<BR>&gt;<BR>&gt; 
Alon,<BR>&gt;<BR>&gt;&nbsp;<BR>&gt;<BR>&gt; What exactly is the step that you 
are using to<BR>&gt; complete work item doing?<BR>&gt; I recall having the same 
problem when the step had<BR>&gt; some functionality<BR>&gt; involved with it. 
My process used a web front-end by<BR>&gt; user to process the<BR>&gt; work 
items. I ended up making&nbsp; the work item a dummy<BR>&gt; step just to 
be<BR>&gt; able to assign the item to a user and to provide the<BR>&gt; ability 
to reserve,<BR>&gt; replace, cancel and complete the work item under<BR>&gt; 
that user id. I no<BR>&gt; longer received that error once I did 
that.<BR>&gt;<BR>&gt;&nbsp;<BR>&gt;<BR>&gt; 
Richard...<BR>&gt;<BR>&gt;&nbsp;<BR>&gt;<BR>&gt;&nbsp;<BR>&gt;<BR>&gt; From: 
sap-wug-bounces@mit.edu<BR>&gt; [<A 
href="mailto:sap-wug-bounces@mit.edu">mailto:sap-wug-bounces@mit.edu</A>] On 
Behalf<BR>&gt; Of Alon Raskin<BR>&gt; Sent: Tuesday, October 09, 2007 6:43 
PM<BR>&gt; To: SAP Workflow Users' Group<BR>&gt; Subject: RE: WAPI 
SAP_WAPI_WORKITEM_COMPLETE<BR>&gt;<BR>&gt;&nbsp;<BR>&gt;<BR>&gt; Thanks 
Ravi,<BR>&gt;<BR>&gt;&nbsp;<BR>&gt;<BR>&gt; I am not sure your analysis is 
right. The Workflow<BR>&gt; works fine if you<BR>&gt; execute the work item from 
the inbox. It only errors<BR>&gt; if you call the<BR>&gt; WAPI 
SAP_WAPI_WORKITEM_COMPLETE&nbsp;&nbsp; with the<BR>&gt; 
do_callback_in_background =<BR>&gt; space.<BR>&gt;<BR>&gt;&nbsp;<BR>&gt;<BR>&gt; 
Regards,<BR>&gt;<BR>&gt;&nbsp;<BR>&gt;<BR>&gt; Alon Raskin<BR>&gt;<BR>&gt; e: 
araskin@3i-consulting.com<BR>&gt; &lt;<A 
href="mailto:araskin@3i-consulting.com">mailto:araskin@3i-consulting.com</A>&gt;<BR>&gt;<BR>&gt; 
p: +1 207 523 3489<BR>&gt;<BR>&gt; c: +1 207 409 4983<BR>&gt;<BR>&gt; f:&nbsp; 
+1 806 403-4983<BR>&gt;<BR>&gt;&nbsp;<BR>&gt;<BR>&gt; The easiest way to 
integrate SAP with any mobile<BR>&gt; device<BR>&gt;<BR>&gt; <A 
href="http://www.themobileworkplace.com/">http://www.themobileworkplace.com</A><BR>&gt; 
&lt;<A 
href="http://www.themobileworkplace.com/">http://www.themobileworkplace.com/</A>&gt;<BR>&gt;<BR>&gt; 
________________________________<BR>&gt;<BR>&gt; From: 
sap-wug-bounces@mit.edu<BR>&gt; [<A 
href="mailto:sap-wug-bounces@mit.edu">mailto:sap-wug-bounces@mit.edu</A>] On 
Behalf<BR>&gt; Of Ravi Dixit<BR>&gt; Sent: Tuesday, October 09, 2007 7:36 
PM<BR>&gt; To: sap-wug@mit.edu<BR>&gt; Subject: Re: WAPI 
SAP_WAPI_WORKITEM_COMPLETE<BR>&gt;<BR>&gt;&nbsp;<BR>&gt;<BR>&gt; HI 
Alon<BR>&gt;<BR>&gt;<BR>&gt; Most likely it seems to be a problem with 
the<BR>&gt; definition of the next<BR>&gt; step. Check the outcome of the 
current step and<BR>&gt; mandatory parameters for<BR>&gt; the next. Also, you 
can user Error Analysis<BR>&gt; (Ctrl+F11) to dig further.<BR>&gt;<BR>&gt; 
Cheers<BR>&gt;<BR>&gt; Ravi<BR>&gt;<BR>&gt; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Message: 
4<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Date: Tue, 9 Oct 2007 09:54:14 
-0400<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; From: "Alon Raskin" &lt; 
araskin@3i-consulting.com<BR>&gt; &lt;<A 
href="mailto:araskin@3i-consulting.com">mailto:araskin@3i-consulting.com</A>&gt; 
&gt;<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Subject: WAPI 
SAP_WAPI_WORKITEM_COMPLETE<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; To: "SAP 
Workflow Users' Group" &lt;sap-wug@mit.edu&gt;<BR>&gt; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Message-ID:<BR>&gt; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;<BR>&gt;<BR>CEF21C1C5BF2FA42A42CEC87B91BBCDE02764316@ms07.mse2.exchange.ms<BR>&gt;<BR>&lt;<A 
href="mailto:CEF21C1C5BF2FA42A42CEC87B91BBCDE02764316@ms07.mse2.exchange.ms">mailto:CEF21C1C5BF2FA42A42CEC87B91BBCDE02764316@ms07.mse2.exchange.ms</A>&gt;<BR>&gt; 
&gt;<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Content-Type: text/plain; 
charset="iso-8859-1"<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&gt; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I am just wondering if anyone has seen this 
issue<BR>&gt; before:<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&gt; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I am calling Function Module&nbsp;&nbsp; to 
complete a work<BR>&gt; item. The FM<BR>&gt; has a parameter&nbsp; 
do_callback_in_background . I am<BR>&gt; setting this to SPACE<BR>&gt; because I 
want the subsequent work item to be<BR>&gt; executed under the same<BR>&gt; User 
ID. However when I do this the workflow errors<BR>&gt; with the 
following<BR>&gt; error Error when defining successor for node<BR>&gt; 
0000000004<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&gt; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Does do anyone know a way around this issue 
or<BR>&gt; whether this is a<BR>&gt; likely candidate for an OSS 
message?<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&gt; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Alon Raskin<BR>&gt; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e: araskin@3i-consulting.com &lt;mailto:<BR>&gt; 
araskin@3i-consulting.com<BR>&gt; &lt;<A 
href="mailto:araskin@3i-consulting.com">mailto:araskin@3i-consulting.com</A>&gt; 
&gt;<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&gt; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -------------- next part --------------<BR>&gt; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A non-text attachment was scrubbed...<BR>&gt; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Name: not available<BR>&gt; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Type: application/ms-tnef<BR>&gt; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Size: 4248 bytes<BR>&gt; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Desc: not available<BR>&gt; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Url :<BR>&gt;<BR><A 
href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20071009/ca5ae318/a">http://mailman.mit.edu/pipermail/sap-wug/attachments/20071009/ca5ae318/a</A><BR>&gt; 
ttachment.bin<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&gt; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ------------------------------<BR>&gt; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
_______________________________________________<BR>&gt; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SAP-WUG mailing list<BR>&gt; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SAP-WUG@mit.edu<BR>&gt; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A 
href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR>&gt; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&gt; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End of SAP-WUG Digest, Vol 35, Issue 16<BR>&gt; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
***************************************<BR>&gt;<BR>&gt;<BR>=== message truncated 
===&gt;<BR>_______________________________________________<BR>&gt; SAP-WUG 
mailing list<BR>&gt; SAP-WUG@mit.edu<BR>&gt; <A 
href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR>&gt;<BR><BR><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>____________________________________________________________________________________<BR>Pinpoint 
customers who are looking for what you sell.<BR><A 
href="http://searchmarketing.yahoo.com/">http://searchmarketing.yahoo.com/</A><BR>_______________________________________________<BR>SAP-WUG 
mailing list<BR>SAP-WUG@mit.edu<BR><A 
href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR></FONT></P></DIV></BODY></HTML>