cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow triggers twice.

Former Member
0 Kudos

I developed one travel expense workflow . When the expense is created by the user it triggers the workflow twice. I check the event trace, it displays the workflow with same event BO BUS2089 - Method : CREATED but twice with the time gap of around 10 seconds.

Accepted Solutions (1)

Accepted Solutions (1)

anjan_paul
Active Contributor

hi,

How you link your workflow with event. The most common problem is, maintain in SWEC as well as in SWEHR1, SWEHR2 and SWEHR3.

You have find linkage why two times event get created. Then deactivate any one event linkage.

Answers (3)

Answers (3)

paul_bakker2
Active Contributor

The workflow is doing the right thing...You just need to find out why two events are being raised..

Are the events raised programatically? Set breakpoints in function modules SWE_EVENT_CREATE and SAP_WAPI_CREATE_EVENT.

former_member186746
Active Contributor
0 Kudos

Hi,

Are any dynamic actions triggered for this employee? In any case you either find out why this is happening twice and surpress one of these events. Or you create a condition or check function module to prevent the second event-->wf from happening.

Kind regards, Rob Dielemans

gourhari23
Explorer
0 Kudos

Hi,

Check SWE2 whether two workflows linked with same BO.

And check in SWEC whether same event (here CREATED ) is maintained twice or not.