Start events via change documents (BUS2009)

Hi All,
I'm currently working on ECC 6.0 and need help for starting events via change documents.
I want to restart a workflow whenever a cost centre in the PR is changed. So I have created an entry in SWEC with Change doc. object as BANF  and triggering event as On Change.
In the field restriction I have entered EBKN-KOSTL. I want trigger two events SIGNIFICANTLYCHANGED to end previously started workflow and RELEASESTEPCREATED to start the new workflow.
But whenever these events are triggered the new workflow starts with an error status and the old one remains as it is. The error for new workflow seems like there is no binding between triggered event object and started workflow.
Please suggest. m i missing something ?
Thanks,
Shounak

It's the same old bug. I think you have already configured the release strategy which triggers all the necessary events, now when you make entries in SWEC, this also triggers the event and the overlapping takes place resulting in the error you are getting. Either you remove the release strategy or the entries in SWEC. Further make sure you have terminating event "Changed" or "SignificantlyChanged" in the approval task based on your requirement.
For the conditions, you can either control using start conditions or using the release strategy Characteristic FRG_EBAN_KOSTL if you want to stick to release settings.
Regards, IA
Edited by: Imthiaz Ahmed on Jul 29, 2008 10:51 AM

Similar Messages

  • Create BO Event via Change Document

    Hello gurus
    I'm having some trouble creating an event via a change document for a custom Z table.  I've already followed the steps outlined in help.sap.com:
    1. Created the change document for the z table and generated the program.
    2. Made the Z table and its data elements relevant for change documents.  Did this through the Technical Settings for table (Log changes checkbox) and data element characteristics.
    3. Made an entry under "CREATE" in SWED for my new change document object, with the z table as the leading table and change document key with structure.
    4. Made an entry for my event in SWEC and linked it for a create of the change document.
    However, the event is not being fired when a new entry is made in the z table.  I set a breakpoint in the funcion module generated for the change document but it's not being detected apparently.
    Are there any further settings I need to look at/change for the change document to activate the event?  Thanks in advance
    Regards,
    Juan Ramos

    Hi Ramki
    Indeed, I consider using SAP_WAPI_CREATE_EVENT much, much simpler, but unfortunately it was another consultant, not me, who built the table, its code, and the code behind the z transaction where the table is used (and he's based offshore).  It was only just now that I also found the code he wrote for the txn. 
    If I would have to add code anyway to make the change document work, I'll just talk to the consultant to have him add the SAP_WAPI_CREATE_EVENT, or I'll just add it myself if I get permission from our development manager.
    Thanks for your help as always!
    Regards,
    Juan Ramos

  • Raise event on Change document STUE

    Hi,
    when I add a document to a doc. structure in tx. CV12, a change document is created with change object STUE. When I try to raise an event on this document structure, i get an error "Key for change doc. object STUE and business object type DRAW are incompatible". I get this, no matter what Business object i try to use.
    I have tried to make a new business object with the key from STUZ, which should be the leading table in the change document.
    Still i get no events, when changing the document structure. Any ideas, or other solutions?
    Kind regards
    Mikkel

    Hi Mikkel,
    If your key matches the table STUZ's key fields exactly then it should work. In other words two key fields STLTY STLNR. If not or if this is not what you want then you have two options:
    1. Use SWED to define the key for STUE to have a structure DRAW. You will need to create and enter a FM to read/convert the changedoc data and supply the correct key for your DRAW object at runtime since it's differetn from STUZ.
    2. As above, but try explicitly defining the structure for your custom object. Alternatively a dummy FM in here is useful to try to debug what's going on.
    Hope that helps,
    Mike

  • Event from Change document not triggerring

    Hi
    I've used chnage document FMRESERV to track change in table KBLP-DELTAWTAPP for any value change, but although I'm chnaging amount from FMX2, the event for this chanhe document is not triggerring. Can you please help me how to resolv the issue.

    Further, check if the change pointers are activated in transaction BD61 and if the pointers are maintained in transaction BD52. If these are maintained correctly along with the flag in the data element, the change pointers should be triggered.
    Does this help?

  • Triggering events using changed documents

    Hi friends,
                      In transaction SWEC, How can I use the two options 'On create' and 'on delete'.
    Thanks,
    Gaurav

    Check this beautiful [artcle|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/80ddeba4-e780-2b10-7bb2-fc7a33efabbd]

  • KNA1.CREATED with Event based on Change Documents -- No Receiver

    Good morning experts,
    I set up a subtype of Object KNA1 ZKNA1 with 2 events CREATED and CHANGED, KNA1 is delegated to ZKNA1.
    Additionally, I set up two ansynchronous methods "CREATEASYNCHRON" and "CHANGEASYNCHRONE" in ZKNA1, both are a simple CALL TRANSACTION, these methods should be terminated by the two mentioned events.
    I added 2 entries in TA SWEC for triggering the both events when change documents are posted --> works fine, everytime I create or change a customer the systems creates the linked event, the event container is filled with the customer number.
    Afterwards, I set up 2 standard tasks for the two mentioned methods with terminating event CREATED and CHANGED,  the Instance Linkage was done in TA SWEINST and is active.
    My problem now is that the event is triggered correctly, but the tasks are not getting terminated, the event trace also tells me that that there would be no event receiver entered.
    Can you tell me what I did wrong? I made this for a lot of other workflows before and everything worked fine, so I don't understand what's the problem...
    Thanks for your support!

    Hi,
    I am not sure if this will work...
    Simulate 1 event using SWUO...
    Under Potential tasks to be terminated... find your task ... right click-> Event Linkage -> Select "Event Linkage activated" ...
    and try once more ....
    Regards
    Gautam

  • Change document  - Workflow Event Container value not passed

    Hi Iam working on a customer create notification scenario where in we are sending a notification to SAP Inbox whenever a customer is created.We are checking industry key(KNA1-BRSCH) value through a check function module.When the customer is created in the system the system triggers the corresponding even it gets in to check module and an exception is raised saying Industry key does not have any value.
    Problem is Industry key value is not passed on to the container.
    Where might be the problem...?
    Is anything missing in SWEC(Events for change document)
    -but the event is trigerred...container value for industry key not passed...
    Please advice...
    Thanks in advance!

    Refer to link below.
    Sandy

  • Material bapi custom field change to be logged in change document

    Hello all,
    I have just added a custom field to MARA table (materials), and updated it successfully via BAPI_MATERIAL_SAVEDATA.
    I would like now to log changes via change documents but problem : after having changed value from "A" to "B" for example, I don't see the changes (to do this, I call function CHANGEDOCUMENT_READ with parameter OBJECTCLASS = "MATERIAL" and get results from returned EDITPOS parameter).
    What is surprising me is that I can see changes of other standard and custom fields (this was done by other people in my company 2 years before but I don't have any trace what they did).
    Do you have any idea what customizing need to be changed or what else need to be done, to log changes of new custom fields into change documents?
    Thanks a lot.
    sandra

    In this transaction, there is nothing related to fields; there are only objects (like MATERIAL) and tables (like MARA).
    I can't see anything which makes the difference between our 2 custom fields MARA-ZZCOLLANA (which is logged in change documents) and MARA-ZZSSCOLL (which is not logged in change documents).
    For info, my SAP version is R/3 46C.

  • Change document for internal orders - RKAUFTRAG

    I am trying to trigger a workflow event using change document RKAUFTRAG (internal order).  It works when I change the internal order, but not when I CREATE an internal order.  Any help?

    Hi Kenneth,
    I am facing the same problem for object class RKAUFTRAG, for creation i am not getting the data.
    please let me know the user-exit.
    it will realy helpful for me.
    with regards,
    Debdutta Dey

  • Change document for Maintenance Order Basic Start date

    Hi Gurus,
    I want to trace the changes to MO basic start date. But the change document indicator for MO Basic start date is not enabled.
    Is there anyother option to trace the changes to MO Basic start date??
    Thanks,
    Prabhu.

    Prabhu,
    Not all fields are tracked for changes.
    In the past we have developed some functionality to add these missing fields to the change documents.
    In this case you could utilise IWO10009 (at save event) to save the change documents.
    PeteA

  • Event DRAW CHANGED for task TS90000016 not defined as start/end event

    Hello,
    i have created a workflow with one task, this task is of object type DRAW and the method is CHANGED. and i want to trigger this task when the status of a document changes to completed.
    Now when i change the status of a document to completed, the workflow is starting but then throwing an exception. Here is what i am getting, any ideas as to why ?
    Event DRAW CHANGED for task TS90000016 not defined as start/end event
    Event linkage with errors deactivated
    from the swel event trace i am getting the following:
    the receiver <task> started correctly,
    then i get the following:
    Receiver FM SWW_WI_CREATE_VIA_EVENT_IBF
    message: Event DRAW CHANGED for task TS90000016 not defined as start/end event
    any ideas as to why this is happening and how i can fix it ?
    regards to all the experts out there
    points are awarded.

    Hi,
       If you want the task to be executed without any agent intervention follow this:
    In the transaction PFTC_DIS OR PFTC_CHG  open your standard task and
              see whether you have checked the ' background processing' option in    
              execution category.
    It seems the "changed" method in Draw object is synchronous - so you
               dont need any terminating events.
       else
    check for the bindings in workflow and make sure you dont make any
             container with import parameter as mandatory.
       Hope this will solve the problem.
    Regards,
    Manikandan R

  • Urgent - not able to add or change start events in workflow

    Hi,
      I have added one event as start event for a workflow. Now I want to change the event to some other event.
      But it is not allowing me to do any changes to the start events.It is showing a pop up window with 'Client 002 has status 'not modifiable' & 'Choose 'Display object' or 'Cancel'.' But it is allowing me to do changes to my workflow steps.
    Where is  the problem?
    Is there anything I need to check with some customizing? Is it a Basis related issue?
    Thanks,
    Sivagami

    Well it depends on the settings done by basis. But usually this message comes in when you try to modify a workflow/code in CLNT2 but the code was developed in CLNT1. The cause to it is the CTS is specific to the client in which it is created and you can`t add a task (subrequest ) to it in a different client.
    Solution: Check the client you are working in . Should help you !!
    Let me know if it does!
    regards
    Anuj Sethi

  • Raising event whenever a document gets changed

    hi all,
    how can we check whether any contents of table gets changed without using an abap report.
    the req is that i need to send a mail to another department whenever the content of table gets changed
    thanks in advance.

    hi,
    In order to record / log changes which are made to a business object an change document object must be created.
    then this change document object is then assigned to an event and then appropriate action ie. create/change/display is defined.
    the assignement between the change document is done using the tcode : SWEC
    so when an events get triggered based on whether the object was changed, displayed, created then a function module can be called . this can be done by using SWETYPV.
    in this function module we can then write the custom coding that we need.
    1. you create a object using SWEC and then assign an event to it in SWEC for change.
    2. then using SWETYPV you assign a receiver function to that event.
    3. now write the required custom coding in your function module.
    Hope this will help you!!!
    Thanks & Regards,
    Punit Raval.

  • In Work flow Iam enable to change the start event which I gave .

    In Workflow Iam enable to change the start event .The message is 'not modifiable'.

    Hi,
    1. If you are in QA or PRD system or rather in test client of development system, you will not be able to chage the event linkage as for these systems, client status is maintained as non-modifiable.
    2. second reason may be you are trying to change the event linkage when you are in diaply mode of transaction rather than chage mode !
    Hope this helps.
    Regds,
    Akshay

  • Problems with event when changing Purchase Requisition. (BO:BUS2009)

    Hi experts,
    I have a doubt with this. When i erase a position in the Purchase Requisition (ME52N), the event SIGNIFICANTLYCHANGED of BUS2009 is raised.
    When I try to modify the  Purchase Requisition not erasign the position but changing the Material group the event is not raised. Can i customize the system to define that changing the Material group is a significantly change for my system? If not, can i raise another event when this happens?
    Thanks!!
    Artur.

    Hi,
    Simply create a custom event called CHANGED in the BO.
    Create a entry for this event in SWEC tcode. Select the radio button on change.
    This should do the job.
    Note : This event will be raised for any kind of changes in this purchase requisition.
    Regards,
    Raj

Maybe you are looking for

  • How to restore file associations in Bridge CS5?

    Hi Some time ago I somehow lost file associations in Adobe Bridge CS5. Now when I doubleclick a RAW file (Canon .CR2 file) I get Firefox, when I doubleclick a JPG I get FastStone and when I doubleclick a PSD file nothing happens at all. Also Photosho

  • Messages "Item completely/partially delivered on purchasing documents

    Dear, We're testing the new layouts of the purchase documents for the upgrade to ECC 6.O and there is a problem with a specific message on item level. If a purchase order is changed, a message "Item completely delivered" or "Item partially delivered"

  • Phone book doesn't copy correctly to car kit

    Pl help. I have just bought a new 8310 and can't get the address book details to copy over into the memory of the integrated telephone kit in my Freelander. Landrover technical support tells me that the Blackberry is fully compatable with the Freelan

  • Do Oracle offer Professional Services for moving Exadata Boxes?

    Hi, I am doing some work for a client (unrelated to Oracle) and they need to move their Exadata Box from a Data centre to another about 200 miles away. But do Oracle offer such a service with warranties etc for failed disks blah, blah (in my world EM

  • Using my iPhone in Caribbean

    I'm going to the Caribbean in October and want to take and use my iPhone without it costing me a fortun. How do I go about it?