Multiple events triggered in BUS1001006

Hey Workflow guru's,
I have a scenario where once the basic views are created for a material in MM01, two work-items are sent to create the Classification and Sales views for that material.
I have delegated a Z business object from BUS1001006 and using the method CREATE to maintain the views.
Now my problem is that once the basic views are created multiple workitems are being sent to the inbox i.e. instead of two work-items (one for Classification and one for Sales, there are two for Classification and two for Sales - identical)
I have checked in SWEL and it displays identical line items with the object key in receiver data differing by 1.
Appreciate any help!!!
Thanks

Hi Kedar,
In SWEL under the Event Data tab the object key is the Material number ... which is identical in the two events raised. But, under the Receiver data tab the object key is the work item ID. This is the one which differs by one.
For ex: when i created a material number 10000336, it created two events. In both the events under the Event Data tab, the object id is the material number which is the same. But, under the Receiver data tab, the object id in the first event is 7647 and in the Receiver data tab the object id for the second event is 7648. This i believe is the work-item ID and this is the one that differs.

Similar Messages

  • Multiple events triggered by one modification

    Hello,
    I'm trying to trigger multiple events with the modification of a single user field. In Lookup.USR_PROCESS_TRIGGERS, I've defined the same field twice and associated them with two different events. My lookup looks something like :
    Code Key
    Decode
    USR_FIRST_NAME
    Change First Name
    USR_FIRST_NAME
    Change Full Name
    This works perfectly, but it seems that the duplicate Code Key randomly disappear after some time leaving me with a single entry for USR_FIRST_NAME. Is this normal? Is there another way to make a single field trigger 2 events?
    Thanks,
    --jtellier

    You're doing it wrong.  You should not have duplicate code keys.  Here is what you can do though.
    Code Key = USR_FIRST_NAME Decode = Change First Name
    Now on your process definition, as long as the task starts with "Change First Name" you can add as many instances as you want.  You can create the following tasks and they will all trigger:
    Change First Name
    Change First Name - Full Name
    Change First Name - Display Name
    Change First Name - Email Address
    Just the first part matters.
    -Kevin

  • Multiple Events & Triggering of Workflow

    Dear All,
    I have a requirement in which -
    1) A workflow should trigger on two events i.e. 2 different tcodes, it is possible for a single workflow triggering from 2 events ?? if yes, kindly explain.
    2) The workflow should trigger on a particular date given in the tcode, like order completion date i.e. i should program the workflow for advance. How ??
    3) There is a requirement of sending mails to the respective persons in the organisation, these email-ids are stored in a z-table, how to achieve this ?
    Any assistance provided to clarify the above issues will be really grateful.
    Thanks,
    Saurabh Chauhan.

    Hello,
    1.You can trigger a workflow from two different events. In the triggering events tab of the workflow template, just specify the other triggering event as a new entry in the second line. Take care of the binding. If the events are from two different business objects, then you need to create two different workflow containers and bind them accordingly in the Event - > Workflow binding.
    2.In workflow you have conept called the start condition. If the condition is satisfied, then only the workflow will advance. What you have to do is in the business object that you use in designing the workflow, create an attribute which retrieves the date. In the screen of workflow builder, go to the basic data(ctrl+F8)...instance independent and the tab ....start events....select the event for which the condition is to be designed...click on the box beside the binding. it will show you the condition creator...compare the attribute that you have created with the required value.
    3.You can get the values in two ways...one to create an attribute and get the values from the ZTABLE, then use the same in the SENDMAIL step of the workflow. The second one would be create a mehod in which the coding to get the users from the table is executed and the list of users are exported from the method to the workflow template. You have the facility to create an element fo multiline. Use it.
    Hope this will help.
    Regards,
    Sam

  • Event triggered for checkbox in cl_gui_alv_grid

    Hi All ,
    I have a requirement like ,i give PO number on selection-screen.After execution, the items should be displayed on second screen ,which has some options on the top like before GR or after GR .(custom screen designed with cl_gui_alv_grid for display)
    I desgined checkboxes for each row of the line item.user can click on multiple rows and click on EXECUTE button on the screen.After that smartform should trigger and print .
    Now my query is how to capture the checkboxes which the user has entered (thru cl_gui_alv_grid) . Is there any event that gets triggered upon clicking the checkboxes?? I need the data of the corresponding row to process further .User can click on multiple items.
    Please respond
    Thanks

    Hi Hemanth
    You should have a field in your internal table matching the checkbox column in ALV.
    Call method CHECK_CHANGED_DATA of CL_GUI_ALV_GRID on user command for execute button,
    it will set the field  = 'X' for ticked lines in your internal table.
    Then use a loop on your internal table and find selected lines.
    You don't need an event triggered when user clicks.
    Edited by: Bulent Balci on Aug 3, 2010 4:42 PM

  • Multiple event receivers with a list

    Hi All,
    If there are two item event receivers attached with a list and event is cancelled by event receiver that trigger first, will second event receiver be invoked? As per my understanding that second event receiver will not be invoked.
    I have a requirement where in case first event receiver cancel the event, second event recever should still be invoked.
    do anyone has any idea aroound it?
    Regards Amit

    Hi, Amit KM.
    http://msdn.microsoft.com/en-us/library/gg749858.aspx
    Notice the following details:
    Synchronous event receivers are called in sequential order based on the sequence number specified during event binding. This applies to both Before and After synchronous events.
    Asynchronous After event receiver threads are initiated in sequential order based on the sequence number. However, there is no guarantee that they will finish in that same order.
    An asynchronous After event can start at any time after its associated user action is performed. It may start before, at the same time as, or after the Web request is completed.
    After a user initiates an action in the SharePoint user interface, and before SharePoint Foundation executes the user action, the synchronous Before events are raised. If there are multiple synchronous Before events, they are raised in the order specified
    by their sequence number. Similarly, synchronous After events are raised after SharePoint Foundation executes the user action. These, too, are raised in the order specified by sequence number. As you can see, all synchronous events are processed in the same
    thread as that in which the user action occurs.
    Asynchronous After events, however, are processed on secondary threads.
    So you're completely right that if the first event receiver has cancelled the operation, the second event receiver will never been executed.
    In your case if you want second event receiver(B) to be invoked regardless of the first event receivers'
    (A) result you can easily swap the sequence numbers for those event receivers.
    Event Receiver Sequence          
    The event receiver sequence specifies the order in which an event receiver is executed in cases where an event triggers multiple event receivers. For example, if you have two
    ItemAdded event receivers bound to the same list (one from Assembly "1" and the other from Assembly "2"), the event receiver that is bound with a lower sequence number is executed first. A practical example is adding an event receiver to a
    system list that already has a system event receiver bound to it. In that case, you assign the new event receiver a higher sequence number.
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Receivers ListUrl="Lists/Tasks">
    <Receiver>
    <Assembly>MyReceiverAssembly, Version=1.0.0.0, Culture=Neutral,
    PublicKeyToken=12e5e5525fb3d28a</Assembly>
    <Class>MyReceiverAssembly.MyReceiverClass</Class>
    <Type>ItemAdded</Type>
    <Name>My ItemAdded Event Receiver</Name>
    <Synchronization>Synchronous</Synchronization>
    <SequenceNumber>1000</SequenceNumber>
    </Receiver>
    </Receivers>
    </Elements>
    LinkedIn Profile
    SharePoint Advanced Visibility Options project
    SharePoint Managed Metadata Claims Provider project

  • Multiple event structures in one VI

    I have two event structures in a single VI, one that handles events that freeze the user interface and one for events that don't. The latter group are all triggered acquisition tasks, where you arm the  data acquisition, but possibly might want to abort it (or do other things, while waiting for the data to come. Obviously you need a stop button to be active and responsive. In retrospect, using two loops was possibly a poor choice, but one I made because it never occured to me that these things would only fire once and have to be put in a while loop to be kept active. No other language does that as far as I know. Anyway, the question is how do I keep both active? Do I enclose both in a single while loop? Do I give each there own while loop. Do I give up and merge the two event structures into one. For clarity I would like to keep them seperate, but that is not essential. I'ld like to know what my options are.
    Solved!
    Go to Solution.

    rossu wrote:
    If they are in sperate while loops will they both run. If they are in one loop will the loop recycle if one structue is still waiting for an event to occur?
    The answer to this is fundamental to how LabVIEW works. A loop will not proceed to the next cycle until everything inside it completes. If you have two event structures in the same loop, both of them need to process an event (or a timeout) before the loop will iterate.
    You can have multiple event structures in the same VI.
    By "freeze the UI," do you mean the "Lock front panel..." checkbox in the event dialog? There is no problem with having some events that do lock the front panel and some that do not in the same event structure. I'm not sure that this is what you mean by "freezing" the UI, though.
    EDIT: and one more comment. Generally you should not put long-running tasks (like data acquisition) inside an event structure. Instead, the event case should pass those tasks off to a separate loop (for example using a queue) so that the event structure can quickly go back to listening for other events.

  • Event Structure: Multiple Events ??

    All
    I have a project where I have an event structure handling about 10 individual events. Would it be possible to fire multiple events at the same time ? For instance, if my event 3 is triggered and the corresponding process is running, can I trigger an event 7 to have it's process running ?
    Kudos always welcome for helpful posts

    Edit your event and make sure to uncheck "Lock front panel until the event case for this event completes", else you won't be able to do much.
    Attached is a simple example using two event structures. (All that said, maybe there is a better solution than using two events, just re-think your code).
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    2events.vi ‏42 KB

  • VMware Performance Event Triggers use case questions.

    1) Can the CPO VMware Adapter Performance Event Triggers and their
    SAMPLE SIZE, INTERVAL, and CONDITIONS attributes be configured
    for the following use case?
    2) Can VMWare Performance Event Triggers be CORRELATED?  and if so would it be needed to satisfy the use case?
    3) Would an additional performance monitoring tool be required to satisy the use case?:
    If a VM CPU or RAM has been 80% for 2 hours then trigger a workflow
    and
    If a VM CPU or RAM has been at 60% for X days then trigger a workflow

    I will first describe how you could instrument a correlation method, but ultimately, I'm not sure it is really necessary for the uses cases described.
    To correlate VMware performance events over a designated timeframe, you would create a correlation process that tracks the underlying performance event and decides whether or not to trigger the process you want triggered when the correlated event is detected.
    Here's how it works.
    First, create a global table with three columns:
    1) Virtual Machine path
    2) Consecutive Trigger Count
    3) Last Trigger time
    Create a process that is triggered by a VMware performance event (such as Memory Avg > 80%) where you can set a sample size and interval that makes sense given the timeframe of interest (2 hours or X days). For example, a sample size of 10 and interval of 30 seconds (5 minutes) is a reasonable time slice from vCenter for a 2 hour timeframe. This results in requiring 24 consecutive triggers to raise the actual event of interest. (2 hours divided by 5 minutes)
    That is, the formula is:
    Sample Size * Interval / Timeframe = Consecutive Trigger Count
    The correlation process triggered by the raw VMware event does the following:
    1) If there is no existing entry in the global table for the VM, add entry to table with count = 1 and current time
    2) if entry exists, check the current time against the last trigger time
       a) if it is the next interval, for example, current time is 12:15 and last triggered time was 12:10 (see note below),
            Increment counter and set last trigger time 
            If count = 24, then run the process that handles the "VM Memory Avg > 80% for at least 2 hours " and delete entry from table.
           If count < 24, the process exits having only incremented the counter and set the last trigger time
       b) if the current time is > than last trigger time + time slice (+ a little padding), set the counter back to 1
    Note: When comparing current time w/last time, you should pad to account for slight processing delays so compare current-time < last-time+(time slice*2). Anything less than 10 minutes in this case would be considered a consecutive trigger. You could also compare current-time < last-time+time-slice+1, which is probably also safe.
    Now, having gone through all that, you may not need the correlation process after all. Simply adjust your sample size to be large enough to accommodate your ultimate timeframe and you can trigger your event handler directly without the need to correlate. So for the 2 hour window, just create a sample size of 240 (* 30 seconds = 2 hours). This may or may not work depending on how performance metrics have been configured on the server (sample size, intervals and how much is saved). You can only set your own sample and intervals to multiples of those configured values (so be careful and refer to the VMware documentation when relying on such metrics)
    You may find that the correlation method I first described is more reliable, especially for longer timeframes such as X days (where you need to sample hourly rather than every 5 minutes).
    In any case, I think you can do what is asked without external monitoring, but it will require some experimentation and a deeper knowledge of how performance metric sampling works for ESX.

  • How do I select multiple events in iCal 8.0?

    In OSX Mavericks, I used to be able to select multiple events in iCal in the event list view. I could select the initial event in the span of events to be selected. Then hold Shift while selecting the final even in the span of events. As a result, all of the events in that span would be selected.
    in OSX Yosemite, this is no longer possible. There appears to be no list view, and holding the Shift button does not allow me to select a span of events.
    What is the best way to select a span of events, say as much as 30 events?
    Thank you.

    Empty Caches
    1. Safari > Preference > Advanced
        Checkmark the box for "Show Develop menu in menu bar".
        "Develop" menu will appear in the Safari menu bar.
        Click Develop and select "Empty Caches" from the dropdown.
    2. Quit Safari if open.
        Option click the "Go" menu in the Finder menu bar.
        Select "Library" and then "Caches".
        Look for the folder 'com.apple.Safari"
        Right click "com.apple.Safari" and select "Move to Trash"
        Relaunch Safari.

  • How to disable the "turn page" event triggered by the scroll/swipe function?

    The problem is as follows.
    The default behaviour of Acrobat Reader (both stand alone and browser plug-in) is to allow scrolling/swiping with the mouse wheel/trackpad. This is useful when the pdf's page length is greater than the screen's own length, because you can read the pdf with no need to distract your attention from the text to the scrollbar button. However, the same scroll/swipe function turns into a usability problem when the pdf is embedded in a html page and the pdf's page length is smaller than the browser's length. In this case, the scroll/swipe turns the page, distracting your attention from the text to the unintended behaviour of the browser. What happens is that you are so used to scrolling/swiping that you did it unintentionally in the pdf's caption area. You really did not want to turn pages in the pdf. Furthermore, if the pdf takes the whole html page, being a website, the scroll/swipe function flips the website pages in ways that neither the reader nor the writer had ever intended. Hence the question. How to disable, in this case, the "turn page" event triggered by the scroll/swipe function? A JavaScript should do, but the SDK documents did not help so far...
    Message was edited by: 41457173
    Message was edited by: 41457173

    ... or release a patch for the API,
    ... or suggest an alternative route to achieve the intended result.

  • How do I copy multiple events from a single calendar to another calendar?

    I have multiple events from my "Family" calendar that I want to move. I would like to create a new calendar and move only specific events from my "Family" calendar to this new calendar. I have tried to select each event, then export, but this doesn't seem to work. It seems to export all events in the "Family" calendar, not just the ones that have been selected. Is there any way to do this aside from exporting each event one at a time and reimporting to a new calendar?

    Drag them there. The volume they’re put onto needs to be formatted as Mac OS Extended.
    (111592)

  • How do I delete multiple events in Calendar on iPhone or iCloud?

    If I want to delete multiple events in Calendar on iPhone or iCloud, is there any way to do it?
    I don't want to be clicking / tapping for hours...
    Thank you!

    Welcome to the Apple Community.
    Unfortunately, I don't believe that's possible.

  • Is there a way to create a multiple event screen saver from iPhoto events?

    Is there a way to create a multiple event screen saver from photos in iphoto?  I can create a single event screen saver, but don't know if it is possible to create a screen saver with more than one event.

    Drag the events you want into an album and have the screen saver run from the album.

  • How do I split a single event with many clips into multiples events, one event per date?

    I archived the video from my AVCHD camera into a Final Cut video archive. Later I imported this into iMovie. All the clips from this archive (spanning several months) are dumped into a single event. If I recall, older versions of iMovie would import video into separate events for each day. Then I would go through and give each event a meaningful name (e.g., "Mary's Birthday").
    This is what I would like. Is there a way to split this very long event into multiple events, one for each day that is present in the event?

    Not automatically but with imovie 10 you can create new events with any name you like then move clips into them from other events  (Just like FCP 10.1).   See:
    http://help.apple.com/imovie/mac/10.0/#mov1d890f00b
    You can also choose to display clips in an event grouped by date.
    Geoff

  • Can I have multiple event structures with the same event cases?

    Hello, 
    I'm doing an application that reproduces the front panel of the HP6675A power supply. To achieve this, I have done a state machine with different states
    (initialize, measures, voltage, current, ocp, ov, store, recall, etc). In each state, should have an event structure that catches the events of the buttons, like for example: if the current state is the Voltage mode and the user press the current button the next state will be the Current mode. For this in each state of the state machine should be the same event structure with the same events.
    My problem is that the Vi doesn't work properly when I have multiple event structures with the same event cases. There are some possibily to do this, and how? Or is impossible to have multiple events? I have been reading some posts, but I don't find solutions. 
    Any help is appreciated.
    Thank you very much.
    Solved!
    Go to Solution.

    natasftw wrote:
    Or as others mentioned, make two parallel loops.  In one loop, have your state machine.  In the other, have just the Event Handler.  Pass the events from the handler to the state machine by way of queues.
    A proper state machine will not need the second loop.  The "Wait For Event" or "Idle" state (whatever you want to call it) is all you really need in order to catch the user button presses.  The setup is almost there.  Maybe add a shift register to keep track of which state to go to in the case of a timeout on the Event Structure.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

Maybe you are looking for