Change work item status

Zmudzin,Tomasz,VEVEY,GL-IS/IT Tomasz.Zmudzin at nestle.com
Mon Mar 3 04:16:05 EST 2003


Ed,
 
changing the work item status "manually" (by code running external to your
WF) can be done, but it is not a nice thing from the overall workflow
perspective. Your workflow logs will not tell you why the item has been
completed, you need to pass the work item # to your program somehow etc.
Instead of this think about using the standard WF mechanisms, like putting
your task (producing the work item) in a fork with the "wait for event" in
the other branches or similar. They're just as effective, they're more
transparent and tend to pay off in maintenance.
 
Kind regards,
Tomasz
 
P.S. OK, if you really insist, then check SAP_WAPI_SET_WORKITEM_COMPLETD.
But please consider the alternatives. Your description is pretty general so
it's hard to propose a more detailed solution. How is your program started?
How does it know the work item? Why should that work item be cancelled?
Please give us some detail and I'll be glad to propose a less hard-wired
fix.
 
-----Original Message-----
From: Ed Forde [mailto:workflow_sap at hotmail.com]
Sent: Monday,3. March 2003 10:01
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Change work item status
 
 
Hello Workflowers,
 
I have a custom program and when it finishes running I need to change the
status of the work item related to it. Is there a function module I can use
to change the status of a work item to Complete?
 
Many thanks.
 
Ed
 
 
 
 
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail
 


More information about the SAP-WUG mailing list