Create workflow and start first workitem

Kouw, FA - SPLTX fa.kouw at td.klm.com
Fri Oct 17 08:55:38 EDT 2003


Hi,
 
Mike, we use event 'Created' of BUS1001006 (Standard material) to start a custom material master workflow (the event is triggered by standard SAP after creating a new material). If the user who created the material is a possible and responsible agent of the first work item it is automatically executed (the user
does not have to start it from the inbox).
 
Can you explain this, maybe something is possible for Werner?
 
Regards,
 
Fred
 
Michael Pokraka wrote:
 
> Hi Werner,
> By raising an event you are passing control over to the event manager. Thus the connection to the user's dialog session is lost and the workitem has to be accessed via the inbox.
> If you start the workflow directly without an event you can achieve what you are after. SAP_WAPI_START_WORKFLOW is probably what you want. Be aware that this way you have to handle any errors yourself, there's no event queue/linkage or other trace by which a flow can be restarted if things didn't go to plan.
>
> Happy Fridays
> Cheers
> Mike
>
> On Fri, Oct 17, 2003 at 02:13:41PM +0200, Werner Kv_l wrote:
> > Hi all,
> >
> > i programmed a report and used FM SWE_EVENT_CREATE to start a workflow.
> > The workflow starts without a problem.
> > But i do not achieve that the first workitem is executed right after the
> > start of the workflow.
> > I tried FM SAP_WAPI_EXECUTE_WORKITEM, but i am missing the ID of this
> > workitem
> > Is there a chance to get the ID of the workitem of a workflow?
> > Or is there another possibility to execute the first workitem, so that users
> > do not have to call their business workplace first?
> >
> > Thanks and nice weekend!
> > Werner.
>
> _________________________________________________________________________________________
> This inbound message from KPN has been checked for all known viruses by KPN IV-Scan, powered by MessageLabs.
> For further information visit: http://www.veiliginternet.nl
> _____________________________________________________________________________________________
 
 
**********************************************************************
This e-mail and any attachment may contain confidential and privileged
material intended for the addressee only. If you are not the addressee, you
are notified that no part of the e-mail or any attachment may be disclosed,
copied or distributed, and that any other action related to this e-mail or
attachment is strictly prohibited, and may be unlawful. If you have received
this e-mail by error, please notify the sender immediately by return e-mail,
and delete this message. Koninklijke Luchtvaart Maatschappij NV (KLM), its
subsidiaries and/or its employees shall not be liable for the incorrect or
incomplete transmission of this e-mail or any attachments, nor responsible
for any delay in receipt.
**********************************************************************
 
_____________________________________________________________________________________________
This outbound message from KPN has been checked for all known viruses by KPN IV-Scan, powered by MessageLabs.
For further information visit: http://www.veiliginternet.nl
_____________________________________________________________________________________________
 


More information about the SAP-WUG mailing list