cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Event triggered Twice- Production

Former Member
0 Kudos

Hi Folks,

I have a peculiar scenerio in Production, I have a function module which is getting triggered through button handling in update task mode of CJ20N. For a scenerio this Button is clicked and the CJ20N is saved. In update task however, the Custom is triggered twice, Due to which the event is triggered twice an two work items are waiting in the Agent inbox. But however, tried to replicate the issue which failed.

Every day number of WBS Elements are created by clicking the button and every time in update task only one Custom event is triggered.

Please help if the system Commited work might have happened to twice due to any error in the system.

Thanks and Regards,

Mukthineni Krishna

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member193382
Active Contributor
0 Kudos

Hi,

Check if there is some user-exit or badi active that calls the event creation function module. If yes, deactivate them and try again. Also check if there are two workflows active for the same created event in SWE2.

Regards,

Raj

Former Member
0 Kudos

Hi Folks,

Thanks for the reply, the issue happened only once during runtime. The Same event is not getting triggered every day. There is no BADI and other enhancement which can trigger an extra work item.

I have a doubt, weather there is any chance of commit happening during runtime twice if system has incurred any error.

Thanks and Regards,

Mukthineni Krishna

former_member554978
Active Contributor
0 Kudos

Hope you might have configured the trigerring events in BSVW...

Kindly check there for any duplication....

Former Member
0 Kudos

Hi

The issue is resolved. We are following release stratergy for workflows two workflows are configured to trigger one from Event and other direct function module call. So elimanted the call by making some custom code.

Thanks and Regards,

Mukthineni Krishna

Former Member
0 Kudos

Does the event gets triggered twice at the same time. If no you can use an attribute that will check whether there is any Workflow instance already triggered. You can use SAP_WAPI_WORKITEM_TO_OBJECT to find workitem created. If created this attribute will be set to X and this you can use in the start condition of Wflow from SWB_COND.

Thanks

Arghadip