Terminating Event Getting triggered more than once

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.

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

Similar Messages

  • Events being triggered more than once

    HI All,
    I am using SAP Business One 2007 A SP:01 PL:07
    I have created a form using SAP Business One UI API Version 2007 A 8.0.When i open the form first time all item events and menu events are working properly..
    When i close the form and open it again all the menu and items events get fired twice.Again i close and reopen the form all Item and Menu events are triggered thrice on a single click.
    Any help to solve this problem will be highly appreciated.
    Warm Regards,
    Prerna

    Hello,
    Maybe You using a global variable for the form. Try to swicth to local variable and use sbo_application.form.GetForm(pval.formtypeex, pval.formtypeCount), or check you application really closes the window (window menü, and see the list of opened forms).
    Try to use EventSpy, which is a part of the SDN tools, you can download from /docs/DOC-8857#section6
    Regards,
    J

  • Ftp Adapter getting invoked more than once

    Hello All,
    I have an FTP polling on a remote server, the options that i chose are archive file after read. The problem is the bpel process is getting invoked more than once. If anyone encountered a similar problem, help is really appreciated.
    Thanks
    Krishna

    Hi Krishna,
    What release are you on? refer to metalink note: 730515.1
    In 10.1.3.4 MLR#7 this works:
    Add the below section within BPELProcess and replace the bits in upper case to suit your code:
        <activationAgents>
          <activationAgent className="oracle.tip.adapter.fw.agent.jca.JCAActivationAgent" partnerLink="PARNERLINKNAME">
            <property name="clusterGroupId">SOMEUNIQUEVALUE</property>
            <property name="portType">PARTNERLINK_PORTTYPE</property>
          </activationAgent>
        </activationAgents>regards,
    Shanmu
    http://www.prshanmu.com/articles/

  • Custom Events and Scheduling more than once

    Hi,
    in BO 4.1, I successfully triggered WebI Report instance generation by a "Custom Event" through scheduling.
    Now, we have the requirement that the report should not be triggered only once but always when the event is triggered.
    At first glance, this looks tricky bc. in order that the report "reacts" to the event, the report itself must be scheduled with the event (it gets an instance "pending" that "wait + reacts" to the event). So it looks like we need schedule the report always manually with "event" before it is ready to react to the event specified in the scheduling.
    Is there any user-friendly trick to make the report react upon every fired event without having to "schedule" the report manually with the event?
    (Similar to schedule daily, just that the event is the trigger, note a daytime...)
    Best Regards

    Hi Florian,
    What is the frequency set under Recurrence option for the report instance?
    Can you give an idea like after how much time the event can be triggered?
    For example, if you are expecting the event to change in an hour, you can schedule the recurrence as hourly or you can specify something like 0 hours and 15 minutes or something like that.
    In that case, once the event is fired, your report instance will be ready to trigger after 15 minutes for the next run.
    Would suggest you to sync with the BO administrator as concurrent triggering of large number of instances can give load on Job Servers.
    Hope it will help in some way.
    Regards,
    Yuvraj

  • Regarding activation job triggering more than once

    hi all,
    i have designed a process chain in which there are 5 info packages (same info source) loading into same ods.I have then clubbed these 5 info packages steps in one OR condition.however,there are multiple activations which are triggered i.e. as soon as one of the load is completed one activation job is triggering and similarly it happens with other loads also.
    this multiple triggering of activation causes subsequent processes in the chain to trigger multiple times which is not required.
    is there way that we can trigger this activation only once.
    Please note that OR condition is required and AND cannot be placed in its place.

    HI Parth,
    I think you cannot do away with AND.
    You will have to use it just when the 5 different process complete.
    I am not sure how did you make it but i would suggest to go like this:
    Loading1     
    Loading 2 
    Loading 3
    Loading 4          
    Loading 5
    Then you can have the Activation step. after the loading is completed.
    Do assign points if it helps.
    Do iterate your problem in more descriptive manner if this doesnt helps :).
    Regds,
    Den

  • Header Discount getting copied more than once

    Hi all,
          I have a problem in Quotations in CRM-PCUI. We have renamed the pricing tab as 'Header Discounts'. If we try to copy quotaion, the header discount gets copied as many times as the number of products present for the quotaion, but on clicking save button all header discounts sum up and get consolidated into one. I want to know whether this is Standard SAP bahaviour and how can we change it? We want only consolidated total header discount to appear when we click copy quotation, and not on clicking save button.
    I have assigned a Zclass to it and used some badis, but if i deactivate them and use standard class also, then also it behaves in the same way.
    Any suggestions in this regard are highly appreciated.
    Regads,
    Rohit Khetarpal

    Dear,
    Please check: How to rescrict the user to enter a manual condition type once in pricing
    Manul Condition type duplication control
    Regards,
    Syed Hussain.

  • How do I get my new Apple ID associated with an older MacBookPro so that I don't get charged more than once for a purchased app when I download it to the older computer recently upgraded to Snow Leopard?

    I recently upgraded my 2 year old MacBookPro to Snow Leopard so I could download Face Time and Final Cut ProX to it.
    I've already purchased the apps and installed on my iMAC and Macbook Air.
    After downloading Face Time I received the following mail;
    "Your Apple ID, *************, was just used to purchase FaceTime from the App Store on a computer or device that had not previously been associated with that Apple ID.
    If you made this purchase, you can disregard this email. This email was sent as a safeguard designed to protect you against unauthorised purchases.
    If you did not make this purchase, we recommend that you go to iforgot.apple.com to change your password, then see Apple ID: Tips for protecting the security of your account for further assistance.
    Regards,
    Apple"
    I don't want to be charged twice for these apps, especially Final Cut ProX, so how can I get the MacBookPro associated with the Apple ID I'm using now?
    Cheers

    This is probably a new precaution that Apple has taken to alert folks that something has occurred with their account that has not occurred before*, namely a Mac has downloaded something from their account that has not done so before. And as the notice says, if it was you doing so, then you may safely ignore the notice. Also, do not be alarmed, Apple refers to all downloads as purchases, even when they are free.
    But if you are truly concerned about the notice then you can authorize the Mac with your iTunes account, which should be the same as your MAS account. Open iTunes on the older Mac and sign into your account. Then in the Store menu choose Authorize This Computer. Now this Mac is definitely associated with your account and can now play media that you purchase from the iTunes Store as well.
    *My banks do the same thing when I pop up making a purchase with my bank cards somewhere in the world I have never made a purchase before. They call me and email me and want to know if it is indeed me using the card.

  • Prepared statement st in servlet - not executing more than once!

    Hi,
    my problem is that the following piece of code in a servlet does not get executed more than once:
    myQuery = "DELETE FROM MREMINDERS WHERE username=? AND reminders=?";
    PreparedStatement st = conn.prepareStatement(myQuery);
    st.setString(1,usern);
    st.setString(2,oldRem);
    st.executeUpdate();
    st.close();
    The above code is called in a servlet to delete fields from a table. I call this code in a for loop from another method in the servlet. It executes the first time in the loop, but the second time onwards it throws an error!!! please let me know how to solve this ASAP since i am at the point of frustration now!!!
    thanx...

    Hi,
    sorry... i got it fixed!!!! :-)
    i was closing a JDBC connection which was generating that error!!
    thanx again..

  • Statechart module: Using a master statechart to launch a slave statechart more than once without getting Error 1100 at Obtain Queue (No object of that name was found)

    Hello,
    I am trying to create a project using the statechart module, and one of the techniques I am trying to use is a "master-slave" statechart structure, illustrated by the code I have attached to this post (you probably need the statechart module installed to look at my example code).  The problem I have recently discovered is that the slave statecharts cannot be launched more than once without raising an Error 1100 at Obtain Queue.  I have gathered from a few other posts that the cause of this error is the fact that the First Call primitive is used by the Statechart module to initialize the statechart when it is first run.  This works fine for the first launch of the slave statechart, but the second launch and subsequent launches of the statechart fail on Error 1100, since the First Call primitive won't let the statechart initialize (the First Call primitive tells the statechart it has already been initialized (this isn't the first call), and the External Trigger function then tries to send an external trigger to a queue that doesn't exist).
    What I can't gather from those posts is the correction I need to make to get this design to work.  I tried to send the slave statecharts a boolean flag for the "Init?" terminal, to force a reinitializing of the slave statechart.  I couldn't get that to work.  I tried to not load the slave sub VI as a slave sub VI, and launch it using some VI Server code, so that maybe the slave sub VI would be loaded and unloaded, therefore causing the statechart to properly initialize, but I couldn't get that to work either.  What correction should I make?  How do I get this to work?
    I really want to use this design pattern, first of all since I wrote a lot of code already with this structure, and second of all, it makes a lot of sense to me.  How do I make it work?  If someone could post a version of my code that functions the same, but without the error, I would appreciate that.  If you don't have time for that, but would be able to outline the steps I need to take to get it to work, that would be helpful, as well.
    Thanks to anyone for any assistance they can provide.  If you need any other information, please let me know.
    Attachments:
    Statechart Sample.zip ‏431 KB

    Thanks, Deborah.  I tried this approach out, and it turns out you can't just wire a TRUE to the "Init?" terminal.  You have to wire a TRUE for the first run of the slave statechart, and then it has to become a FALSE.  If you wire a TRUE, it will constantly try to reset the statechart, which doesn't work.
    The master statechart has to keep track of whether it has called the slave statechart, and communicate that to the slave statechart.  On the very first call of the slave statechart, the "First Call?" function inside of the "Run Statechart" function will give a TRUE, which initializes the statechart properly, and then gives a FALSE from that point after.  After that, the "First Call?" function doesn't work anymore (it will always return FALSE), and an initial TRUE, with subsequent FALSE values, has to be provided manually.
    I attached a version that does this, which appears to work.  Let me know if it doesn't work for someone, or if you have a better idea to implement the correction.
    Thanks to everyone for the replies!
    Attachments:
    Master-Slave Statechart Sample.zip ‏439 KB

  • Getting the same text more than once

    I keep getting the same numerous texts more than once from my friends and one of my friends even said that they were getting my texts out of order. Is it my phone or the network?

    It's easy to burn another copy of a DVD if you have already burnt a copy of it before. Just click the "Format" icon in the toolbar. It will pop up with a window with some options. You shouldn't have to change any of these options, just make sure that the Output Device is set to your DVD drive, which it should be set to by default. Just click the "Burn" button, pop in a DVD, and you're good to go.
    If you've made a few changes to the DVD, you can use the "Build/Format" button in the toolbar. It will pop up with a window similar to that of the Format window. Click "Build & Burn." It will tell you that a VIDEO_TS directory already exists, and it can reuse as much of it as possible. You can then click "Reuse" to build the new portions of the DVD, and then it will burn it on a DVD.
    Hope this helps.

  • QuickTime DOM Events called more than once?

    I am in the process of writing code in JavaScript that will track the interaction on a embedded QuickTime video.
    function ew_addImage(v) {
    trackImg=new Image(1,1);
    trackImg.src=v;
    function ew_pauseTrk() {
    var imgStr='http://www.sldkfjsldfjk.com/200125/EWTRACKNEW_VINT?ewadid=751801&ewbust='ewbust'&eid=1078554&file=$VIDEO$&bw=56&vlen=3:00&vint=PAUSED';
    ew_addImage(imgStr);
    if (document.addEventListener)
    document.getElementById("mov1").addEventListener("qt_pause", ew_pauseTrk, false);
    Everything works correctly. I am able to see the image being called when I am looking at Wireshark. The problem is when I click pause more than once.. It seems like the QuickTime DOM Events can only be called once.. Is that true?
    Thanks

    -(void) flipToEditView {
    [self populateTheList]; // populate an array
    EditViewController *anEditVC = [[EditViewController alloc] initWithNibName:@"EditView" bundle:nil];
    [self setEditVC:anEditVC];
    [viewController.view removeFromSuperview];
    [self.window addSubview:[editVC view]];
    [anEditVC release]; }
    }<---- is this } matched elsewhere?

  • How do I get itunes to not list the same artist more than once?

    How do I get ituens to not list the same artist more than once?  I have tried editing the info, sorting different ways and sometimes it works and sometimes not...it's very frustrating to me to have the same artist listed multiple times...

    Setting a common Album Artist for each Album does most of the work. For deeper problems see Grouping tracks into albums.
    In general you need to make sure that all the values in the tags are used consistently. Same spelling, same capitalization, same accents, no leading, trailing, or multiple spaces, and each value of Artist, Album Artist or Album should only be associated with one value of Sort Artist, Sort Album Artist or Sort Album respectively.
    tt2

  • Triggering workflow more than once during wait hrs

    Dear All,
    We have implemented two Z (ZAPFI_INV, & ZFI_INV_PARK) workflows for FI
    park invoice. ZFI_INV_PARK is the query workflow and ZAPFI_INV is the
    approval workflow.
    Both workflow start with checking whether if image (i.e. FI invoice) is
    attached with the document or not. If the image is not attached, the
    workflow will wait 3 hrs for the image attachment. If the image gets
    attached within 3 hrs, workflow will move further for approval or query
    process.
    But if the same document is "parked" or "save-as-completed" more than
    once within the waiting time frame of 3 hrs, then more than one
    workflow process starts & resulting same WI more than once in the useru2019s inbox.
    Kindy advice.

    Is it possible to put the Validation at Application Level (rather that doing changes in Workflows as they are working correctly)?
    May be you can log the Invoices in ZTABLE when they are parked and Flag them as marked once processing is complete.
    Regards
    Shital

  • Document contains some order item more than once - invoice verification

    Hi,
    we have one cross company stock transfer process in which when a billing is created in SD side, an IDOC will be triggered automatically and create an invoice verification at the MM side.
    The problem is some of our billing of this process having an IDOC application error that said.
    Document contains same order item more than once
    Message no. M8321
    Diagnosis
    Under the following circumstances, you can settle an order item in an invoice received via EDI more than once:
    - Goods-receipt-based Invoice Verification has been defined for the order item.
    - The IDoc contains the delivery note numbers of the goods receipts.
    System Response
    If this is not the case, the system cancels posting of the IDoc.
    Question:
    1 - The funny thing is IDOC showing 51 IDOC error code message on status record of INVOIC. But the invoice verfication get created in PO history.
    2 - I think this error is because we need to make the PO as GR-based Inverifcation. We have flagged it in Vendor master, and Info record, but this indicator is not flag automatically in the PO (and we cannot manually change the PO as this indicator is grey-out). How?
    3 - how to solve this error?
    Thanks

    Once PO history is created, you cannot change the "GR-based-IV" flag. Two options are there before you.
    1. Cancel all the GRs & Invoices posted in the STO then system will allow you to update the GR-based-IV flag. After updating this flag repost the GRs and invoices.
    2. Create a new STO, now since you have updated the vendor maser & info-record, this flag will automatically get updated during the STO creation itself.
    First option is tedious and should be selected only if you can go option 2 is not at all feasible

  • Calling thread.start() more than once concurrently

    Hi, I got a simple doubt that may feel awkward or absurd to people who are well versed in the java threading concepts. I just thought of it and as I couldn't get an easy answer I am posting this.
    Consider a class that implements the runnable interface. The run() method of the class is implemented with just a System.out.println(). If I make an instance of this class, say 't' in the main method and calling t.start() susequently twice or thrice; an illegal ThreadStateException will be thrown. The code snippet is as follows:
    ThreadTest t = new ThreadTest();
    t.start();
    t.start();
    It is understood that state of the thread object is changed to run state and so, if it is again started, it must be thrown. So if I put a Thread.sleep() inbetween these two subsequent calls assuming that the main method thread will be sleeping. So there is sufficient time for the first thread to terminate and then only the second will start - still the same exception is being thrown. I tried putting the synchronized qualifier for run too, still no effect - the same only happening. Why the java thread object is made in such a way that once the thread changes it state from Runnable to Running and then finally to dead state, it can be restated back to Runnable state, such that the start() method can be called again. Is it possible or not? Please post your comments.

    As ejp says you can't start a thread more than once - even if it has already terminated after the first start.
    By making threads a one-shot it simplifies reasoning about them: you don't have to wonder whether a second start() will work or not, depending on whether the thread has completed its first "incarnation". It also makes it easier to ensure thread resources are reclaimed. It also avoids semantic issues like whether anything about the thread is "carried over" across incarnations.
    This might seem a limitation but there are many ways around it - simply don't let the thread terminate. Whatever control structure you would enforce by re-starting the thread can be emulated without letting the thread terminate in between "executions".

Maybe you are looking for