Question:
Hi all,
I need to trigger a WF from a Program. I know that I can trigger by using FM 'SWE_EVENT_CREATE'. But my problem I need to pass some initial data to the WF so how do I pass data through the event?
As I understand I can pass data thru Event_container table.
But does that mean I need to create a container & set elements in my program and fill that up?
Can anybody explain with a small example?
Thanks a lot..
Verma.
Answer:
Hello,
In the event --> Workflow binding (pftc, type in the wf-definition, then click the tab for triggering events) you can pass all the attributes of the business object where the event belongs to, to workflow containerelements.
Via the aforementioned Function module you can do the same, by passing the elements with values in the EVENT_CONTAINER table.
You can fill this table directly. In the workflow definition however, there must be a binding from event_container to workflow
Regards, Rob Dielemans