WAPI SAP_WAPI_WORKITEM_COMPLETE
Sample, Rick
Rick.Sample at gbe.com
Wed Oct 10 09:46:06 EDT 2007
As far as the error message, I don't recall. But some thoughts on a
design change. (Since you are 'testing')
Change from a decision step to Activity Step with popup for Approve,
Reject, Cancel and "Terminating event"?
Catch the event creator and pass it through.
I tried to create a decision to catch the actions after choice but was
far too painful. (In 4.6c)
Have you tried using BEFORE / AFTER methods? A method call (after
decision action) will run. And run as same user in task.
More than happy to share some thoughts...
Rick Sample
SAP Business Workflow Developer
Graybar, Inc.
________________________________
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Alon Raskin
Sent: Wednesday, October 10, 2007 2:56 AM
To: SAP Workflow Users' Group
Subject: RE: WAPI SAP_WAPI_WORKITEM_COMPLETE
It's a custom workflow which I put together for this test. It's a simple
decision task followed up by a simple dialog step (which does not popup
any screens). What I want to achieve is to complete the task
programmatically and then have the subsequent step executed under the
agent's user ID. This is what happens when I execute the decision task
from the Inbox and I am trying to get the WAPI's to play nice too. I
have logged an OSS.
Alon Raskin
e: araskin at 3i-consulting.com <mailto:araskin at 3i-consulting.com>
p: +1 207 523 3489
c: +1 207 409 4983
f: +1 806 403-4983
The easiest way to integrate SAP with any mobile device
http://www.themobileworkplace.com <http://www.themobileworkplace.com/>
________________________________
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Richard V Marut
Sent: Tuesday, October 09, 2007 10:36 PM
To: 'SAP Workflow Users' Group'
Subject: RE: WAPI SAP_WAPI_WORKITEM_COMPLETE
Alon,
What exactly is the step that you are using to complete work item doing?
I recall having the same problem when the step had some functionality
involved with it. My process used a web front-end by user to process the
work items. I ended up making the work item a dummy step just to be
able to assign the item to a user and to provide the ability to reserve,
replace, cancel and complete the work item under that user id. I no
longer received that error once I did that.
Richard...
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Alon Raskin
Sent: Tuesday, October 09, 2007 6:43 PM
To: SAP Workflow Users' Group
Subject: RE: WAPI SAP_WAPI_WORKITEM_COMPLETE
Thanks Ravi,
I am not sure your analysis is right. The Workflow works fine if you
execute the work item from the inbox. It only errors if you call the
WAPI SAP_WAPI_WORKITEM_COMPLETE with the do_callback_in_background =
space.
Regards,
Alon Raskin
e: araskin at 3i-consulting.com <mailto:araskin at 3i-consulting.com>
p: +1 207 523 3489
c: +1 207 409 4983
f: +1 806 403-4983
The easiest way to integrate SAP with any mobile device
http://www.themobileworkplace.com <http://www.themobileworkplace.com/>
________________________________
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Ravi Dixit
Sent: Tuesday, October 09, 2007 7:36 PM
To: sap-wug at mit.edu
Subject: Re: WAPI SAP_WAPI_WORKITEM_COMPLETE
HI Alon
Most likely it seems to be a problem with the definition of the next
step. Check the outcome of the current step and mandatory parameters for
the next. Also, you can user Error Analysis (Ctrl+F11) to dig further.
Cheers
Ravi
Message: 4
Date: Tue, 9 Oct 2007 09:54:14 -0400
From: "Alon Raskin" < araskin at 3i-consulting.com
<mailto:araskin at 3i-consulting.com> >
Subject: WAPI SAP_WAPI_WORKITEM_COMPLETE
To: "SAP Workflow Users' Group" <sap-wug at mit.edu>
Message-ID:
<
CEF21C1C5BF2FA42A42CEC87B91BBCDE02764316 at ms07.mse2.exchange.ms
<mailto:CEF21C1C5BF2FA42A42CEC87B91BBCDE02764316 at ms07.mse2.exchange.ms>
>
Content-Type: text/plain; charset="iso-8859-1"
I am just wondering if anyone has seen this issue before:
I am calling Function Module to complete a work item. The FM
has a parameter do_callback_in_background . I am setting this to SPACE
because I want the subsequent work item to be executed under the same
User ID. However when I do this the workflow errors with the following
error Error when defining successor for node 0000000004
Does do anyone know a way around this issue or whether this is a
likely candidate for an OSS message?
Alon Raskin
e: araskin at 3i-consulting.com <mailto: araskin at 3i-consulting.com
<mailto:araskin at 3i-consulting.com> >
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 4248 bytes
Desc: not available
Url :
http://mailman.mit.edu/pipermail/sap-wug/attachments/20071009/ca5ae318/a
ttachment.bin
------------------------------
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug
End of SAP-WUG Digest, Vol 35, Issue 16
***************************************
--
Regards
Ravi Dixit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20071010/3a418b1d/attachment.htm
More information about the SAP-WUG
mailing list