To avoid triggering of same workflow twice on parking.

Hi everyone,
I am currently developing a WF which will be triggered through the 'PARKED' event of BUS2081 i.e through MIRO transaction . Now going ahead in the workflow the user will park the same document again the workflow should not get triggered at this point.
I am aware that I can create a Z table to store the Workitem Id and the document number and do the checks then.
I am currently looking to achieve this without the need for a Z table.Does any table exist which stores the object-key and the WF id combination?
Alternately please suggest ways.
Please help.
Thanks and Regards,
Soumya
<i>
I shall reward points to every helpful answer.</i>

You can use table SWWWIHEAD which stores all relevant data.
Now you can also use Function Module  "SAP_WAPI_WORKITEMS_TO_OBJECT". In this Function Module you need to pass the Business Object and the Key field. If the Workflist table parameter is not empty that means a workflow instance is in progress and hence you can use this feature as an attribute in your Business object and set the Attribute value accordingly. Now you can use this attribute value in the start Condition of the Workflow(SWB_COND).
<b>Reward points if useful</b>
Thanks
Arghadip

Similar Messages

  • How to avoid triggering of a workflow multiple times at the same time?

    Hello Workflow Gurus,
      This is the situation.
    I have a Notify requisition creator workflow. This workflow is triggered only when a PO is completely released(this Po is created with respect to a purchase req). I have implemented multiple release strategy in my PO workflow. Meaning, if a PO is created for 5 million, 4 entries are created in the release strategy(P0, P2, P3 and P4). Some approvers have authorization to approve P0 and some have authorization to release P2 etc. Before an approver can release P4, P0, P2 and P3 shuould be approved first.
    My problem is when a approver has auth to release both P3 and P4, and if he hits the SAVE button, it is completely released and  2 notify req workflows are being triggered. I use the release indicator = 'C' (completely released) to trigger thos notify req creator workflow. In this case both workflows are triggered at the same time and date. I somehow have to say if this is triggered at the same date and time, complete one workflow.
    BTW, I am not using any user exit to trigger this. This notify req creator WF is triggering event is "RELEASED'. When pO is completely released, 'RELEASED' event gets triggered which caused the notify req creator WF trigger.
    How can I accomplish this?
    Thanks
    Rachana

    Hi Rachana,
    Another way you could acheive this is to use start conditions for your workflow. You could specify that your workflow should get triggered only for release codes = XX or release strategy = XX, etc.. This way even after 1 stage of approval, when the approver clicks on SAVE, the release codes change and because there is start conditions in the workflow that would prevent another instance of the workflow from getting triggered.
    For example, in your case, I presume PO, P1, P2, etc are your release codes.
    You can have a start condition in your workflow wherein you specify that the workflow should get only triggered for release code = P2 [assuming release code P2 is always the 1st stage of approval]. So, once the approver for P2 has completed and Saved, since there is a start condition, there wouldnt be any other workflow instance started. By this way, any stages of approval wouldnt cause another workflow to initiate.
    Hope this is what you have been looking for ?
    Satish

  • Workflow sends the same email twice

    I created in Sharepoint Designer a workflow to send an email when a new item is created, but i recieve the same mail twice at the same time. Can somebody help me?
    workflow:
    email Lukas Kuypers
    then add 30 days to today (save in variable datum)
    then pause to variable datum
    then delete current item
    then stop workflow

    Hi,
    Per my understanding, a custom SharePoint Designer workflow send an email twice when there is only one send email action in it.
    A possible reason is that the workflow has been triggered twice. Sometimes, due to the performance issue of the SharePoint Server, even after a workflow instance is
    finished, the item submitting is still during processing which triggers another workflow instance and send the second email again.
    As a workaround, you can add one step at the end of your workflow to pause the workflow for a few minutes for a test.
    A link about the similar issue with explanation in details for your reference:
    https://sharepointnomad.wordpress.com/tag/duplicate-notifications/
    Feel free to reply if there is any progress.
    Thanks 
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • [svn:fx-trunk] 11483: Adding a LRU cache for the transcoding results of a CFF based DefineFont4 tag to avoid transcoding the same font description twice .

    Revision: 11483
    Author:   [email protected]
    Date:     2009-11-05 16:01:37 -0800 (Thu, 05 Nov 2009)
    Log Message:
    Adding a LRU cache for the transcoding results of a CFF based DefineFont4 tag to avoid transcoding the same font description twice.
    Also we now throw a better error when CFFFontManager is asked to embed a local font by name as this is not yet supported.
    QE notes: Please test that the same font embedded twice does not take twice as long as a single embedding.
    Doc notes: N/A
    Bugs:
    SDK-23966 - Compiler should generate a warning or error when embedAsCFF is true and src:local is used for font embedding
    SDK-23806 - OEM compiler appears to transcode embedded fonts twice
    SDK-23788 - Search fonts recursively
    Reviewer: Paul
    Tests run: Checkintests, bug test cases
    Is noteworthy for integration: Yes
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-23966
        http://bugs.adobe.com/jira/browse/SDK-23806
        http://bugs.adobe.com/jira/browse/SDK-23788
    Modified Paths:
        flex/sdk/trunk/lib/flex-fontkit.jar
        flex/sdk/trunk/modules/swfutils/src/java/flash/fonts/FontDescription.java
        flex/sdk/trunk/modules/swfutils/src/java/flash/swf/tags/DefineFont4.java

  • I want to buy Production Premium CS6, but I already own Flash Professional.  Is there a way I can avoid paying for the same product twice?

    I have a feeling I already know the answer to this question, but I figured it was worth asking anyway.
    Just under a year ago, I purchased Flash Professional CS6 for school.  Now that I am expanding my practices, I am interested in purchasing the Production Premium bundle of programs.  However, it already comes with Flash CS6, and if I can avoid paying for the same product twice, I'd like to do so.
    Is it possible for me to either get some kind of discount on the suite since I already own one of the programs?

    I have a feeling I already know the answer to this question, but I figured it was worth asking anyway.
    Just under a year ago, I purchased Flash Professional CS6 for school.  Now that I am expanding my practices, I am interested in purchasing the Production Premium bundle of programs.  However, it already comes with Flash CS6, and if I can avoid paying for the same product twice, I'd like to do so.
    Is it possible for me to either get some kind of discount on the suite since I already own one of the programs?

  • Avoid Math.random() from looping the same number twice?

    I'm trying to play a random gallary image by making it stops at different frame every few seconds, and the actions is completely random.
    The problem is, since there are only 5 different images(5 frames) I'm displaying, there is a high probability that it stays at the same frame, how do I avoid that? Like avoid staying at the same page twice, if not run the function again....?
    setInterval(createItems,throwItems);
    var RandomImg:randomImg =new randomImg();
    RandomImg.y=100;
    RandomImg.x=180;
    RandomImg.gotoAndStop(Math.floor(Math.random()*(1+5-1))+1);//generate random value between 1-5
    addChild(RandomImg);
    Thanks

    How do I keep track of the random value, like what value should I put within the if to compare?
    I try modify it a little, and wrap it within an if(), and use preValue to track down the previous frame, am I doing it right?
    setInterval(createItems,throwItems);
    var preValue:Number;
    function createItems():void
         var RandomImg:randomImg =new randomImg();
         var randomFrame= Math.floor(Math.random()*(1+5-1))+1; //generate random value between 1-5
         RandomImg.y=100;
         RandomImg.x=180;
         RandomImg.gotoAndStop(randomFrame);
         if(preValue == randomFrame)
              RandomImg.gotoAndStop(Math.floor(Math.random()*(1+5-1))+1);
              addChild(RandomImg);
              preValue = randomFrame;
         }else
                        addChild(RandomImg);
                        preValue = randomFrame;

  • How to write two triggers on same table how it works?

    Hello sir..
    I have to write two triggers on same table for auditing different columns of different pages (may be different modules).
    I will have an audit table in which i will insert data such as (user_id,module_id,column_name,old_col_val,new_col_ val,timestamp)
    Now different users from different pages will update the data on same table may be same columns!
    If we write directly, we will not be able to know which column is updated from different pages.
    My question is how can we control the triggers to raise based on the pages

    A trigger is executed whenever the table is inserted / updated / deleted (depend on trigger definition). It won't know what 'page' caused the operation. You can prepare a trigger for one page.
    In order to fulfill your need, you need some way to tell the trigger where you are. There are many ways to accomplish this. Some possible methods are (please check the documents for detail)
    DBMS_SESSION.SET_IDENTIFIER
    DBMS_APPLICATION_INFO.SET_MODULEFor example, you can call DBMS_SESSION.SET_IDENTIFIER to set an ID from your page, and then call sys_context to read the ID back:
    In Page:
    exec dbms_session.set_identifier('Page1');
    ...In Trigger
    pageid  := sys_context('USERENV', 'CLIENT_IDENTIFIER') ;
    ...Note that if you use a connection pool, you may need to properly reset the session information before return, in order to avoid messing up the session information when the connection is used next time.

  • Regarding triggering of TRIP workflow.....................

    hi friends,
    we have implemented ESS for employee subgroup "executive and above"  in our compnay no doubt whenever the user creating trip request through ESS my trip customized trip workflow is getting triggered.
    but for workers when ever my travel administrator creating trip request through TC-TRIP then in this scenario the workflow is also getting triggered.
    means i want to know how can we restrict that when ever trip request is creating through TC - TRIP the workflow must not be triggered it should triggere if and only the trip request creating through ESS only

    Hi Rajat
      This cannot be achieved. Since tirgger event travelreqeuset event calls in both the cases. You cannot avoid triggering whenever the travelrequested from the t-code. One way you can try, in the triggering the event check wheather sy-tcode is trip in that case exit the workflow in your design else continue. Write to logic to get the t-code data in your attribute .
    Regards
    vijay

  • Relationship between the workflows what have been triggered frm parent workflow using container step

    Hi All,
    There is a scenario in CQ5.5 where "Workflow A" has container step to initiate another "Workflow B" from it. Now the requirement is to identity the Workflow A's instance ID in "Workflow B".
    Being quite unable to find any relationship between the workflows what have been triggered from parent workflow using container step.
    Could any one share the pointers for the same?
    Thanks in advanced.
    Regards,
    Saurav Jain
    7428081341

    Please do not keep reposting this.
    Those of us that answer questions here are volunteers ... not paid Oracle employees.
    If no one answered your question to your satisfaction it is either because they choose not to, don't know the answer, or because lacking a version number no one knows to what version you are referring.
    My recommendation is that you go to http://asktom.oracle.com where you will find extremely good explanations of cursor sharing.
    Thank you.

  • How do I use the same photo twice in a slideshow created in iPhoto'11?

    I created a slideshow in iPhoto'11 and would like to use the first slide also as the last slide.
    How can I use the same photo twice?

    Seems you have to duplicate the photo in your Library to add the same picture twice.

  • How can I retrieve the same figure twice in report?

    Hi guys,
    If we have the same selection twice in the same report, it only retrieves the figure once (see example below, were the same period has been chosen twice). Is there any setting I can adjust, so it will retrieve the figures for double-selected members also?
    Thanks,
    Dorthe

    Hi Dorthe,
    No issues in my system (BW 7.3, BPC SP12, EPM SP16 patch1):
    B.R. Vadim

  • HT204053 my wife and i have seperate itunes accounts is there a way we can link our accounts to share songs so we dont have to pay for the same song twice?

    When the first ipad came out i set it up and created an itunes account, since then she got an iphone and an ipad and everything was good. I had an android but wanted to try out the iphone. When i set it up ut jumpled all of our contacts, apps, and everythin. it was a mess.
         Since, i purchased and ipad 2 and an iphone and to keep our stuff from combing i used a different computer and created an new apple ID for myself so our info wouldnt combine, I was wondering if i did the right thing or if i should have went about it a different way. I was going to see if there was a way when she purchased a song i could get it. I dont want to pay for the same song twice and only want to share songs. If i cant do this can i copy her library and paste it into my itunes??
    Any help wouldl be greatly apprecieated we both have icloud set up but i cant figure out the best solution.

    Welcome to the world of digital media. Your can't really transfer it. I don't know what the rules are about transferring to your spouse but I do know that in some cases when you die, your heirs cannot inherit your digital media. This is why there is still an advantage to buying the CD since the usage rights belong to whomever holds the physical media.
    A possible workaround is to burn the songs to a music CD with yout account (tracks only without song titles) and then having your wife upload it as a regular music CD onto her account. It's been a while since i've done this so I'm not sure if it would work now.
    Please note that I'm not advocating copyright and/or TOS violations. I'm only suggesting ways to copy music for your own personal use which has traditonally been permitted. I only did this because I wanted to convert iTunes songs to mp3 files so I could burn them onto a data CD for use in my car. It would make sense that since married couples are a joint entity, this would be personal use.
    Also, I'm not a lawyer so don't take this as legal advice.

  • I keep getting calls from non existing area codes and phone numbers.  They are never the same number twice.  How do I stop this?

    About a week ago I started getting phone calls on my cell phone from numbers that do not exist, including the area codes.  I can not report these to the Do Not Call list because the area code is non existent.  I'm getting these calls all the time now and never from the same number twice so there's no point in blocking them.  If I answer I may or may not get a person who has an accent from India so heavy that I can't understand what they are saying.  This is getting to the point where I just want to cry I'm so frustrated.  Anyone else having this issue or does anyone know how to stop it?
    Thank you

    I'm sorry that you are having all these troubles. I have sent you a private message.
    Anthony_VZ
    **If someones post has helped you, please acknowledge their assistance by clicking the red thumbs up button to give them Kudos. If you are the original poster and any response gave you your answer, please mark the post that had the answer as the solution**
    Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or plan

  • Hi. I purchased a new ipad mini and my brother already has iphone 4,so how can i avoid sharing the same contents that are on his phone? Will creating an other apple id help us in seperating our facetime and icloud accounts as we share our laptop to sync ?

    Hi. I purchased a new ipad mini and my brother already has iphone 4,so how can i avoid sharing the same contents that are on his phone? Will creating an other apple id help us in seperating our facetime and icloud accounts as we share our laptop to sync ?

    Have a read here...
    https://discussions.apple.com/message/18409815?ac_cid=ha
    And See Here...
    How to Use Multiple iDevices with One Computer

  • Can I use the same SSI twice in same page?

    Hey all,
    i'm having a problem whereby several SSI's are not showing on my page.
    I'm wondering if it's because the instances that are not showing are the ones called the second time round.
    Before i start posting code etc, i just wondered if it was actually not possible to call the same SSi more than one time on a page.
    I can't seem to find documentation stating this anywhere.
    Thanks in advance,
    Katrina
    Edit 1: I tested using a new unique SSI (i.e. one that wasn't called anywhere else on teh page, and it doesn't show either... so I've started a new thread where i post my code here: http://forums.adobe.com/message/5345250#5345250
    Edit 2: I guess i didn't test properly initially. It seems it is NOT possible to use the same SSI twice on a page...   What a bummer!!!

    This issue was resolved in a different thread where s member supplied the following information...
    t's certainly possible depending on the PHP command which you use as the include directive.
    <?php require_once('includes/include-address.php'); ?> will only include the file once
    <?php require('includes/include-address.php'); ?>  will include the file more than once
    <?php include('includes/include-address.php'); ?>  will include the file more than once
    Each has its own rules and quirks.
    http://php.net/manual/en/function.require-once.php
    http://www.php.net/manual/en/function.include.php
    http://www.w3schools.com/php/php_includes.asp

Maybe you are looking for

  • How to change default Icon in Java form

    Ian writing small GUI test applications. How can I change the image in the header bar of the form such that at run t ime I see a customised icoon (or image)

  • IPhoto is in use by other app or unreadable

    I have my iPhoto app and the library on an external HD. I got an error saying that the disk was improperly ejected( I didn't do anything) When I tried to re-open the app I get the message that my photo library is either in use by another app or has b

  • HT1551 Apple TV and Netflix

    When trying to watch Netflix episodes I keep getting this message:  "An error occured loading this content. Try again later."  My updates are up to date.

  • Item number is invalid (INV_ICOI_INVALID_ITEM_NUMBER)error in Item Import

    We recieve a warning in item import saying the item code is invalid in MTL_SYSTEM_ITEMS_INTERFACE. Process flag for these items in MTL_SYSTEM_ITEMS_INTERFACE is 4, process flag for these items in mtl_item_catogries_interface is 3, in mtl_interface_er

  • What to do to back Clear private data and other things I loose?

    It has about 15 days ago, it appear window Firefox on my desktop, to download 3.6.13 version. Inside this window wrote "URGENT" in yellow color, and attention, "computer online attack". When I finish to install this Firefox, I saw that I loose Clear