Triggering of workflow

In CRM2007  lead creation, if status of lead is E0006 for 2 days then the workflow should trigger to the respective activity partner   i will provide details
statussince : 09- 02- 2009,(this field contains created date)
userstatus : E0006,
if this user status is still same for that document at 11-02-2009 ,then the workitem should trigger to the activity partner.
wt is my problem is  event is getting created at 09th , how should i trigger workflow on 11th...
please any one provide me some info regarding this

Thank u for ur reply,
But the value userstatus = "E006"  would not change after the workflow is triggered,
my requirement is if the user doesnt changes the status of the document for 2 days then it should trigger, during these 2 days if user changes the status  workitem shouldnt go to agent.
according to u how can i check  within workflow  whether user changed the status or not.
  that changed status value wont be available in workflow.
please suggest me

Similar Messages

  • 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 a workflow from a adobe interactive form...

    Hi,
    I am new to SAP.
    I hv to ceate a adobe form for creating CREDIT MEMO REQUEST...
    on filling the data and submitting, it should trigger a workflow, in which, the approver may approve or reject..
    if it is approved it should be updated in the database table
    and if rejected it should go to the another person.
    I know to create adobe forms.. On clicking the SUBMIT button in the form the workflow should be triggerd..
    is there any standard wokflow for my requirement or should i create a new WF.
    What is the code for triggering a workflow.... how to approach my requirement... can any one help on this please...

    *CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
    *  EXPORTING
    *    task                      = 'WSXXXXXXXXX'
    **   LANGUAGE                  = SY-LANGU
    **   DO_COMMIT                 = 'X'
    **   USER                      = SY-UNAME
    **   START_ASYNCHRONOUS        = ' '
    **   DESIRED_START_DATE        =
    **   DESIRED_START_TIME        =
    **   DESIRED_START_ZONLO       = SY-ZONLO
    **   IFS_XML_CONTAINER         =
    * IMPORTING
    *   return_code               = lv_retcode
    **   WORKITEM_ID               =
    **   NEW_STATUS                =
    ** TABLES
    **   INPUT_CONTAINER           =
    **   MESSAGE_LINES             =
    **   MESSAGE_STRUCT            =
    **   AGENTS                    =

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

  • Triggering of WorkFlow in Transaction CBIH12(EH&S)

    Good day All.
    We have created a customer object(transaction SWO1) for the Risk Assessment(transaction CBIH12) in EH&S. We have been looking for ways of triggering the WorkFlow for the Risk Assessment. The available user exits didn’t help.
    Is there anyone out there who has done these or advice us how to do it. 
    Regards
    Makoro Manyathela

    Thanks for the speedy response. We've tried that, but the "Change Document Object" for Risk Assessment in not included in the possible list.
    The following change document object for this transaction is CBIH_ERH for the Risk Assessment and CBIH_AC for the Safety Measure. This information can be seen in the change document CDHDR.
    Regards
    Makoro Manyathela

  • 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

  • Triggering a workflow when the payment proposal F110 is confirmed/finished.

    Hi All,
    Please kindly give me your good advices that how can I start to create a workflow for payment proposal F100. The requirement is that after the payment proposal has been confirmed and completed. It needs to be triggered and automatically send out an email notice for the those vendors, the vendor email address is collected from vendor master record FK03.
    I guess it can use REGUH-XVORL, If "X" means that this is proposal record only. If " " means that it's not a proposal record, which should be a confirmed record yet.
    Please kindly instruct me how to get this task done, since I am a fresher SAP and workflow.
    Thank You Very Much.
    JC

    Hi,
    I have exactly the same requirement.  I need to trigger a workflow when the payment proposal is completed. 
    I've been searching for the answer on the internet.  Several people have asked the same question, but I haven't seen any real answer to the question yet. 
    There is no standard SAP business object for payment proposal, there is one for payment request which uses F111.  There is no standard workflow template, the one for payment release is only for releasing individual invoice.  There are answers about restricting the authorisation, it helps, but it doesn't meet all requirements.  We have people create payment proposals in UK for companies in Europe.  We really need a workflow resolution.  Seperating the authorisation will still require the person who created the proposal sending email to people in different countries to approve the payment.
    Two technical problems that we are facing. 
    1. There is no existing business object. I've been told that we should should ABAP Class.  And include the IF_WORKFLOW in the interface.
    2. There is no event created when the payment proposal is completed.  We are working on creating an event.  I've been told to use SWE_EVENT_CREATE function module. 
    If you have more information about how this can be done, or if there is any easier way, please let me know.  I will be very grateful.
    Thanks,
    Manlee

  • Completion of one workflow is triggering another workflow

    Hi Experts,
    I am facing a wierd issue. I have created a workflow to approve/reject a contract. In the start condition I have maitained a container attribute to check is the agent is not WF-BATCH AND activity type = 00001under conditions  there is only one event that is triggerred in all scenarios.
    Also to remove the workitem for the approvers inbox when the contract is settled/reversed directly from the transaction i have used an event step and a process control step within a loop.
    Everything is working fine in development system, but im facing a weird issue in QA.
    Once the workitem is approved the workflow is completed, but it is starting another workflow for the same contract number and when i check the containers that i hv used under conditions, those do not match.
    i.e the agent is WF-BATCH and activity type = 00000 . Then how come the workflow is started again ?
    Can any1 help.
    BR,
    Aaarvi.

    Hi Swami,
    Thank you for the quick response.
    I just found that, in my development system in event linkages a check fucntion module SWB_2_CHECK_FB_START_COND_EVAL is used, whereas the same is not used in QA.
    Can this be causing the issue by any chance?
    Aarvi.

  • Problem in triggering of workflow

    Hi All,
    We have custom events assigned to bus2104.In Event linkage transaction SWW_WI_CREATE_VIA_EVENT is passed to Receiver Function Module and "Linkage Activated" = 'X'.
    In  quality server after approval request (t.code IMA1N) is created and status of approval is changed to "Request for POP inclusion" the workflow is triggered. But in testing workflow is not triggering.
    In test system if i am manully executing the workflow using SWUE t.code & selecting "trigger receive FM synchronus" then only the workflow is triggered.
    If i execute workflow manully through SWUE & unselecting " trigger receive FM synchronus"  the workflow is not triggered.
    Could you plz let me know why the worklfow is not triggered in qualtiy system automaticly.
    *Please do not use words like "Urgent" in the forum.Hence i edit the message as per the forum guidelines. Edited by: Saujanya GN on May 12, 2008 5:41 AM

    Hi
    Thanks for your response.
    The settings in SWEL are identical in Quality & test system.But if i am manually running the workflow fro SWUE with "tigger receiver function module  synchronouly" = X
    in workflow graph its shown that the workflow is triggered through event but in SWEL data is not available.
    Regards
    Deepthi

  • Need to restrict triggering of workflow only once(first time).

    Hi guys,
    I hv a requirement to trigger the workflow only once(first time).
    whatever is the the condition/changes in document, it should not trigger for second time.
    do we hv any options available for this........
    thanks in advance...
    santosh.

    Hi susan,
    Below is the requested information,
    Release : ECC 6.0
    we are working on custom WF for ECO creation(CC01).
    Description,
    ECO is created in SAP by legacy system, thru bapi CCAP_ECN_CREATE, the WF will take the editing of the material in that ECO to different departments like MRP, accounting, sales,quality etc.... & respectively creates the views.
    we cannot use CREATE event, bcos first the ECN(CC01) is created by bapi & further bapi creates the material & inserts it into ECN again, which is CHANGING the document. once this is done, our WF should trigger.
    As we dont have CHANGE event in ECM BO, i am using CREATE event & settting it for ON CHANGE in SWEC t-code.
    Bottomline is , it is triggering as soon as any changes happens.
    But, we want it to restrict for one time triggering.
    Regards.
    santosh.

  • Triggering of Workflow for park documents based on Document type.

    Hi,
    I have activated workflow for park documents but it is triggering for all document types. Client dont want workflow for Customer park documents.
    I assigned SA document only in "release approval path" but it is triggering for all document types.
    Please help me.
    Thanks.
    Azeem

    Hi Azeem,
    We have the same requirement. Would you mind sharing how you were able to accomplish this?
    Thank you,
    Mark.

  • Triggering SAP workflow from non-SAP system

    I am trying to use WF-XML to trigger a workflow in SAP from non-SAP system. 
    I have already created a workflow template in SAP and want to test the scenario if this will be really hit by the incoming xml message.
    Questions:
    1. How the data from incoming xml is tranferred to workflow container element? IF system does it, how is done? If not how to address it?
    2. Do we have some tool here, to simulate this situation - to create a test xml incoming message with SAP and really see if that triggers the desired workflow template. Pupose is testing the scenario first in SAP and then going to the other system to test the real interface.
    This is somewhat similar that we see in incoming IDoc. In Idoc we can simulate the incoming IDoc structure and test.
    Is any one here who can guide on this?
    Thanks in advance.
    Rgds.

    Hi,
    You don't need a triggering event. In the xml it says which workflow should be started. You don't need a class to fill the container. The service does this.
    I think there is a way to generate an example xml but I don't know exactly how. In the <a href="http://help.sap.com/saphelp_nw70/helpdata/en/54/de9e3887d6174fe10000009b38f842/frameset.htm">SAPHelp</a> there are some examples of the documents. Check also the entry above it about the creation of a WF_XML document. In the first and third example it shows a container element and its value (QUESTION).
    Try to get a copy of the book "Practical workflow for SAP" by Alan Rickayzen. It has got a part about this.
    Also check this link from the SAPHelp:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/e8/ea8d380be34e6ce10000009b38f842/frameset.htm">Call Tab Page</a>
    Regards,
    Martin

  • Triggering a workflow through a dialog program

    I tried to trigger a workflow through a dialog program using FM. I also created BOR and workflow(SWDD). The dialog program basically deletes a sales order and then a workflow should trigger.  I am not able to see the email. Am I missing anything here?
    Pls find below the coding..'ZCSS_SO1' is the BO.
    Data : g_objtype LIKE SWR_STRUCT-OBJECT_TYP,
    G_OBJKEY LIKE SWR_STRUCT-OBJECT_KEY,
    G_EVENT LIKE SWR_STRUCT-EVENT.
    data begin of l_input_container occurs 0.
    include structure swcont.
    data end of l_input_container.
    data: v_vbeln like vbak-vbeln.
    g_objtype = 'ZCSS_SO1'.
    g_event = 'DELETE'.
    G_OBJKEY = 'SALESDOCUMENT'.
    CALL FUNCTION 'SWC_ELEMENT_SET'
    EXPORTING
    element = 'ELEMENT'
    field = 'VALUE'
    tables
    container = l_input_container.
    CALL FUNCTION 'SWE_EVENT_CREATE_IN_UPD_TASK'
    EXPORTING
    objtype = g_objtype
    objkey = G_OBJKEY
    event = g_event
    tables
    event_container = l_input_container.
    commit work.

    Hi Chandri,
    You can firstly check whether the code you have written below is triggering the BO event or not by switching on the trace using transaction SWELS , then running the transaction (dialog program mentioned below). After, switch off the trace and then view the trace from transaction SWEL.
    Your BO and event should show up in the trace.
    Regards,
    Aditya
    p.s. also for the mail, check what method u are using?

  • Triggering SRM workflow from a  web-based form (HTML)

    I am a beginner in SAP, please bear with me.
    I have created an online data entry form using html to populate a table in a non-SAP database. I am able to call this form in SAP EP using URL iView.
    I want some help on triggering an SRM workflow from this form.
    Thanks.

    Hi Vadim,
    I would like to explain the scenario:
    1.The form would reside in the SAP Enterprise portal
    2.When the form is completed and the "submit" button is  clicked, I expect a workflow in SAP SRM to be triggered.
    3.The workflow is a developed three-step approval workflow. It was developed using the Hierarchical Approval workflow wizard.
    Questions:
    1. How can the workflow be triggered when the submit button is clicked?
    2. How can the data from the Form be integrated into the workflow and vice versa?

  • Implicit triggering of Workflow Action

    Hi
    There is Oracle APEX(Application Express) which is invoking the BPEL process on change in DB field.
    Lets say status become NEW, it inokes the BPEL process, with the Request Number, which is a key filed in APEX as an input payload message to BPEL.
    In BPEL process there is a Workflow which is triggered and a request is sent for Approval/Deny lies in a person's worklist.
    Now APEX is the controlling point and BPEL is only used for workflow .
    So no action of a workflow can be triggered form BPM worklist.
    So when the status of DB field changes from NEW to COMPLETED, the BPEL process is to be invoked again and should proceed with the workflow action task where it has stopped previously and should get out of theat person's worklist.
    The issue here is :
    How can I invoke the workflow action from APEX to proceed further, when it has come to a person's worklist.
    Thanks
    Deepak

    Thanks for the speedy response. We've tried that, but the "Change Document Object" for Risk Assessment in not included in the possible list.
    The following change document object for this transaction is CBIH_ERH for the Risk Assessment and CBIH_AC for the Safety Measure. This information can be seen in the change document CDHDR.
    Regards
    Makoro Manyathela

Maybe you are looking for