cancel
Showing results for 
Search instead for 
Did you mean: 

Terminating Event Getting triggered more than once

Former Member
0 Kudos

Hi All,

I am facing a very peculiar problem in PR release workflow(item wise release, business object BUS2009).

One of the requirements of the workflow is to send a mail to PR initiator once it is rejected by any of the approvers(4, in my case). The event associated with the cancellation of the workflow is REJECTION_START.

The problem is that this event is being triggered more than once. One thing that i have observed is that if eg. second level of approver cancels it, the event is triggered twice. Likewise if third level of approver cancels it, it is being triggered thrice. Which leads to sending of 2 and 3 mails respectively to the PR initiators mailbox.

Why is this happening? Ideally, only one event should have been triggered, and the triggering of the event should have been independent of PR approver's level. I am at my wits end regarding this.

Any suggestions in this regard will be highly appreciated

Regards

Varsha Agarwal.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

If you check for 2nd level rejjection two release Code is associated so it triggers 2 times and same for 3rd level approval.

I think you have to put some sort of filter using FM SAP_WAPI_WORKITEM_OBJECT

in the attribute portion of yopur custom BO.

The attribjute will check this FM and if it has entries that means already a Workflow has been triggered it should set the flag as X.

Make use of this attribute in defining the start condition of this task thru

SWB_COND.

Thanks

Arghadip

Former Member
0 Kudos

Hi,

Check whether is any change document defined for this event in tranasaction code SWEC, otherwise check with functional consultant in customization for PR.

Reward points if its useful

Thanks,

prabhu