on 06-23-2009 10:58 AM
Hi Experts,
I want to trigger a workflow when a PO is created( i.e Saved ). I have checked the tutorials that are available for PO release strategy, but my workflow is not getting triggered.
Note: i have tried by copying the standard workflow WS20000075, but doesnt work.
Can anyone provide the steps or some good document to send an email on PO Creation.
Thank You,
Radhika.
Hi Radhika,
Please try to check whether any EVENT is triggering or not while you are executing you transaction , this would be done using T-code SWELS where you can switch ON and OFF a trace.
Please let me know if you still need any more help.
Thanks and regards,
Rajeshwar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Radhika,
WS20000075 is not for trigegreing when PO is created.
This Workflow is for release of purchase order. This will be triggered for the given release strategy.
For your requirement use object BUS2012.
To know which event to use as trigegring event,
1) Go to SWELS switch the trace on
2) Go to transaction ME21N
3) Create a PO and Save it
4) Now swith of the trace and get the event information from SWEL
Hope this will help you.
Regards,
Deepa Kulkarni
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 such quick responses.
@Morten Nielsen - der is no such method 'CREATED'.
Guys i want to trigger the workflow when i PO is just created and saved.
Please help.......
Radhika.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
WS20000075 this std. Workflow for the PO this has multiple levels of approvals, Depends on the no. of approvals it will flow.
The approver can be picked using the User Exit M06E0005 (EXIT_SAPLEBNF_001 - User Exit ZXM06U51), here you have to write logic to pick the Approver.
The approval workitem comes to SAP Inbox, once the approver click the workitem it will open the Transaction, there the user can approve.
To see the status of the Workflow, Go to ME23N, in the top left a button, Service Object, click on that, a drop down appear in Workflow > Workflow Overview, you can see the status here.
Regards,
Surjith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Create a subtype of BUS2012 and then create a new event say 'CREATED'. Use the change document 'EINKBELEG' and link this event to this change document.
Go to transaction 'SWEC' make a new entry in the with the following inputs
Change doc. object - EINKBELEG
Object Type - ZBUS2012
Event - CREATED.
Check the radiobutton 'On Create' .Now the event 'CREATED' is being published in the system whenever a PO is created.
In the same way, link the event 'Changed' to the change document and select the radio button 'On change' for the event to be published for any change in the PO.
Hope this will help.
Thanks,
Samson
Hi Radhika,
For your PO change workflow, please check the followign
1) Go to basic data
2) Click on 'Start Events' tab (check for correct BOR and Event are used)
3) Check whether Event is in active status (Green Button on)
4) Also check whether Binding Exists
5) If binding exists please check the binding between event and workflow.
Best Regards,
Deepa Kulkarni
Hi Radhika,
When you go to SWEL some times you will not be able to identify event (though it is present) this will be because of sorting done on some other fileds.
Sort the SWEL entries on object and under the object you have used, search for the event
(based on the help of creation date you will be able to decide your event entry)
Or you can give the event name and program name (where FM is used to trigger the event) in the selection screen of SWEL and execute.
Hope this will help you.
Regards,
Deepa Kulkarni
Hi all,
I am still stuck with this.
I checked in SWEL, i can see an entry for BUS2012 - CHANGED, following are the details;
Reciever Data:
Receiver Type WS99900279
Receiver FM SWW_WI_CREATE_VIA_EVENT_IBF
RFC Destination WORKFLOW_LOCAL_800
Trace Data:
Action Receiver started correctly
RFC Status You cannot log on (CUA system assignment missing)
What could be the possible error ?
Anyhelp would be appreciated.
Radhika.
Hi Radhika,
Soryy for not replying you.
Even i do not have much idea on this error. Please search SDN for this error.
Hope some CAU system is removed.
I hope this link [link1|http://help.sap.com/saphelp_sm32/helpdata/en/ea/9abf3b4f995f1ce10000000a114084/content.htm] will help you.
Regards,
Deepa Kulkarni
Hi,
Please find the procedure for Triggerring workflow on change of PO:
1. Create 2 container elements in the Workflow container, since the values need
to be transferred into those container elements.
2. Create the first container element of the type Workflow
Initiator with table name as WFSYST and field name as INITIATOR.
- Go to the Properties Tab and in the parameter settings check the Import checkbox for
both the container elements.
3. Create another container element of BOR type and name it as BUS2012 and
using Business Object<BO> 2012. BO BUS2012 is used for Purchase Order.
4. define user decision step to display the PO and you can also define a step for sending mail after user decision step.
5. now Goto BASIC DATA
Enter the Workflow name and Workflow Description and change the release status to Released.
Click on the Start Events tab u2013 here we will give our start conditions.
- Give the category as BOu2026object type as BUS2012 and event as Changed.
now click on activate and then binding button.
Test the workflow by changing the PO. i.e. goto me22n and change the PO, on saving the PO, workflow will get triggered.
Hope this helps.
Regards,
Nisha.
Check the configuration of the Release Strategies in the SAP IMG. Materials Management -> Purchasing -> Purchase Order -> Release Procedure for Purchase Orders -> Define Release Procedure for Purchase Orders. Check all the activities have been done properly in this step, together with your functional consultant.
Check the configuration of the Release Strategies in the SAP IMG. Materials Management -> Purchasing -> Purchase Order -> Release Procedure for Purchase Orders -> Define Release Procedure for Purchase Orders. Check all the activities have been done properly in this step, together with your functional consultant.
Hope this helps.
Regards,
Darlington
Hi
If you want to trigger your workflow every time a PO is created, then the tutorials for the release strategy workflow isn't relevant.
Try to check the events for BUS2012 in SWO1, there might be one called "Created" (I'm not on a system right now so it's a qualified guess onl ).
If you do not have such an event you might need to create it on a deleagted subtype, and then raise it from e.g. Message Control (NACE).
You need to link this event to your workflow, in order to trigger it. This can be done in transaction SWE2.
Regards
Morten Nielsen
Edited by: Morten Nielsen on Jun 23, 2009 10:16 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Radhika ,
Explain at which step u get confuse try explain in detail so we can help u in that.
Regards,
Gurprit Bhatia
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
The standard workflow WS20000075 will be started only when the workflow is configured for the particular release strategy. This customization will be done by the MM functional consultant. If your requirement is to design a workflow for the PO release, configure the release strategies and then use the standard workflow or the custom one. If your requirement is to design a workflow after the creation of PO, you can use the concept of change documents to trigger the workflow.
Hope this will help.
Thanks,
Samson
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
first goto T-code SWELS and switch on trace and run your transaction and then switch off using the same transaction.then goto transaction SWEL and check whether any event is triggered or not,
see if any event is triggered ,if triggered then go to that workitem and see what went wrong.
Please let me know if you still need any more help.
Thanks and regards,
Rajeshwar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.