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

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 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.

  • BTE 1030 - we use for AP documents, create an event that triggers a workflow

    Hello all,
    We use SAP's program RFBIBL00 to post AP documents.  We coded a function module that is called when BTE 1030 is reached.  Our FM creates an event that triggers a workflow.
    We are now doing some testing with an external vendor who is creating AP documents by doing an RFC  using function module BAPI_ACC_DOCUMENT_POST.
    It seems that this BTE, 1030, is not being triggered when the IDOC created by this function module posts the AP document.
    Has anybody else seen this issue and found a way to deal with it?
    Thanks
    Bruce

    AFAIK BAPI_ACC_DOCUMENT_POST and FI posting should trigger BTE 00001030 but BAPI_INCOMINGINVOICE_CREATE and AC interfacewould trigger BTE 00001050. (or is BAPI_ACC_DOCUMENT_POST also using AC interface, I will let you check it)
    Nevertheless call your FM triggered thru BTE 1030 also in a FM triggered thru BTE 1050. Also in the call check for update task
    function z_fi_00001050.
    call function 'TH_IN_UPDATE_TASK'
         importing
           in_update_task = in_update_task.
       if in_update_task eq 0 and i_xvbup eq 'X'.
         call function 'Z_FI_00001030' in update task
           exporting
             i_xvbup = ' '
           tables
             t_bkpf  = t_bkpf
             t_bseg  = t_bseg..
       else.
         call function 'Z_FI_00001030'
           exporting
             i_xvbup = ' '
           tables
             t_bkpf = t_bkpf
             t_bseg = t_bseg...
       endif.
    Regards,
    Raymond

  • Triggering event - start business workflow

    Hi,
    I have developed an business workflow which should start if a "transfer order" (Logistic Execution) was created.
    If I create an event (manual) to start the business workflow (BUS2018) it works fine, but if I create a "transfer order" it doesn't work (no event where created).
    I have coupled (and activated) the event to the workflow (transaction SWETYPV). Whats the reason? Any idea?
    Thanks Michael

    Check if check function modules exist on this event which prevents it from instantiating a workflow. (SWE2, or SWETYPV double click the event-->wf entry)
    do the same with conditions (transaction SWB_COND)
    Kind regards, Rob Dielemans

  • 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.

  • Event triggering by abap class & ISR

    hi gurus
    1 ) can i able to see the event triggering by abap class in SWEL ?  ,
    2) in custom  ISR scenario , new form scenario has been created by our functional consultant , and asking me to trigger a workflow for approval ,  when employee fills that particular ISR FORM , workflow should start and to go his HR administrator , when HR administrator double click on workitem he should get the ISR form in display mode  & also with some descpition text  is to be added in the screen (like user decision description ) with approval button ..... my question is how to trigger a event from in form scenario ? , how to bring the FORM screen to display mode  to the HR administrator ?
    regards
    surya

    Hi Surya
    The BO for ISR forms is BUS7051 - Notification. Turn on the trace via SWELS and create a PCR/ISR form and you should see the events being triggered in SWEL.
    Good Luck
    Ravi

  • 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

  • Event Triggers not getting executed

    I'm having following code in beforeData(PLSQL) event trigger:
    ADCPackageName.MethodName
    There is no such package in database, even my report works fine and publish data without any error.
    Is there any configuration for enabling event triggers.
    I didn't sufficient documents on event triggers. I want to use them for returning some values to report variables and validating input parameters.

    Hi,
    I tried to use "SAP_WAPI_CREATE_EVENT" also but it is also behaving in the same manner.
    At first execution event is getting triggered but my workitem is not getting terminated.
    But when i am executing the same report second time, again my event is getting triggered, and this time my workitem got terminated, and workflow proceeded furthur.
    I checked it from SWEL, i have two entries for my event (i.e; first and second execution of report).
    Any idea why it is behaving like this.
    Please find below code for reference, apart from below code i have only declarations.
    call function 'SWC_ELEMENT_SET'
      EXPORTING
        element       = 'ActualState'
        field         = 'A'
      TABLES
        container     = it_cont
      EXCEPTIONS
        type_conflict = 1
        others        = 2.
    CALL FUNCTION 'SWE_EVENT_CREATE'
      EXPORTING
        OBJTYPE                       = 'WORKINGWI'
        OBJKEY                        = '000000003061'
        EVENT                         = 'Approve'
    IMPORTING
       EVENT_ID                      = it_event_id
      RECEIVER_COUNT                =
    TABLES
       EVENT_CONTAINER               = it_cont
    EXCEPTIONS
       OBJTYPE_NOT_FOUND             = 1
       OTHERS                        = 2
    COMMIT WORK.
    Regards,
    Amar

  • About case and switch in multiple condition step in workflow.

    i ve some information about case and switch in multiple condition in workflow.
    case - static determination
    switch - runtime determination.
    but i want brief explanation about case and switch and difference please help me.....

    hi velmurugan............
        in case,
               we can have only one value for comparison and can have any number of branches for it.
       in switch,
               we can compare any number of values and have any number of branches.
    eg:
         consider i am triggering a workflow for purchase order change and i am having a multiple condition step.
    if i am going for a case:
            i can have only on value (ie po number/vendor number.....) as a parameter and can check different values with it. ( eg vendor number < 1000
                                                                 vendor number > 1000.... so on)
            a branch will be created for each condition.
    if i am going for a switch:
            i can take any parameter needed. (eg: vendor number > 1000
                                                                    order type = 'NB' .... so on)
             so a single branch can have any number of comparisons with the help of 'and' and 'or' operators and i can have any parameter for my condition.
    ---regards,
       alex b justin

  • Triggering the workflow after the Notification is created

    Hi Everyone,
    If the two workflow templates have the same triggering event BO: BUS7051, Event: CREATED). Both the workflows are triggered after the notification is created.
    Scenario:
    After terminating an employee notification number is created and triggers the workflow template 99900033 (Event: CREATED)
    After Promoting an employee notification number is created and triggers the workflow template 99900035 (Event: CREATED)
    My Requirement is: I want to trigger only one workflow template depending on my scenario (Termination or Promotion).
    How can I achieve this? Could you please let me know?

    please include a simple condition in SWB_COND where employment  EQ Termination for  termination event linkage (SWE2) and similary for promotion also create ne more condition and include in promotion event linkage.
    You might be having some doc type, so based on this you can achieve this.

  • 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

  • Chapter 6 Event-triggered campaigns

    From William...
    Chapter 6 Event-triggered campaigns is an exercise in the CCMO training where we send an email to Recipients who recently converted from Prospects to Clients, detected by a change in their status.
    Possibly the simplest way of accomplishing this is with the Incremental Query activity. However, to prevent pulling Recipients who are Clients already at the start of the campaign, the Incremental Query needs to be run twice, the first time to set the history.
    According to the documentation
    https://support.neolane.net/doc/AC6.1/en/WKF_Repository_of_activities_Targeting_activities .html#Incremental_query
    "The population already targeted is stored in the memory by workflow instance and by activity... two tasks [executions of a workflow step] based on the same Incremental Query for the same workflow instance will use the same log."
    In other words, two runs of an Incremental Query activity in a workflow share the same history log. For the first run of the Incremental Query activity, uncheck the 'Plan execution' option and transition into an End activity. This will set the history log to current Clients. For the 2nd run of the Incremental Query activity, check the 'Plan execution' option and transition into the Delivery.
    The 2nd (and subsequent) runs of the Incremental Query activity will pick up only new conversions from Prospect to Client.

    Hi Oguz,
    If you're trying to communicate between two loops, triggering the second from the first, then you should look at producer consumer type structures in File»New... under From Template.
    Stephen Meserve
    National Instruments

  • Multipal Event  in One Workflow

    Hello Everybody ,
    Can we Used two Triggaring  Event in  one  Workflow  with two different transaction ? .
    My Req is that I used Bus2038  for  PM  Notification Using Create Event (  Tcode :  IW21  ) .
    When Notification is Created ( IW21)  user can get mail in his  INBOX he  excuted  the Work Item
    ( IW22  here  user are creating Maintance Order  )  .
    After Excute Work Item ( using Tcode  IW22  i.e  After Creating Maintance Order )  User should directly goes to another  transaction  i.e   ( IW32   i.e  Change Maintance Order )  .
    is it  Possible  such kind of Req  . 
    can we triggered  Two  Event  in One workflow ?
    Regards,
    Sandeep Jadhav

    Hi,
    Suggest you the following steps.
    1. Create delegation object type ZBUS2038 of standard BUS2038.
    2. Use the created event of BUS2038 as start event in the Basic data of your workflow.
    3. Then include a send mail step to notify the agent.(user)
    4. create a custom method Z_call_IW22  for ZBUS2038->within the method call transaction IW22.
    5. Then include an activity step in the workflow->create a Task for this activity step->within that Task
        attach BOR ZBUS2038, method Z_call_IW22.
    6. Set your user as Agent for this activity step, so that at runtime user will receive work item for this step and that WI will take him to transaction IW22.
    7. Then include another activity step in the workflow and follow the same process to call IW32.
    Thanks,
    Sonali.

  • Triggering the workflow

    Dear all,
    I have copied the standard business object BUS2089-Employee trip and used in my workflow
    Now i want to trigger the workfllow when the trip is created
    Which triggering method can be used for triggering the workflow.What are the linkages has to be done.
    Thanks and Regards,
    M.Sabarinath

    Hi,
    Check this link for a step by step demo:-
    To trigger events programmatically;-
    http://****************/Tutorials/Workflow/EvtsPrg/EvtsPrg.htm
    To trigger workflow when events are triggered:-
    http://****************/Tutorials/Workflow/MaterialCreate/Page1.htm
    Best of luck,
    Bhumika

Maybe you are looking for

  • Sale order reference in delivery

    Hai All I am creating a sale order for 10 qty. delivery is done for 5 Next time when i refer the sale order to deliver the balance 5, Iam not able to refer to the sale. Pls help hey I am not able to refer it more than once ? Thks N.K.Sivakumar

  • Mini DV Camcorder & Pro Audio...

    I would like to make some performance video's of acoustic guitar playing. I want to record the audio using my Neumann mic's into Protools and video the performance. 1- How do I go about syncing up the audio with video from my mini DV? Is the video im

  • 23.976 frame rate explained

    This post was triggered from this this thread: http://discussions.apple.com/thread.jspa?messageID=4741388#4741388 I just thought it best to start a new one Okay iSchwartz, with the speed of a flying bullet, and with help from my fellow members of the

  • Missing Function within VC01N Generic Object Services (simple note)

    We want to use the generic object services (GOS) within transaction VC01N. But we are missing the function to enter only a simple note. Behind the GOS Icon within VC01N menu step: Create -> Create note  is not available. This is different to other tr

  • How do I get a 23.98 sequence onto a dvd(29.97) without adding 3:2pulldown?

    Hello, I am having a hard time finding a process for burning 23.98 footage onto a DVD without having the method of 3:2 pulldown effecting the overall look. I have a sequence in Final Cut Pro that is 23.98. I'd like to burn it to a DVD but when the 3: