<!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> </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> </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> </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> </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> </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> </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: +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 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 <araskin@3i-consulting.com> wrote:<BR><BR>> It's a custom
workflow which I put together for this<BR>> test. It's a simple<BR>>
decision task followed up by a simple dialog step<BR>> (which does not
popup<BR>> any screens). What I want to achieve is to complete<BR>> the
task<BR>> programmatically and then have the subsequent step<BR>> executed
under the<BR>> agent's user ID. This is what happens when I execute<BR>>
the decision task<BR>> from the Inbox and I am trying to get the WAPI's
to<BR>> play nice too. I<BR>> have logged an
OSS.<BR>><BR>> <BR>><BR>> Alon Raskin<BR>><BR>> e:
araskin@3i-consulting.com<BR>> <<A
href="mailto:araskin@3i-consulting.com">mailto:araskin@3i-consulting.com</A>><BR>><BR>>
p: +1 207 523 3489<BR>><BR>> c: +1 207 409 4983<BR>><BR>> f:
+1 806 403-4983<BR>><BR>> <BR>><BR>> The easiest way to
integrate SAP with any mobile<BR>> device<BR>><BR>> <A
href="http://www.themobileworkplace.com/">http://www.themobileworkplace.com</A><BR>>
<<A
href="http://www.themobileworkplace.com/">http://www.themobileworkplace.com/</A>><BR>><BR>>
________________________________<BR>><BR>> From:
sap-wug-bounces@mit.edu<BR>> [<A
href="mailto:sap-wug-bounces@mit.edu">mailto:sap-wug-bounces@mit.edu</A>] On
Behalf<BR>> Of Richard V Marut<BR>> Sent: Tuesday, October 09, 2007 10:36
PM<BR>> To: 'SAP Workflow Users' Group'<BR>> Subject: RE: WAPI
SAP_WAPI_WORKITEM_COMPLETE<BR>><BR>> <BR>><BR>>
Alon,<BR>><BR>> <BR>><BR>> What exactly is the step that you
are using to<BR>> complete work item doing?<BR>> I recall having the same
problem when the step had<BR>> some functionality<BR>> involved with it.
My process used a web front-end by<BR>> user to process the<BR>> work
items. I ended up making the work item a dummy<BR>> step just to
be<BR>> able to assign the item to a user and to provide the<BR>> ability
to reserve,<BR>> replace, cancel and complete the work item under<BR>>
that user id. I no<BR>> longer received that error once I did
that.<BR>><BR>> <BR>><BR>>
Richard...<BR>><BR>> <BR>><BR>> <BR>><BR>> From:
sap-wug-bounces@mit.edu<BR>> [<A
href="mailto:sap-wug-bounces@mit.edu">mailto:sap-wug-bounces@mit.edu</A>] On
Behalf<BR>> Of Alon Raskin<BR>> Sent: Tuesday, October 09, 2007 6:43
PM<BR>> To: SAP Workflow Users' Group<BR>> Subject: RE: WAPI
SAP_WAPI_WORKITEM_COMPLETE<BR>><BR>> <BR>><BR>> Thanks
Ravi,<BR>><BR>> <BR>><BR>> I am not sure your analysis is
right. The Workflow<BR>> works fine if you<BR>> execute the work item from
the inbox. It only errors<BR>> if you call the<BR>> WAPI
SAP_WAPI_WORKITEM_COMPLETE with the<BR>>
do_callback_in_background =<BR>> space.<BR>><BR>> <BR>><BR>>
Regards,<BR>><BR>> <BR>><BR>> Alon Raskin<BR>><BR>> e:
araskin@3i-consulting.com<BR>> <<A
href="mailto:araskin@3i-consulting.com">mailto:araskin@3i-consulting.com</A>><BR>><BR>>
p: +1 207 523 3489<BR>><BR>> c: +1 207 409 4983<BR>><BR>> f:
+1 806 403-4983<BR>><BR>> <BR>><BR>> The easiest way to
integrate SAP with any mobile<BR>> device<BR>><BR>> <A
href="http://www.themobileworkplace.com/">http://www.themobileworkplace.com</A><BR>>
<<A
href="http://www.themobileworkplace.com/">http://www.themobileworkplace.com/</A>><BR>><BR>>
________________________________<BR>><BR>> From:
sap-wug-bounces@mit.edu<BR>> [<A
href="mailto:sap-wug-bounces@mit.edu">mailto:sap-wug-bounces@mit.edu</A>] On
Behalf<BR>> Of Ravi Dixit<BR>> Sent: Tuesday, October 09, 2007 7:36
PM<BR>> To: sap-wug@mit.edu<BR>> Subject: Re: WAPI
SAP_WAPI_WORKITEM_COMPLETE<BR>><BR>> <BR>><BR>> HI
Alon<BR>><BR>><BR>> Most likely it seems to be a problem with
the<BR>> definition of the next<BR>> step. Check the outcome of the
current step and<BR>> mandatory parameters for<BR>> the next. Also, you
can user Error Analysis<BR>> (Ctrl+F11) to dig further.<BR>><BR>>
Cheers<BR>><BR>> Ravi<BR>><BR>>
<BR>> Message:
4<BR>> Date: Tue, 9 Oct 2007 09:54:14
-0400<BR>> From: "Alon Raskin" <
araskin@3i-consulting.com<BR>> <<A
href="mailto:araskin@3i-consulting.com">mailto:araskin@3i-consulting.com</A>>
><BR>> Subject: WAPI
SAP_WAPI_WORKITEM_COMPLETE<BR>> To: "SAP
Workflow Users' Group" <sap-wug@mit.edu><BR>>
Message-ID:<BR>>
<<BR>><BR>CEF21C1C5BF2FA42A42CEC87B91BBCDE02764316@ms07.mse2.exchange.ms<BR>><BR><<A
href="mailto:CEF21C1C5BF2FA42A42CEC87B91BBCDE02764316@ms07.mse2.exchange.ms">mailto:CEF21C1C5BF2FA42A42CEC87B91BBCDE02764316@ms07.mse2.exchange.ms</A>><BR>>
><BR>> Content-Type: text/plain;
charset="iso-8859-1"<BR>> <BR>>
I am just wondering if anyone has seen this
issue<BR>> before:<BR>> <BR>>
I am calling Function Module to
complete a work<BR>> item. The FM<BR>> has a parameter
do_callback_in_background . I am<BR>> setting this to SPACE<BR>> because I
want the subsequent work item to be<BR>> executed under the same<BR>> User
ID. However when I do this the workflow errors<BR>> with the
following<BR>> error Error when defining successor for node<BR>>
0000000004<BR>> <BR>>
Does do anyone know a way around this issue
or<BR>> whether this is a<BR>> likely candidate for an OSS
message?<BR>> <BR>>
Alon Raskin<BR>>
e: araskin@3i-consulting.com <mailto:<BR>>
araskin@3i-consulting.com<BR>> <<A
href="mailto:araskin@3i-consulting.com">mailto:araskin@3i-consulting.com</A>>
><BR>> <BR>>
-------------- next part --------------<BR>>
A non-text attachment was scrubbed...<BR>>
Name: not available<BR>>
Type: application/ms-tnef<BR>>
Size: 4248 bytes<BR>>
Desc: not available<BR>>
Url :<BR>><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>>
ttachment.bin<BR>> <BR>>
------------------------------<BR>>
<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>>
<BR>> <BR>>
End of SAP-WUG Digest, Vol 35, Issue 16<BR>>
***************************************<BR>><BR>><BR>=== message truncated
===><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>><BR><BR><BR><BR> <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>