AW: WAPI SAP_WAPI_WORKITEM_COMPLETE

Markus Klein Klein at abs-team.de
Thu Oct 11 10:46:31 EDT 2007


Hello Alon,
 
to complete a decision step, please use FM "SAP_WAPI_DECISION_COMPLETE".
 
regards,
Markus
 

____________________________________

Markus Klein
SAP Senior Consultant

ABS Team GmbH
Muehlenweg 65
37120 Bovenden

Tel +49 551 820 33 0
Mobil +49 151 126 23 047
Email klein at abs-team.de

www.abs-team.de

Geschäftsführer: Dr. Andreas Rupprecht - HRB Göttingen 1535

Diese e-mail kann Betriebs- oder Geschäftsgeheimnisse oder sonstige vertrauliche Informationen enthalten. Sollten Sie diese e-mail irrtümlich erhalten haben, ist Ihnen eine Kenntnisnahme des Inhalts, eine Vervielfältigung oder Weitergabe der e-mail ausdrücklich untersagt. Bitte benachrichtigen Sie uns und vernichten Sie die empfangene e-mail Vielen Dank.

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.

 

________________________________

Von: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] Im Auftrag von Alon Raskin
Gesendet: Mittwoch, 10. Oktober 2007 20:31
An: SAP Workflow Users' Group
Betreff: RE: WAPI SAP_WAPI_WORKITEM_COMPLETE


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 --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20071011/39afe05d/attachment.htm


More information about the SAP-WUG mailing list