Workflow triggered twice !

Hi Guys,
              My Workflow has been triggered 2 times.
It has two starting events.
BUS2081 - BLOCKEDPRICE
BUS2081 - BOLCKEDQUANT
When the Invoice has been saved, sometimes both the events are triggered so the workflow.
Is there any way I can limit this to one time, eventhough when 2 events triggered.
Thanks

Hello,
I believe the problem is that there are events A and B and he wants the wf triggered when A or B, but not twice.
You could build a check into the workflow to see if there is aother workflow running with the same key, but maybe someone can think of a more elegant solution.
regards
Rick Bakker
Hanabi Technology

Similar Messages

  • Workflow Triggering twice when executing transaction cj21n

    Hi Experts,
    when i am executing transaction cj21n my workflow is triggering twice but earlier  it was working fine ..
    please provide your input on the same
    Thanks
    Deepanker Dwivedi

    Hi,
    The 'event' which  mapped to workflow triggered twice or another event may added to the workflow
    1) Did you give additional event for the workflow in the Basic Data -> Start events, if yes remove that event and test it.
    2) If 'No', In the SPRO configurations some settings might have changed, Check with your Function Consultant ask  any changes they done in the SPRO settings related to the T.code cj21n.
    Regards,
    Surjith

  • Workflow triggerred twice

    Using BO ADDRESSEMP  change event to trigger the workflow. but the workflow triggerred twice by BO ADDRESSEMP and BO ADDREMPUS the latter one is the subtype of the former one.
    I am curious to know, why this happens. I have checked the related event linkage table , only ADDRESSEMP is maintained, then why ADDREMPUS is faired?

    Hi,
    Normally it's standard behavior for the workflow to be triggered both supertype and subtype, when the triggering event is based on the subtype. And if you want to restrict that behavior you have to use receiver type function module.
    It should work properly if you still use the triggering event based on the supertype. However from your explanation it looks like that you have used supertype event and yet it triggers your subtype.
    Could you please elaborate your issue further?
    Regards,
    Lim...

  • Workflow triggered twice. Triggered using Message Control/Output Types

    I created an output type for VA01. After creating (then saving) SO, workflow is immediately triggered which shouldn't be the case since I have to run program 'rsnast00' to trigger workflow. So workflow is triggered twice during the process. How do i fix this?
    DATA:
    dispatch time = 'send with periodically schreduled job'
    application = 'v1'
    transmission medium = 'events'
    processing 1
      program = 'RSWEMCO1'
      form routine = 'CREATE_EVENT'

    May be the workflow is triggered in such a way that when ever out put type is created then the workflow must be triggered.
    As the purpose of the report stated by the SAP is
    Purpose
    Issues output from all applications with send times 1 and 2.
    May be the output type is created twice but the output of the report is not Duplicated. ( mentioned by SAP ) check the documentation of the report.

  • PR release workflow triggers twice

    Hello Friends,
    I had created a custom workflow for the item wise release of Purchase Requisition(PR). 2 levels of release are needed for all items whose value is above a particular amount.
    My problem is that, for all items in PR which requires 2 levels of release will generate 2 similar work items in agent's inbox. Even if we complete a work item execution, the other will remain in the inbox as not started.
    I had used SWE2 to find anything is wrong with the event linkages. There it shows a linkage to the event 'RELEASESTEPCREATED' of BUS2009 to my custom workflow only. Similerly I used SWEC to find any linkages there. There also I can't find anything wrong.
    Then I had used SWEL. I got the following result for a PR that contains only one item which requires 2 levels of release:
    BUS2009       RELEASESTEPCREATED     04.11.2011     16:34:07     WS90000044
    BUS2009   RELEASESTEPCREATED     04.11.2011     16:34:08     WS90000044
    Is there anything else that I had to do? Can someone tell me what I had to do to correct this issue?
    Please help me to solve this problem as soon as possible.
    Regards,
    Abijth

    Hello Suresh, Rick & Deepak,
    Thanks for your prompt replies.
    Suresh, you were right. The workitems in one agents inbox is having different workitem IDs and the Release code, which is an import parameter of the event 'RELEASESTEPCREATED' is also different. I checked SPRO. There exists only one release group for PR which is 01. The other release group is for PO, which is 02. SWEC does not contain an event linkage for BUS2009.
    Deepak, SWEC does not contain an event linkage for BUS2009. In our scenario the release strategy is setup as follows:
    01     01     ZMAR value < 50,000
    01     02     ZMAR value > 49,999
    01     03     ZCAP value < 50,000
    01     04     ZCAP value > 49,999
    01     05     ZOTH value > 9,999
    Rick, can you please help me to identify what is the config. issue, so that I can workout that with our functional guys.
    Thanks & Regards,
    Abijith

  • Subtype event not triggering and supertype event triggers twice!!!!!!

    Hi,
    We have created a subtype for object bus2030 and also an event created for that. My workflow should trigger whenever an inquiry is created.
    I've maintained this as triggering event in SWDD and done type linkage is SWE2 and everything looks fine.
    When i simulate or create event the WF is triggered but when create inquiry in VA11 WF does not triggers.
    I've checked SWEL for event trace but no event is triggered at all... Am i missing something... I've done almost everything that i used to do...
    Even synchronized buffer!!! nothing paid me a solution...
    Infact the same was working with 3.1i system but after migration to ECC6 we had to create new WF template for the same Process.
    Now I also see that the supertype bus2030-created event is triggered twice but, obviously no receiver type exists. But the zbus2030 event is not being triggered at all!!!!
    Kindly help me understanding my mistake...
    Regards,
    PB

    Hope you have already set the deletegation in SWO6.
    Now, event dont get triggered automatically, jus because they are defined in object. They have to be explicitly published in thesystem.
    Check for a suitable user exit in your transaction, which makes use of function module to create the event, from that you know how to proceed.
    If you dont find user exit, try other triggering techniques such as change documents, logistics, BTEs... etc.
    regards,
    Sandeep Josyula

  • EVENTITEM is triggering twice!!!

    Hi,
    I needs to send mail if PR is released or unreleased or reject or cancel rejection to the creator.
    So I created a workflow which contains event of BUS2105 in  START EVENT - RELEASESTEPCREATED, RELEASED, REJECTION_STOP, REJECTION_START.
    So if anything happen in ME54N a mail should get triggered.
    I used FORK which contains 4 wait event because only 1 event will be triggered for 1 PR. And accordingly formatted mail will be send.
    If PR is released for the first time mail is triggered successfully. If that same PR is unreleased and then again released for same release code mail is triggered twice and keeps triggering twice if again it is unreleased and then released.
    In SWEL below messages is seen twice for RELEASE event.
    BUS2105     RELEASED     20.07.2011     19:23:58     EVENTITEM     SWW_EI_EVENT_RECEIVE_IBF
    so same mail is triggered twice.
    This this is same for all remaining events.
    When I show in SWE3 and in OBJECT DATA, their exist a entry of PR(object key) for BUS2105 release event. If I delete that entry then again for the first time it will trigger 1 mail but for next release of same PR will trigger mail twice.
    The whole problem is for all events mentioned in FORK.
    Thanks in advance.

    Hi,
    You are correct.
    I removed worflow configuration from SPRO for release code. So REJECTION_STOP, REJECTION_START wait event are working properly means only 1 mail is triggered and below msg is shown only once. But as soon as I reconfigure release code in SPRO mail start triggering twice means in SWEL i can see below msg. 2 times :-
    message in SWEL --> BUS2105 RELEASED 20.07.2011 19:23:58 EVENTITEM SWW_EI_EVENT_RECEIVE_IBF
    As you said their might be some configuration problem of release code, So I developed a separate workflow which has only 1 event RELEASE and no WAIT EVENT is used, then it works perfectly means only 1 mail is triggering.
    So I also think that the problem is of WAIT EVENT(receiver type EVENTITEM) and RELEASE CODE configuration.
    I think, I need to control the receiver type --> EVENTITEM triggering for release code.
    I don't know how to solve this issue. Please help to solve the issue...
    Thanks & Regards,
    Mihir

  • Po message getting triggered twice

    Hi,
    recently we have upgraded SRM5.0 to SRM7.0 with ECC6.0 EHP pack4 .
    we have a problem when we create PO from SRM shopping cart in ECC.PO message is getting triggered twice. Th issue was not there before upgrade.
    Can anyone please help me resolving this.
    Thanks & Regards,
    Beena.

    Hi,
    While making a purchase requisition, you can refer to either last purchase or can take a reference of blanket purchase agreement, just check for that particular supplier that whether in the requisition table while importing requisition from maximo, there exist a reference of any last purchase or any blanket purchase agreement. If yes then autocreate workflow will get trigger automatically which might be schedule on your instance, which will create a purchase order for that particular supplier.
    Thanks & Regards
    Ankur Dawra

  • PO Workflow triigered twice

    Hi,
    I am doing one workflow for PO creation. I am using the event RELEASESTEPCREATED from BO BUS2012. But, the issue is that the workflow is getting triggered twice. I checked tcode SWEL and found that the event RELEASESTEPCREATED is created twice. What could be the reason? Please do help.
    Regards,
    Jubish

    Hi
    I checked tcode SWEL and found that the event RELEASESTEPCREATED is created twice
    Can you please tell me what is the business process that has been carried out.
    I think once Double click on the entries and check if it the same user by whom the event got triggered as its standard one.. some other user of the same landscape can process it.
    Revert with the status.
    Regards
    Narin

  • BBP_WFL_SECUR_BADI triggered twice

    Hi Gurus,
    I am using BADI BBP_WFL_SECUR_BADI to retrigger workflow when user make changes to certain fields in the shopping cart. First I check SCENARIO is initial, then I use function BBP_PD_SC_GETDETAIL to get screen values, then I called function BBP_PROCDOC_RESET_DB_BUFFER_SG to reset database buffer before calling function BBP_PROCDOC_GETDETAIL to get database values.
    I compared values on screen verses values in database and then set NEW_SEC_LEVEL = 2 if retrigger is necessary. Everything works fine except this BADI is triggered twice, once before save and once after save. Second call is made after screen values are committed to the database. So this make my screen value and database value the same when the BADI is triggered for a second time. So approval is never retrigger since there is no difference.
    Appreciate any advice or help, thanks.

    Hi,
       I think this  BADI should work for PO also.Pls read the doc again and there you can see the scenario for  PO is also covered wherein the BAdI is called each time the shopping cart screen is opened and whenever a purchase order is ordered and held.
    For more information, also see the SAP Note 502952.
      But this will not work for BIDS/AUCTIONS.
    BR,
    Disha.
    Pls reward points for helpful answers.

  • PR triggering twice

    Dear All,
    Am creating a workflow for Purchase requisition. When the workflow is initiated the first level approving authority is getting 2 work items. When I trigger the event from SAP Menu u2013Tools u2013Business Workflowu2014Developmentu2014Utilitiesu2014Create Event (Business object-BUS2105, Event- RELEASESTEPCREATED ) then it is generating only one work item, but when I try through transactions ME51 and ME51N it is triggering twice. If you can share your knowledge about this issue it will be grateful for me.
    Regards,
    Surya

    Hello Athadu,
    line-item approval is done with business object type BUS2009. So BUS2105 is triggered on header level and -- usually -- only once after creating, and then after each release code has been set.
    I know of two possibilities, why you have two events coming up:
    - Check transaction SWEC for an entry BANF BO BUS2105 (on create) with event = RELEASESTEPCREATED and delete this entry.
    - You have more than one release code available and open at the same time. Check in the started workflow the container element "ReleaseCode".  To avoid or configure this, use the customizing "prerequesites" in the section of the release strategy.
    Best regards,
    Florin
    Edited by: Florin Wach on Jun 25, 2008 3:49 PM

  • Worflow triggering twice

    Hi guys,
    my workflow is triggering twice.
    why
    how can i resolve this issue.
    please give me suggestion.
    Thanks
    Sankar

    are these events triggered simultaneously?
    activate event trave and do a step by step change on the master data. This way you can find out if the event is triggering twice.
    Form your post I do gather that the event on FREBUS2012 is caused by some kind of custom programming (badi, or ecit or something like that)
    You can also try to simulate the event (I'm not on SAP at the moment so you have to search for this transaction yourself) if the event has only 1 receiver, you know that the problem isn't to be found in the event linkages.
    Kind regards, Rob Dielemans

  • BUS2012 Release Step Event triggered twice

    Hi Guys,
      When a PO is created the BO BUS2012 Release Step event is triggered twice.
    I am using a condition for my workflow based on the release code.
    What could be the problem.Kindly Clarify..
    Rgds,

    Hi,
      Actually I think the problem is with my Start Condition. I have given a start condition(SWB_COND) in my workflow is follows.
    Release code = A1 or Release code = A3.
    When i check the event log two times event is triggered with an exception and with the following information.
    1.Start condition returns 'FALSE' for object [BO,BUS2012,4500000131]
    2<b>.Operator 'EQ': The value of the left operand cannot be determined.</b>
    I think the second one is the problem. Any idea how to avoid it..
    Rgds,

  • Approval workflow triggers when not expected for SRM PO & without Agent ??

    Hi All,
    We are using SRM 5.0 integrated with SAP MM backends.
    We are frequently facing this problem, when a buyer  creates a PO (in SRM) within his/ her Spending (Output) Limit, the PO approval workflow triggers and is not able to find an agent.
    Although the workflow should not trigger as the PO value is below spend limit of the buyer......we are not able to understand this behaviour.
    In such cases, the buyer is not able to issue the POs, since the POs show 'Awaiting Approval' status.
    I can find such POs with SRM transaction SWI2_ADM1, but I can not do anything beyond that. I am not able to Forward or 'Complete Manually' such work-items.
    Any idea how this problem can be fixed or if there is any SAP note available for same.......anything??
    Has anyone faced this kind of problem before?? Please help.
    Thanks,
    Ruchika

    please check from the workflow log , the workflow which the system is starting.
    might be the system is able to start another workflow than the one which you are mentioning
    use the transaction swi6 for workflow log , use the purchase order guid

  • Approval Workflow triggers when not expected & without Agent ??

    Hi All,
    We are using SRM 5.0 integrated with SAP MM backends.
    We are frequently facing this problem, when a buyer creates a PO (in SRM) within his/ her Spending (Output) Limit, the PO approval workflow triggers and is not able to find an agent.
    Although the workflow should not trigger as the PO value is below spend limit of the buyer......we are not able to understand this behaviour.
    In such cases, the buyer is not able to issue the POs, since the POs show 'Awaiting Approval' status.
    I can find such POs with SRM transaction SWI2_ADM1, but I can not do anything beyond that. I am not able to Forward or 'Complete Manually' such work-items.
    Any idea how this problem can be fixed or if there is any SAP note available for same.......anything??
    Has anyone faced this kind of problem before?? Please help.
    Thanks,
    Ruchika

    Hi Ruchika,
    This seems to be a problem with the start condition of the PO approval workflow. Check for the same and see if there is any issue.
    Regards,
    Saumya

Maybe you are looking for