Automating a Decision Task

Alon Raskin araskin at eOutlook.com
Wed Sep 22 09:04:01 EDT 2004


Here is what I am trying to do. I am trying to programmatically simulate =
a user selecting a particular outcome in a decision task. Its actually =
quite simple but the problem is that once I have done that I need the =
work item to be removed from the Inbox. Of course the item remains in =
READY status as it has not been executed. What I really want to do is =
change the status to COMPLETED but I can not do this using the WAPI =
because it says it cannot go from status READY to COMPLETED (Fair =
enough).=20
 
What I did then is programtically reserve the work item and then chagne =
its status to COMMITED using FM SWW_WI_STATUS_CHANGE_NEW. After doing =
that the item changed its status to Completed. While this works, I am a =
little nervous manually changing the status of a work item. I was just =
wondering if anyone knew a better way?
 
Regards,
 
Alon
 


More information about the SAP-WUG mailing list