Skip to Content
0

Workflow triggers twice.

Nov 08, 2016 at 07:02 AM

90

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Anjan Paul Nov 08, 2016 at 07:47 AM
3

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.

Share
10 |10000 characters needed characters left characters exceeded
Paul Bakker Nov 10, 2016 at 11:10 PM
2

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.

Share
10 |10000 characters needed characters left characters exceeded
Mr. Maity Jul 13, 2017 at 11:35 AM
0

Hi,

Check SWE2 whether two workflows linked with same BO.

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

Share
10 |10000 characters needed characters left characters exceeded
Rob Dielemans Jul 14, 2017 at 09:25 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded