Event Linkage to Workflow

Hi,
I need to enable the Standard WF 1000105 PdvAppraisal for the Appraisal Approval/Rejection by Appraisee.
I enabled the Event linkage in the Trnx: SWETYPV.
Unlike the other WFs, this WF has the binding with the triggering Event deactivated.
I activated the binding, saved the WF. But after some time..approx 15 min, I check the binding linkage in other session and see it deactivated. The Linkage dint get saved actually. I am not sure of what might be the reason.
Please suggest.
Thanks,
Suryakiran D.
Thanks,
Suryakiran D.

Suryakiran,
I assume that this workflow runs every 15 minutes or is activated after the period and an error occurs during runtime.
One possible cause might be that something in your workflow or even the standard SAP WF went wrong. I've watched this behaviour, too when coding some own workflows before.
This means that the workflow system will deactivate any faulty workflow in case sthg. went wrong.
Perhaps you can check using transaction SM58 for any RFC errors or look into ST22 for short dumps.
Of course you could also debug ot test methods using transaction SWUD. Transaction SWU0 allows you to test event linkage.
HTH,
Michael

Similar Messages

  • Function Modules in Event Linkage

    Dear all,
    In the event linkage of workflow, we can find 3 types of function modules. They are receiver function module, check function module and receiver type function module. Can anybody explain what are they used for?
    Thanks + Best Regards
    Jerome

    Hi Jerome,
    Explanation for each of the FM's(Receiver Fm, Check FM, Receiver Type FM).
    <b>1) Receiver Function Module.</b>
    This is the main function module which will actually link the Object Event and Workflow Or Task.
    Ex Event : BUS2012.ReleaseStepCreated
         Workflow : WS20000075
        FM : ZReceiver.
    An Entry in SWE2(Event linkage) with above values Does mean "The workflow WS20000075 will start when Event BUS2012.ReleaseStepCreated is triggered with the help of ZReceiver ".
    All Receiver Function Module should have standard interface(Same input and table parameters specified by SAP).
    <b>2)Check Function Module</b>
    This function module is used to prevent the event linkage.
    It is called <b>before the Receiver Function</b> Module is being called.
    Lets take the above ex:
    Ex Event : BUS2012.ReleaseStepCreated
         Workflow : WS20000075
    In this case if you want to do some checks before actually linking the  BUS2012.ReleaseStepCreated and WS20000075 using Receiver Function Module then you can use Check function module to do validation and raise the Exceptions.
    If any exceptions are raised in the Check function module then The Receiver Function module will not be called hence no EVent Linkage.
    <b>3) Receiver Type Function Module</b>
    This is the <b>First function module</b> to be called among three if it is specified in SWE2.
    This Function module is used to find the Receiver type Dynamically. ie if you have not specified the reciever type(Workflow or Task) in SWE2 you can determine that at runtime using this Function module.
    Reward if its helps. Feel free to ask for clarifications.
    Thanks
    Praveen

  • How to find out the list of workflows with active event linkage?

    Hi All,
    I want to find out the list of workflows whoe event linkage is activated in the system.
    Through SWU0, we can get a list of workflows attached to a particular event of a business object.
    Thanks,
    Sivagami

    Hi,
    Thanx for ur reply..
    I got the list from the table...
    thanks,
    sivagami

  • Event Linkage Getting Disabled In PO release Workflows : Plz help

    hi all
    i am working on PO Release Workflow
    my problem is when I create PO and save it , the event  linkage in SWETYPV gets disabled
    plz help me its urgent.
    regards
    ravish

    Hi
    If you have an error in the event linkage (could be a binding error, or an error in your business object), the event linkage will deactivated (the standard customizing).
    You can change this behavior through transaction SWE2 -> double click on your event linkage -> change the "Behavior Upon Error Feedback". (I think you can change this globally but I'm not quite sure where)
    In my book best practice here will be;
    1. Use the event queue
    2. Set the "Behavior Upon Error Feedback" flag to something like "Keep linkage but flag as having an error" - I'm not on the system so I'm not quite sure what it's called
    By doing this you make sure that you will collect your event in the event queue, in case of an error.
    or
    In the detail screen of SWETYPV there's an option called Bahaviour upon error in receiver, if you change this to option 3 then the linkage won't be disabled in cases of errors.
    Sometimes you want the event linkage to be disabled in cases of errors, espescially when the only reason that an error can occur is a very serious one.

  • Workflow for PO-Event Linkage get unchecked after making Purchase Order

    Hi,
    I have a client reqiirement for setting Workflow for Purchase Order.
    I have done all the settings for PO Workflow. I am getting the mail for the first time but from the second PO onwards I am not getting the mail.
    When I checked the settings, the Event linkage in SWETYPV gets unchecked for BUS2012 Object Type automatically after making the first PO.
    Again when I activate that, I am able to get mail for the first PO only. From the second onwards, no mail is triggered.
    Could anyone suggest?
    Thanks,
    S.Raghavan
    Hi,
    I now have changed the "Behavior Upon Error Feedback" to "Mark Linkage as having Errors" in SWETYPV
    After this change if I make a PO, the link doesn't get break but "Receiver Status" shows "Errors".
    I could also see the overview of errors in Transaction code  SWEQADM. It shows 3event with Errors and 1 linkage with errors.
    I do not know in which event error is there and in which linkage error is there?
    Can anyone help to see the events and linkage where error persists?
    Edited by: S.Raghavan on Aug 30, 2011 6:22 PM
    Hi all,
    Any suggestion for the issue posted?

    In SWDD select WS 20000075 in the first task assign agents(users, ie create u r own users),
    without user IDs(as u r step 2).if u design "organization plan" then userID's r assigned (like manager,supervisor, clerk etc.,)
    try it

  • In HCM form & process Workflow event linkage changed to inactive status.

    Hi,
    In HCM  form & process event linkage is activated in HRASR_DT and workflow object .
    Now once we complete the process from EP portal ,reference number is generated and enteries are created in  table T5ASRPROCESSES .
    In SWEL,event is triggered and linked with the same workflow.
    Now the problem is,thesre is no workitem in SWIA with this workflow numbmer and the event linkage also changed to inactive status ( both in proces and  workflow )after we complete the process from EP.
    Thanks
    Manoj

    Hi
       When you are delaing workflows with HCM Process and form the behaviour is slightly different from the normal.. In order to check why the event linkage is inactive the possibilities are
    1. Either there are some chnages done in the workflow  and it is not activated from the transaction HRASR_DT.
    2. The other possibility is that you might have directly actovated the workflow from SWDD transaction and if you have done in this way then it is a wrong way of generating and activating the workflow
    Follow the below steps to find the error
    1. Execute HRASR_DT txn and try to activate the workflow from here. If you try to activate the workflow from this transaction the check function module which is linked to the workflow will be knowing that for which specific process which workflow has to be triggered..
    so in HCM process and forms frame workf it is always suggestable that try to create the workflow from HRASR_DT transaction using forward navigation and activate the respective event linkages.
    The other point you need to check is make sure that all the respective program exit classesare included in the basic data of the workflow other wise even if you miss the program exit classes in the basic data the workflow will not be able to start its process/execution.
    Regards
    Pavan

  • How to ensure the event linkage of the Workflow active/enabled?

    Dear Experts,
    Iam new to the Workflow. We have one Workflow event linkage not activated/Enabled in the production system eventhough it was active in DEV as well as QA. We have transported the Customising request to enable event linkage in Production.
    my question is why the event linkage is deactivated/disabled in Production?
    is there any way to ensure that it (event linkage) will not be disable in production system? (please answer to this)
    Please suggest .
    Warm Regards,
    Murthy.

    Hi
    When there is an error in event, then linkage often gets broekn. In SWE2 or SWETYPV settings, Behaviour error upon feedback make it as do not change linkage.
    This will sure that when there is an error, only that workflow will be in error mode and event linkage is not broken.
    Regards
    Sachin

  • Event Linkage for custom Workflow and Custom BO

    Hi Friends,
    I have created one Custom Module Pool, Business Object and Workflow Definition. In Business Object I have created one Business Event and the event is triggered from Custom Module Pool using function module SWE_EVENT_CREATE. I have created event linkage in transaction SWETYPV and receiver type given Workflow Template No: (WS*) and receiver function Module SWW_WI_CREATE_VIA_EVENT_IBF and checked Event Linkage Active checkbox. Finally I have activated the Triggering Event in the Workflow basic data section. But the Workflow is not getting triggered. Can anyone of you give me a solution for this or tell whether i missed any of the setting for the workflow?
    Regards
    Sujith

    Hi Sujith,
    Did you include a commit work statement after the call to SWE_EVENT_CREATE?
    Regards
    Gareth

  • Reason and details for Deactivation of Event linkage in Production

    Hi Friends,
    Recently I have come across Event deactivation For AP invoice, Vendor Creation and Customer Creation workflows in Production, I have checked further and found that those are set as deactivate event linkage as default system behavior.
    So that mean when ever an error will occur while event triggering then linkage will be disabled by the system.
    Correct me if I am wrong.
    So friends, my big doubt her is that What all are can be the reasons for that system error?
    *And How I can get details for those errors? *
    Regards
    Dev

    Hi,
    While defining the Event linkage in SWETYPV ->
    When ever u click on Business object it will open one new window ->
    In that window -> There are four options to define in the field
    Behaviour upon Error Feedback -> system defaults
                                                      Deactivation of linkage
                                                      Mark linkage as having errors
                                                      Do not change linkage
    if the linkage is not activated as per the syatem defaults ( when ever error occurs)
    You need to specify the type as -> Do not change linkage
    Please check the four options once u will come to know the difference.
    And also please check the following link
    [http://mailman.mit.edu/pipermail/sap-wug/2004-October/014617.html]
    Edited by: vijayareddy on Jun 1, 2009 11:56 AM

  • Event Linkage

    Dear Experts,
    I have configured the standard workflow for PO ws20000057. Its working perfectly in my development system. I transport the customizing request for the workflow to quality system. There in SWDD basic data I see that as a result of TR transport the triggering event is active and green. But when I put a PO to test the workflow in QAS the event linkage becomes deactivated automatically. Can you please tell me why is this happening.
    KR,
    Bharath

    Dear Swami,
    As suggested by you I maintained prefix nos in quality sys. The props in quality sys wf was,
    1. I used ZBUS2012 and delegated it to BUS2012. But this ZBUS2012 was locked in a TR which I did not transport to quality sys. So when I checked the wf in quality sys I got message as 'ZBUS2012 is not actively available'. Now I released that ZBUS2012 TR from dev sys to qual sys. Also I transported the delegate TR. Also the active version of workflow in dev sys was not same as that of qual sys. So I generated active and runtime version of wf in dev sys. This asked for a TR. I transported this TR also to qual sys.
    This successfully solved the problem. Thanks a lot everyone for all your replies.
    KR,
    Bharath

  • The XPRA for converting the event linkage (RSWFEVTXPRA)

    Hi
    We have just completed a couple of upgrades from 46C to ERP2005 ECC6 and we have discovered a problem with the workflow in that some of the event linkages are lost during the upgarde.
    We have found the following SAP notes 1082490, 1019080 and have also been advised that we should remove the program RSWFEVTXPRA from the upgrade but there are no instructions for doing this.
    Has anybody experienced the same kind of problem and if so how was the problem overcome.
    Many Thanks
    Steve

    Hello Steve,
    Please look at the following OSS Notes for workflow issues
    1092157
    1083317
    1075730
    1060762
    1058159
    1055045
    1049570
    1043988
    1031216
    1019080
    1017567
    1008778
    991585
    991379
    988191
    987978
    975851
    960783
    956559
    950861
    939489
    931519
    924388
    921775
    905029
    881160
    859293
    215753
    1019850
    Better still if you can upgrade to SAP Basis 700 SP SAPKB70014. This will take care of most of your issues.
    Regards,
    Amol
    Reward points if helpful

  • Alert Management-"Alerts with Event Linkage" Generate Duplicate Workitems

    Hi Gurus,
    I just finished the tutorial, "Triggering ALM Alerts with Event Linkage" step by step. It trigers an alert by business object bus2012. With the setting of event linkage, it works fine to post alert when POs are changed.
    However, it generates duplicate workitems at Alert Inbox.
    Could you provides any suggestions to solve it out?
    Cheers,

    Hi,
    Are you using a triggering event to start the workflow? Please check the event trace to see if 2 events are bing raised. If so then please check if you or someone else have maintained and entry in SWEC (Change documents) to raise this event also. This may be the reason for 2 events.
    Regards,
    Eddie

  • Event linkage deactivated after executing the work flow

    Hi Experts,
    We are facing a problem in the production with Event linkage activation.After Event linkage was activated (ENABLED = u2018Xu2019 in the table SWFDEVENA) and if we execute the workflow then again this linkage is deactivated(Enabled value is cleared).if we activate the linkage and execute the work flow again after work flow exectution event linkage will be deactivated.Could you please  give the solution if any one face this issue.
    Thanks and Regards,
    venkat

    Hi Rickk baker,
    Thanks for your answer.Now my issue was resoved .This is because of some mandatory work flow container parameter value is missed in the programme.This was traced throgh event trace(swel and swels)
    Thanks and Regards,
    Venkat Marisetti

  • IDOC event linkage deactivated automatically

    HI All,
    We are facing an issue in Production. IDOC event linkage deactivated automatically when we execute one custom transaction.
    Below is the log from Workflow trace SWEL transaction.
    IDOC     PROCESSSTATEREACHED     10.11.2010     09:25:43     TS30200090     @5C\QFeedback after error@     SWW_WI_CREATE_VIA_EVENT
    IDOC     PROCESSSTATEREACHED     10.11.2010     09:25:46     TS30200090     @5C@     Deactivated
    Could you please let me know what is the actual issue.
    Edited by: Phanindra Annaparthi on Nov 10, 2010 8:10 AM
    Edited by: Phanindra Annaparthi on Nov 10, 2010 8:12 AM

    Hello,
    Check the event log (SWEL) for the actual error. Could be a missing mandatory parameter.
    regards
    Rick Bakker
    hanabi technology

  • Event Linkage and Instance Linkage

    Hi WF Gurus,
      I want to what is the difference b/w Event Linkage(SWE2) and Instance Linkage(SWEINST).In which case an entry is put into the Instance Linkage table.
    Regards,
    Sapient

    Hi,
    <i>Event linkage SWE2:</i>
    A type linkage must be created if the system is always to react to an event of a particular object type.
    If events are used in SAP Business Workflow (as triggering and terminating events, for wait steps), the entries required are made by the workflow system.
    Instance Linkage SWEINST:
    The instance linkage describes the assignment of a receiver instance to a particular combination of object type, object key and event.
    i.e. this type of linkage is to be used when event needs to be raised is concerned with particular instance of an object.
    The workflow system defines an instance linkage when work items wait for an event. e.g. Wait step work items
    Hope this helps.
    Regds,
    Akshay
    PS : Some points would be nice if it helps.

Maybe you are looking for