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

Similar Messages

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

  • MRP generated Automatic PR creation is not trigerring the Workflow.

    Dear Experts,
    In our Implementation we are using workflow for Purchase Requsition. The release strategy is configured by the functional consutant. For the MRP generated PR the first releasig point is MRP controller and the PR type is Custom type MRP PR. If we create the PR manually with the said PR type the workflow is getting triggered ( checked in SWI1) and sending the E-mail  notification like other types of PR like Invertory and Capex PR.
    But while running the MRP, some  PRs of MRP PR type with same releasing point are being created automatically for the material (Raw, Packging) as per the setting of reorder level but these PRs triggering the workflow as it did while creating maually. Please guide / suggest me how I have to trigger the work flow for Automatic MRP generated PR.
    Reagrds
    Sony

    Your query is not clear. Does the workflow initiator is different for the 2 PRs.
    Thanks
    Arghadip

  • 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

  • Http link to activity or opportunity in the workflow email message

    Hello All,
    I created a custom checkbox in task screen. When new task is created and checkbox is checked send email to the user.
    in email body I would like to include the http link so that when user click on the link directly goto Activity/Task or atleast opportunity.
    Thanks
    Pallavi

    Hi,
    I'm not sure about an Opty link as you are on the Task record for the trigger but try this:
    This is a link to an Opty record on the DSA pod:
    https://secure-ausomxdsa.crmondemand.com/OnDemand/user/OpportunityDetail?OpptyDetailForm.Id=ABJA-19SNTU
    To reuse this for any other record type or another system do the following:
    Open a record that you want to link to i.e. SR for DSA Demo and you get this URL at the top
    https://secure-ausomxdsa.crmondemand.com/OnDemand/user/ServiceRequestDetail?ServiceRequestDetailForm.Id=HU15-NT8Q&OMTGT=ServiceRequestDetailForm&OMTHD=ServiceRequestDetailNav&OMRET0=ServiceRequestHomepage&OCTYPE=Other&ocTitleField=Abstract&ocTitle=Send+copy+of+Annual+Report&ocEdit=Y
    As you can see the URL starts the same except it references ServiceRequestDetail instead of Opty detail.
    From the OnDemand screen copy everything from http:// to ServiceRequestDetail? ServiceRequestDetailFormID= and paste it into your workflow email.
    Click the Fx button and add the Row ID.
    Voila you now have a link in an email that will open the record that triggered the workflow.
    cheers
    Alex

  • Workflow:To trace with whom the workflow is pending

    Hi All,
    Is there any standard Tcode to find who are the approvers for a particular Workflow triggered?
    There is requirement to trace with whom the workflow is pending.
    Please suggest.
    Will appreaciate a quick reply.
    Thanks,
    Deb

    Hi Deb,
    In the business workplace of the initiator (i.e. the person who raised the request which inturn triggered the workflow) under the tree "Outbox" there would be an item called "Started workflows".
    All the workflows which have been initiated by him would be avalilable under that option.
    There you can check the status of the workflows started by him. Further you can check the log of the individual workflows(Click on the "workflow log" icon). In the log you can see with whom the workflow is currently pending.
    P.S. (Transaction to get to the outbox directly - SO02)

  • Workitem button is not comming in swel though the workflow gets triggered

    Dear All,
    I have copied the std wf WS20000075 and doing customization for po release as per my clients requirement. Once PO is being created in ME21N i am able to see the event trace in SWEL , but its showing an error , " Import container contains errors (are any obligatory elements missing? " .and no workitem button is comming in SWEL so that i am not able to see the workflow log .
    so that though the workflow gets triggered , i am not able to trace it .
    I have gone through the solutions given in sdn , but i didn't get any solution for my issue.
    Hope to get a positive solution for this soon.
    Thanks
    prabhudutta

    This is error in ECC 6.0 for BUS2012.
    For the time being I am using solution which I have given in this thread but rigid solution is to raise an OSS note.
    I myself will raise an OSS but before would like to debug and find out what it is expecting exactly so i said use SWUE to find what went wrong.
    Cheers
    Jai
    I am having the same error, it goes into error for ECC6.0 version. I have not got chance to see why it is happening?
    any way for the time being you can do this : go to SWE2 and for given business object and receiver type, change the settings of "Behaviour upon error feedback" from "default" to "do not change linkage" so every time atleast event will trigger and so workflow, yeah ofcourse event will be queued in SWEAD. So final solution is an OSS
    NOTE:
    Check this thread, Glauco has given OSS note 797775
    /thread/781604 [original link is broken]

  • Problem in triggering the correct workflow on  AdobeForm submission for PCR

    Hi All,
    I am facing a problem involving triggering of workflows through Adobe form submission. I have created a scenario for "Employee seperation" in QISRSCENARIO transaction and assigned it to an approval workflow. I have also activated and assigned the BUS7051-Created event in the workflow Basic Data. My workflow also triggers perfectly when i submit the adobe form. Everything is perfect till here.
    Now i have to create another scenario for "Request for Transfer" Now for this i had to create a seperate workflow. My problem is since both these workflows are assigned to the same event whenever i submit the "Employee seperation" form both the workflows get triggered. <b>Is there a setting where i can configure the corresponding workflow to be triggered for the respective scenario's alone?</b> How do we handle this situation?

    Hi Jocelyn/Raja,
    I am trying to use SWB_COND for differentiating between the different workflows. I have created a virtual attribute W_SCENARIO_KEY for this. I tried populating this scenario key by using the following staement,
    <b>
    CALL FUNCTION 'ISR_SPECIAL_DATA_GET'                       
      EXPORTING                                                
        notification_no                     =  object-key-number
    IMPORTING                                                 
        SCENARIO                            = w_scenario_key.  
      SWC_SET_ELEMENT CONTAINER 'W_SCENARIO_KEY' W_SCENARIO_KEY.</b>
    When i try to include W_SCENARIO_KEY as a start condition the workflow shows up an express message and fails to trigger. In ST22 i can see that there is an exception "INVALID_NOTIF_NUMBER" raised.
    But if i don't set this as a start condition all the workflows activated to BUS7051-CREATED are triggered and in the WF logs i can see the correct value of W_SCENARIO_KEY for the respective notification number.
    I am not sure why this happens when i set it as a start condition alone.
    I instead used a select statement as shown below,
    <b>select * from viqmel into table itab_VIQMEL          
                  where qmnum = object-key-number.       
    loop at itab_viqmel where qmnum = object-key-number. 
    w_scenario_key = itab_viqmel-auswirk.                
    endloop.</b>
    After inserting this statement it works fine without any issues. Any idea on why ISR_SPECIAL_DATA_GET cant be used in the virtual attribute implementation?
    The following is the dump i get if i use ISR_SPECIAL_DATA_GET,
    Information on where terminated                                                                 
        The termination occurred in the ABAP program "SAPLQISR9" in                                 
         "ISR_SPECIAL_DATA_GET".                                                                    
        The main program was "RSWDSTRT ".                                                                               
    The termination occurred in line 39 of the source code of the (Include)                     
         program "LQISR9U01"                                                                        
        of the source code of program "LQISR9U01" (when calling the editor 390).                                                                               
    Source Code Extract                                                                               
    Line  SourceCde                                                                               
    9 *"  EXCEPTIONS                                                                               
    10 *"      NO_INTERNAL_SERVICE_REQUEST                                                       
       11 *"      INVALID_NOTIF_NUMBER                                                              
       12 *"      INT_SERVICE_REQUEST_NOT_FOUND                                                     
       13 *"----
       14                                                                               
    15 * local data                                                                               
    16   DATA: lt_dummy TYPE qisrsgeneral_param.                                                 
       17                                                                               
    18   DATA: lr_isr_document TYPE REF TO cl_isr_xml_document.                                  
       19                                                                               
    20   DATA: ls_notif TYPE qmel.                                                               
       21                                                                               
    22 * MAIN                                                                               
    23 * try buffer first                                                                      
       24   CALL FUNCTION 'ISR_SPECIAL_DATA_BUFFER_GET'                                           
       25     IMPORTING                                                                               
    26       ET_SPECIAL_DATA       = special_data                                              
       27       ED_SCENARIO           = scenario                                                  
       28     EXCEPTIONS                                                                          
       29       BUFFER_EMPTY          = 1.                                                        
       30                                                                               
    31   IF sy-subrc eq 0.                                                                     
       32     EXIT.                                                                               
    33   ENDIF.                                                                               
    34                                                                               
    <b>   35 * check notification number                                                             
       36   SELECT SINGLE * FROM qmel INTO  ls_notif                                              
       37                             WHERE qmnum = notification_no.                              
       38   IF sy-subrc NE 0.                                                                     
    >>>>>     RAISE invalid_notif_number.                                                         
       40   ELSEIF ls_notif-auswirk IS INITIAL.                                                   
       41     RAISE no_internal_service_request.                                                  
       42   ENDIF.     </b>                                                                               
    43                                                                               
    44 * set scenario                                                                          
       45   scenario = ls_notif-auswirk.                                                          
       46                                                                               
    47 * read ISR XML document                                                                 
       48   CALL METHOD cl_isr_xml_document=>read_for_display                                     
       49     EXPORTING  id_notif_no         = notification_no                                    
       50     IMPORTING  er_isr_xml_document = lr_isr_document                                    
       51     EXCEPTIONS bds_error = 1.                                                           
       52                                                                               
    53   IF sy-subrc NE 0.                                                                     
    54     RAISE int_service_request_not_found.           
    55   ENDIF.                                           
    56                                                    
    57 * read data from XML document                      
    58   CALL METHOD lr_isr_document->get_data_from_xml

  • Find how the Workflow OTA_LNR_TRNG_CANCEL_JSP_PRC is getting triggered

    Hi all,
    Hi I am new to workflows.
    I have been trying to find out like crazy, how exactly the following Workflow is being triggered?
    Workflow Process Internal name: OTA_LNR_TRNG_CANCEL_JSP_PRC
    Workflow Process Display name : Cancel Learning Enrollment
    The following is what exactly happens:
    Using the Responsibility Learner Self-Service-->Learner Home
    In the Home Tab, under enrollments, a list of all the courses that the user has enrolled for is displayed.
    now i un-enroll, using the Un-Enroll button.
    Now you come to the Unenroll: Pre Assessment page, where you select the New Status and Reason. Then press Finish.
    You will get a confirmation and also a notification will be sent to you and your supervisor.
    I need to customize this workflow, buti am unable to find out how is this workflow getting triggered.
    I found out in the OAF page that when the un-enroll button is being pressed a form function OTA_LEARNER_CATALOG_ENROLL_DTL is being callled and this does has Form parameters:
    pCancelProcessName=*OTA_LNR_TRNG_CANCEL_JSP_PRC*&pCancelCalledFrom=OTA_LEARNER_CATALOG_ENROLL_DTL&pItemType=HRSSA
    But when i change the value of the pCancelProcessName to my custom process name, it still is refering to the seeded WF process.
    Can anyone help me figure out where exactly is this workflow being triggered. Am really going nuts now? :S

    I think that the WF is being called from an API
    OTA_DELEGATE_BOOKING_API.UPDATE_DELEGATE_BOOKING
    AND IN THAT THIS PARTICULAR CONDITION:
    IF l_type ='C' and l_delegate_contact_id is null and l_contact_id IS NULL
    and nvl(p_source_cancel,'-1') <> 'AME'
         and l_event_rec.event_type in ('SCHEDULED','SELFPACED') then
    OTA_LRNR_ENROLL_UNENROLL_WF.learner_unenrollment(p_process => 'OTA_LNR_TRNG_CANCEL_JSP_PRC',
    p_itemtype => 'HRSSA',
    p_person_id => l_person_id,
    p_eventid => p_event_id);

  • Triggering workflow of an object from the workflow actions of another

    Hi,
    We have associated contacts to custom object 5 . For reporting purposes, the value of contact's account is being copied to the custom object's account through workflows whenever custom object record is created or edited. In case a custom object record is created and after that the contact record is updated so that its account gets changed, the custom object records related to that contact need to be updated too, otherwise there is a discrepancy issue. Can we somehow trigger the edit workflow of custom object 5 when the contact's record is updated?
    Are there any other methods, if this is not possible , to achieve the result I described?
    Regards.

    You can't update another object when one object is updated i.e. Custom Object can't be updated automatically using Workflow when Contact Object is updated. You need to use Web Services to do this. All you have to do is define some Integration Events on the Parent object (which triggers the Update) and then based on the Integration EVent, update the Child Object (which needs to be updated).
    BTW, this is not related to Contact On Demand, it is related to CRM On Demand Topic

  • 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 to allocate the workflow to the action defnitions in solution manager

    Hi,
    we are having solution manager with the CHARM configured, and currently we are looking for the trigger of mail and workitem for change of action. the work flow is designed for that, but how to assign the workflow to the condition and processing type .
    please suggest, points are definetly awarded.
    Thanks and regards
    keerthi

    Hi,
    Well, why dont you check the event that gets triggered during the Status change of the user?
    This can be done by switching on the EVENT TRACE using SWELS txn and simulate the BUSINESS PROCESS and then check the event trace using SWEL.
    After getting the required Business Object and event, Please attach your WF to that EVENT in the BASIC DATA-START EVENTS.
    Regards,
    <i><b>Raja Sekhar</b></i>

  • Creation of a purchase order triggers the event ReleaseStepCreated twice

    Hello,
    I tried to use the standard workflow for the approval of a purchase order and noticed that i am receiving twice the same mail.
    As you know, the workflow is triggered by the event ReleaseStepCreated. After I created a purchase order, i saw that the event is triggered twice, so that is why i am receiving two emails.
    I believe this is wrong, Has anyone noticed this problem?
    Thanks,
    Efren

    Hello,
    The event linkage contains only one record, which is the one that connects my workflow to the event. This is not the cause.
    What do you mean by delegations? Are you talking about delegated objects? If yes, i do not have any.
    I looked in transaction SWEC(events for changed documents), and i guess i found the cause. There is a record with change doc. object EINKBELEG with the event ReleaseStepCreated of the object BUS2012. It has the trigger event "On Create", and in the Function Module, in Event Container it has function FRE_ORD_EVENT_PO_DB.
    I removed this record and now the event RELEASESTEPCREATED is triggered only once, so i think it is ok.
    I guess this record existed before there. Do you have that record with the function module FRE_ORD_EVENT_PO_DB?Or do you know what is the use of this function?

  • Switching off the workflows...

    During actual production cutover, we need a means of switching off team center and other workflow updates that send information out of SAP during conversion runs and switch them back on again after conversion.
    We need something that we can use (like a flag or switch) repeatedly for the release
    HEY guys anyidea what can be done about this.. .need to this ASAP... going live in a few days....
    Thanks in advance
    Update :
    For example
    Now for a vendor create or change workflow.. we neeed to switch on or off the workflow depending on who is running it.. no which is std WF for vendor ?? i know questions are bit random... any help will do at this point
    The business object BUS1008 for vendoe shows a stop sign...what exactly does that mean
    The business object BUS2020 ACCOUNTS PAYABLE for vendoR is not implemented
    The businedd obhect BUS3008 is active but the event is not implemented or released ..
    These are all the details that i have... now i am not really sure who told these ppl that a workflow is triggered at all which sends the data to the Team center..
    Any ideas ???
    Message was edited by:
            Abhishek Dhoundiyal
    Message was edited by:
            Abhishek Dhoundiyal

    Hi,
    Though I did not understand what you exactly need I can answer some of the questions you have asked below:
    A stop sign in a Business Object indicates that the BO is obsolete and there is a newer version that is available. For example in the case of the vendor the newer version in LFA1.
    To understand the various phases in a BO development then refer to this link:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c5/e4ab0e453d11d189430000e829fbbd/frameset.htm
    Now coming to the main question of switch off the workflow depending on some criteria. I guess this can be acheived through start conditions. Though a proper business scenario is needed to justify why some people are exempted from the workflow process you can do this through start conditions. You will need to maintain a table where you update the table with the users for whom the workflow is not active and at runtime check the "Document created by" user and check it against the table and update an attribute and have the workflow start on the basis of this attribute.
    Hope this helps,
    Sudhi

  • To get the Workflow status using the Object Key

    Hi Experts,
    Do we have any transaction code or a Standard table where I can see the status of the Workflow using the Object Key.
    For example I have an Invoice Document number for which a Workflow has been triggered and now I want to see the which workflow has been triggered and what is the status for the same. I have only the Invoice Document Number.
    I think I can use the SWI1, SWEL etc but I don't have Object key as Input field.
    Thanks in advance.
    Regards,
    SRinivas

    Hi,
    You can find the workitem id in table SWW_WI2OBJ.
    Here you need to pass the invoice number in "Instacne ID" with leading zeros, business object in Object type.
    This may take little bit longer time.
    After getting the workitem number then look into table SWWWIHEAD for the workitem status.
    Thanks and regards,
    SNJY

Maybe you are looking for

  • I've been working on this for hours... Solaris works but mouse won't move

    Edit: I should go ahead and say that I've looked at EVERY tutorial and guide and post I could find all over google, for literally hours. If you know how to fix this, I'm begging you to help me. I have a Dell Dimension 8200, 256 MB RAM, Nvidia Geforce

  • Animation preset--one letter at a time

    I am looking for a text animation preset that shows one letter at a time. I have tried several of the presets and applied a mask, but I am assuming there is an automated way to do this, either with a preset or an expression of some kind. Lee

  • How did you improve the wiki today?

    I've noticed that, while the Arch Wiki has some very good and very active editors, it doesn't have many of them and they simply cannot do much more than fix what they've already got. Other than new translations, merges, and formatting fixes, there is

  • Passing data from component

    I have a main application, with a custom VBox component, which then holds a nested Form component. So three layers deep in total. Upon form submit, what is the best way to get the data from the form component(third layer) back up to the main app (fir

  • Projection problem

    I use Keynote for business presentations and when I use a projector with my MacBook, the image on the projection screen is quite dark. This happens regardless of the projector. So, for instance, if I'm one of a number of presenters and we take it in