cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

workflow not triggering automaticaly

former_member1005887
Participant
0 Likes
3,287

Dear all,

I have some workflow which are working fine when I test these in SWDD t-cdoe. But on doing actual transaction these workflow are not triggering automatically.

If I go in t-code SWUE I am again able to trigger it manual for a particular document. But I do not I understand why it is automatically not triggering.

Objects are:BUS2005-CREATED AND MKPF-ASSIGNED

Please give u r ideas to sove this.

Thanks,

Dhananjaya

View Entire Topic
bpawanchand
Active Contributor
0 Likes

Do the following

  • Check in the SWE2 Txn whether the event linkage is active or not for the standard workflow.If it is not active make it active.

  • Check whether, are maintining any agents or not to the workflow . to do this goto PFTC Txn select workflow template give the template number with out WS and open in the dispay mode and on menu click on Additonal Assigment ---. Maintain Agent ---> select General Task

former_member1005887
Participant
0 Likes

Event Linkage is active and assigned wrokflow agent with general task. but still no improvement.

Former Member
0 Likes

Hello,

It sounds like a configuration issue, the events are not being created. Ask a Functional person to look into it.

regards

Rick Bakker

Hanabi Technology

former_member1005887
Participant
0 Likes

Can you kindly let me know where to check the events. I am myself a functional consultant

Thanks,

Dhananjay

Former Member
0 Likes

Hi Dananjay,

First try to find the Event trace, you can do the event trace in three steps

1.Go to Txn SWELS switch on the vent Trace

2.Run your scenario

3.Goto SWEL, find the even log and analyse the error.

Before this please cross check the configuration part of your scenario in SPRO for workflow.

Hope this will help you.

Regards

Kiran

former_member1005887
Participant
0 Likes

Step 1 and 2 executed but I could not see any log for the Object type BUS2005 AND FOR MKPF ALSO.

bpawanchand
Active Contributor
0 Likes

Can you let us know the workflow template number please.

former_member1005887
Participant
0 Likes

This is not standard workflow I have created the simple for workflow for Creation of Production order a intimitation should go to the person assigned to the task. Every this is working fine when we are doing testing.

But when we create Prodcution order Workflow not triggering.

Object type used to trigget is BUS2005-CREATED.

Same problem is there for MIGO POSTING also

Please guide

Thanks

Dhananjay

bpawanchand
Active Contributor
0 Likes

how are you trying to trigger the event i mean by using any function module or what.

See When you are saying it is a custom workflow, then in the start events of the workflow did you assigened the event name and actiavted the event binding .

Secondly, When any event is occured then there should be a receiver you can check this by using the Txn SWUE where give all the relevant data and click on the button EVENT Receiver it shows you whether any receiver is ready to handle the event. Here the term Receiver , I mean Workflow.

You can trigger the workflow by using the FM SAP_WAPI_CREATE_EVENT.

Former Member
0 Likes

Hi,

In the event trace you need to check for the evnet (the start event of your worklfow) not the BOR number.

Please check for the event in SWEL.

Note: once you go to the SWEL sort the record as per date (Ascending) you will have your start event there. Then you can select the event and see its log.

Regards,

Deepa Kulkarni

former_member1005887
Participant
0 Likes

In start event I have assigned the BUS2005 and Event of the object as Created and Binding is done and activated, all are showing green color.

In SWUE after assinging any object key (Production order number created) with object number as BUS2005 and EVENT as Created it triggers the workflow but it is not activating automaticaly when I create the Production order.

bpawanchand
Active Contributor
0 Likes

Now see it is clear that when you are executing from SWUE it is receving the event , that means from the Transaction ( Production order) you are not rasing the Event , I mean find any exit or badi , where you can rasie the BUS2005 event by using the FM SAP_WAPI_CREATE_EVENT. When ever you click on create or saving the PO

Please let us know the txn how are you creating the production order. so that we can help you to find the USer Exit or BADI

former_member1005887
Participant
0 Likes

Production Order using T-code CO01, We enter the Material number, Plant, Order type then enter.

In production order create screen we enter the qty of Finish date all other details are being taken from master maintained for the material.

Thanks

Dhananjay

bpawanchand
Active Contributor
0 Likes

Try to call the function module SAP_WAPI_CREATE_EVENT from the user Exit PPCO0007 and in the componenet EXIT_SAPLCOZV_001 this Exit when saving production order

Former Member
0 Likes

You can try using change document also..create a a change document at creation of order

Regards,

Sangvir Singh

former_member1005887
Participant
0 Likes

Change event is not available.

Thanks Pravin I will try this it may take some time to co-ordinate with abaper and follow ur instruction if any problem i will post the same here thanks,