on 06-18-2009 5:33 AM
Hi Experts,
I am developing WF for tcode MD03, this transaction is used to create planned order.
I need to trigger a WF to send mail when ever a Planned order is created using MD03 tcode.
BUS2004 is the BO for Planned order, but this BO does not have any event linked to it. So my question is how to create a event to a BO.
Also, I used BTE to create a Z function module, this FM is getting triggered whenPlanned order is created using MD03 tcode. Is it possible to trigger a WF using this FM?, If yes, how?
Thanks in advance.
Regards
Balu
HI Balu,
Yes it is possible to trigger your workflow using BTE. Select the BTE, create a Z FM using that BTE and in that ZFM call FM SAP_WAPI_CREATE_EVENT and pass the name of the BO, event and object key to this function module. Then create a z-product, assign your z FM to this product and activate this product.
This will do the job.
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
Thanks for your useful suggestion.
I placed a breakpoint in the Z FM to check whether the created planned is updated in Plaf table when this FM is triggered. But i found that Plaf table is not updated when the FM is getting triggered.
Do you still recommend me to go ahead and call the WF?
Regards
Balu
Hi Balu
Its not advisable to create events for a standard BO. What you can do is, create a ZBO of the supertype BUS2004, make proper delegations to it and the create the required events in the ZBO. As far as triggering the wf is concerned, Call FM: SWE_EVENT_CREATE or SAP_WAPI_START_WORKFLOW inside your Z FM. This will trigger the wf as per your requirement.
Hope this helps.
Harsh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Balu,
It is possible to trigger the workflow using your z-function module, in your z function module you can use the function module SAP_WAPI_TRIGGER_WORKLFOW in order to trigger the workflow.
Hope this helps.
cheers,
Saurabh Anand
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.