Triggering of workflow from user exits through programming

Question: Hi,
I wanted to know if it was possible to trigger a workflow from a user exit. Is there any sample lines of code to do that. Can a work flow be triggered manually without change in use status of change document etc. from a user exit.

Thanks
Workflow learner

Answer:
Hi,

Yes, there are WAPI function modules to do this:

'SAP_WAPI_START_WORKFLOW' will kick off your workflow directly; 'SAP_WAPI_CREATE_EVENT' will trigger an event, which will start workflows with an appropriate event linkage (SWE2).

Remember a commit work afterwards!

Regards,

Tim
Copyright ?2007 - 2008 www.jt77.com