Skip to Content
avatar image
Former Member

Workflow triggers twice.

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Nov 08, 2016 at 07:47 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 10, 2016 at 11:10 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 13, 2017 at 11:35 AM

    Hi,

    Check SWE2 whether two workflows linked with same BO.

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

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 14, 2017 at 09:25 AM

    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

    Add comment
    10|10000 characters needed characters exceeded