Second workflow getting triggered.

Hi all,
I have a scenario to reject  a Purchase order. So incorporated a new step to reject the PO(Method used- BUS2012-CHANGE).
The code to reject the PO is done inside the BADI. Right now the PO is getting rejected and workflow is going to complete state and working fine. But as a significant change is coming in the PO it is triggering a new workflow (Event -Significantly changed). How can i block the second workflow from trigerring? Any Function module from not allowing to trigger the workflow?.
Thanks,
Neslin.
Edited by: neslin on Aug 20, 2009 7:23 PM

Hello,
Get the workflow number from event log SWEL which is triigerred for the event 'significantchange'. Open the workflow and deactivate the event linkage to stop the workflow from starting.
Switch on the event trace SWELS, carry out the process of rejecting the PO. Get the workflows & events that are being triggered in the event log SWEL and carry out the deactivation of event linkage.
Hope this will help.
Thanks,
Samson

Similar Messages

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

  • How does a workflow get triggered when we create a Shopping cart

    Hi all,
    In SRm how does a workflow gets triggered when we create a Shopping cart...what i mean is that in r/3 we use changedocument object or function modules etc..likewise in srm how the wf gets triggere...can anyone help me.
    Thanks&Regards,
    Hari

    Hi martin,
    yes i accept that in SRM also workflows are all started by event...what i mean is in R/3 we go for Change document object(swec) or some other method for event creation...like that in SRM what is there?Just whenwe create a Shopping cart How the workflow is trigerred...suppose if it is trigerred using fm swe_event_create where they might have called the function module.
    Thanks&Regards,
    Hari

  • Count for item records reaches 999 the second idoc gets triggered!

    Hi Experts,
         I have an issue. Sender is file and receiver is idoc with a header and item  level records. Only one header and n number of records can be there.
    Now we want to make  this way that as soon as the count for item records reaches 999 the second idoc gets triggered.
      Hints / Solutions Pls.
    Regards,
    Arnab .

    incorporate mapping logic such that for every 999 item records create new IDoc node
    check with this UDF for IDoc node mapping, item records will be input to UDF
    int count = a.length;
    int k=999;
    result.addValue("");
    for(int i=0;i<count;i++)
          if (i>=k){
              result.addValue(""); // if records > 999, add IDoc node
              k=k+999;     
    Do rest of the mapping accordingly

  • Preview of approval chain before workflow gets triggered

    Hi Guys,
         I have a different requirement where users want to see the preview of approval chain before workflow gets triggered. I mean once we enter all the data in transaction, after the data validation is done then they want to see the approval chain. What is the best way to achieve this functionality. your input/ideas are highly appreciated.
    Thanks
    VT

    There is no easy way to do this. Basically the only possibility is to enhance your transaction with a subscreen or a tab where you have to simulate the logic used in your workflow to find agents and show the result of that simulation.
    If you are in a homemade transaction it should be pretty easy to do. If you're in a SAP standard transaction it may become a really tough modification/enhancement.
    Cheers,
    Patrick

  • Workflow getting triggered when added/replace in Mask

    Hi Experts,
    We are using MDM 7.1 SP09 and we are facing an issue of workflow getting triggered when records are added or replaced in Mask..
    ie whenever i am adding or replacing some records in mask workflow is triggered for most of the records ....IF i check the Workflow tab it will show all the steps maintained for that particular Workflow adn then gets deleted automatically...and strange thing is it is happening to a single user id/role and for other role this does not happen
    Can anyone please help me sorting out this issue..
    Regards
    Nitin

    Hi Ravi,
    Today again I checked the scenario once again in production with both user/role and found that workflow is triggered for both users...
    Also I tested in Test environment and issue is same..
    I checked the Perf Tracing and found the below. Please  let me know if these are triggered because of some Java...

  • Workflow getting triggered many times

    Hi all ,
      I m working on Travel management workflows. I have set the triggering event as BUS2089->Created . But Whenever I m saving a travel request , it is triggering the workflow which is not desired .
      How can this be rectified ???
    Thanks ,
    Sonu.

    See,
    I analysed the problem earlier.
    I switched on the EVENT TRACE and ran one TRIP CREATION cycle. I can find that BUS2089 - REQUESTCREATED event is triggered. Well, as per our scenario, I changed that Created Trip, and I can still find the BUS2089 - REQUESTCREATED event even for this action also.
    And If I am not wrong this workflow gets triggered for BUS2089 - REQUESTCREATED event(refer your Trip WF Basic Data-Start Events).
    So, to avoid this problem, I have used a USER EXIT for TRIP to trigger my WF manually.
    Please refer the enhancement <b>FITR0003</b> for the TRIP Userexit.
    I hope this should clear your problem as myn.
    Regards,
    <i><b>Raja Sekhar</b></i>

  • WorkFlow get triggered even if we set trigger for item update with SPEmailEventReceiver and workflow attached to same Library

    Hi All,
               I have a situation, SPEmailEventReceiver and WorkFlow is attached to same library, WorkFlow is configured to run after item is updated, but soon as the email is received in library the workflow
    is getting triggered, We have a action to create folder with subject and date and put the attachment with the date folder in SPEmailEventReceiver e.g: once a mail is received in library the SPEmailEventReceiver will create a folder with Subject and then Folder
    with Date and then put the attachment in the date folder so hierarchy will be subject folder/Date folder/attachment
    I have tried to alter the SquenceNumber attribute in Feature Element file to 1 and make the Synchronization as synchronous but no luck.

    Hi,
    Here are some articles for your reference:
    Programmatically creating Folders within SharePoint List
    http://www.mindfiresolutions.com/Programmatically-creating-Folders-within-SharePoint-List-487.php
    How to use SPEmailEventReceiver?
    http://kkryczka.wordpress.com/2010/11/05/how-to-use-spemaileventreceiver/
    Attachments disappear with custom email event handler
    http://blogs.msdn.com/b/malag/archive/2009/05/13/attachments-disappear-with-custom-email-event-handler.aspx?PageIndex=2
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • LSO - Wrong workflow getting triggered

    Hi
    I am using SAP Learning Solution from portal. When the employee applies the course from portal, the system shows a message 'Work flow Cancellation Requested' instead of 'Participation Requested'
    I checked in LSOWF_CUSTOMIZE, the customizing is maintained correctly. The table LSOWF_RUNNING shows that the action type requested as 'CANC' instead of 'BOOK'.
    I checked in SWEHR3 - there is no entry maintained. When I enable the event trace and do the course booking from portal - all I can see is only the even 'ATTENDANCE - CREATED';
    Can you please advice where could be the problem?
    Thanks and Regards
    Kasee Palaniappan

    Thanks for replies. The event linkage is set properly in the transaction SWETYPV.  When I enabled the event trace for workflow and triggered a course registration from portal - there are no events registered in the event trace.
    @ Pavan: I have checked the link, and configuration are maintained as recommended by SAP.
    The problem is, when a course registration is required - it automatically shows - the course is requested for cancellation. This is because the table lsowf_running is having the workitems for those trainingID with WFACTION as 'CANC'
    This means, when I request for a training course and later cancel it - the above said table is maintained with 'CANC' entries. I have not approved the cancellation of the course. If I rebook the course - the course still shows 'Booking Cancellation Requested' because the WFACTION is read for the training ID and the personal from the table lsowf_running.
    Any one has some idea, where could be the problem.

  • Workflow getting triggered even after event deactivation

    Hi All,
    I have created a copy template of standard workflow and activated event for copied template.
    Then I deactivated standard workflow event by clicking in GREEN icon in row where BO and triggering event is linked with workflow.
    Problem is even after deactivation, standard workflow is getting triggererd.
    Is any step skipped for deactvation of event and workflow?
    Kindly guide.
    Thanks.

    Check the event linkage in transaction SWETYPV (it should be similar as in the workflow builder).
    Also make sure that you are testing in the right client. The event linkage is client depended customization. So, if you made your change in client X, they will not work in client Y unless you transport the event linkage customization between the clients.
    Regards,
    Karri

  • 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);

  • Purchase Order Workflow - getting de-activated

    Hi All,
    We have a Purchase Order workflow that has been working well for quiet some time now. Over this weekend, we installed Enhancement Packs 1 to 3 and in the midst of testing in QA, I have noticed that, each time a PO workflow gets triggered, it de-activates the workflow causing other instances of the workflow to not be triggered.
    Each time, I have to go and re-activate the workflow.
    Has anyone faced such an issue and if so, what did you do to prevent them occuring.
    Thank you,
    Satish

    I think the person who is creating the PO do not have the Proper authorization hence this deactivating. This deactivating thing can be avoided by going to SWE2 and changing the Error on Feedback field to Do not change Linkage. I hope this will solve your issue. You can also try to find the event that have not triggered from Event Queue SWEQADM
    Thanks
    Arghadip

  • The workflow gets trigerred thrice...

    Hi,
    The trigerring event for the workflow is getting triggered thrice. The event is attached to bsvw and i have activated the event, thats it, but when i check in swel there are three entries having the same event. Any suggestions please..
    Regards,
    Sukumar.

    hi,
    Its  a simple logical expression which gets evaluated before the workflow gets triggered,in this way we can prevent the other workflows from getting triggered.
    Another option is to have a check function module.This helps in preventing most of the workflows from getting triggered.
    I hope this will be helpful to you.
    Regards,
    Saujanya

  • Multiple workitem is generated when a workflow is triggered

    Hi All,
            I have created a custom workflow for contract, Using the standard BO BUS2014 and the event Release Step Created.
    I have checked settings in SWE2, SWE3, SWEC and they look fine to me. The problem is when a contract is created which has release step then the workflow is generating two workitems for a single event trigger. Can you please help me out in finding this error.
    Looking for you kind co-operation.
    Regards
    PuspaSourav Biswas

    Hi,
    According to me there must be 2 Workflows getting triggered.
    Try checking the Workflow log of the 2 Workitems getting triggered & try identify the Workflow no's of these 2 Workitems.
    Is the Workitem text of the Workitems that get triggered identical ???
    You can try keeping some different text for your workflow to identify whether both come from the same workflow or not.
    This may help you identify whether both belong to ur workrflow or not.
    Also once the event is triggered you can go to swi1, put the Event Name & date & time & execute & check which workflows are triggered.
    I hope this will help you.
    Regards
    Mehreen

  • Workflow is triggerred in golden client

    Hi Workflow guru,
    i got a very unique scenario here. i did try to activate the standard travel request approval workflow. (ws20000050).  in my environment, i do have two client for the development server. one is served as configuration client and another is served as unit testing client.
    I also transport the necessary activation of the workflow from configuration client to unit testing client. However, when the workflow get triggerred, it is happened in the configuration client instead of unit testing client. (please take note that the portal is pointing to unit testing client.
    Can anyone throw any light on what are the possible steps that i did wrong?
    Regards.

    Hi Viji,
    i did the same as you mentioned. ithe workflow is triggered when i am doing the simulation of event also SWUD. however, it does not happen when i am doing the trip transaction. instead, it is pointed to the workflow in the configuration client.
    Is that any other possiblity that it will causing it?
    I vaguely remember that i did activate the binding in the configuration client for the workflow and transport it to the testing client. could it be the cause of it? if it is, is that anyway i can revert back to the original state?
    Regards,

Maybe you are looking for