WAPI SAP_WAPI_WORKITEM_COMPLETE

Alon Raskin araskin at 3i-consulting.com
Wed Oct 10 14:30:45 EDT 2007


Hi Kirshnan,
 
Thanks but this is precisely what I am doing but this is not the problem.
The problem is the synchronous processing chain that needs to occur AFTER the completion of the decision task.

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

________________________________

From: sap-wug-bounces at mit.edu on behalf of krishna mohan
Sent: Wed 10/10/2007 09:10
To: SAP Workflow Users' Group
Subject: RE: WAPI SAP_WAPI_WORKITEM_COMPLETE




Hi Alon,

If i understood you requirement correctly, you are
trying to complete the decision task programmatically.

Though you are using SAP_WAPI_WORKITEM_COMPLETE,
before completing the workitem you should update the
container elemets _RESULT , _WI_RESULT with correct
values ( either 0001, 0002  etc based on the decsion)
using SAP_WAPI_WRITE_CONTAINER. Are you doing this?

Recently i did the same , meaning as a requirement one
of my report program supposed to behave as if user has
taken the decision , i could it do it with out any
problem.

This is how to be done:
1. Update the container _RESULT , _WI_RESULT with
correct values
2. Find the current agents of the workitem, and
reserve it with any one of them, use
SAP_WAPI_RESERVE_WORKITEM
3. Now, complete the workitem with the agent as one
who reserved the workitem.SAP_WAPI_WORKITEM_COMPLETE


Thanks and Regards
Krishna Mohan
SAP Workflow Consultant


--- Alon Raskin <araskin at 3i-consulting.com> wrote:

> 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/> 
> <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/> 
> <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
>       ***************************************
>
>
=== message truncated ===>
_______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>



      
____________________________________________________________________________________
Pinpoint customers who are looking for what you sell.
http://searchmarketing.yahoo.com/
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 12744 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20071010/914cecbb/attachment.bin


More information about the SAP-WUG mailing list