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.

Similar Messages

  • Documents get changed

    I have copied files from work to home Windows machines using .bat files and a camera card. Because my iPod has more room, I thought I would copy pictures using it. I also copy photos on it, copying them to relative's photos. It is formatted for Windows, although I use it also with my wife's iMac.
    When I copied photos to my Mom's computer, it had some extra Mac looking files (.jpg). I just ran my .bat file to copy files to a Windows machine, and it created tiny files such as "._Trivia Apr 3 2006.doc" instead of larger files such as "Trivia Apr 3 2006.doc". I can't open these. They are word documents containing photos.
    What's going on?

    I have copied files from work to home Windows machines using .bat files and a camera card. Because my iPod has more room, I thought I would copy pictures using it. I also copy photos on it, copying them to relative's photos. It is formatted for Windows, although I use it also with my wife's iMac.
    When I copied photos to my Mom's computer, it had some extra Mac looking files (.jpg). I just ran my .bat file to copy files to a Windows machine, and it created tiny files such as "._Trivia Apr 3 2006.doc" instead of larger files such as "Trivia Apr 3 2006.doc". I can't open these. They are word documents containing photos.
    What's going on?

  • 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

  • Raising event when value for a parameter in alert monitor changes

    Hi All,
    We are using Redwood Cronacle version 7 and have connected it to SAP solution Manager System to get the central monitoring data. Now we want to raise a particular event whenever value for a specific parameter in alert monitor gets changed.
    I had a look of already present functions in JCS_MON package, but was not able to find any pre-existing function.
    Any pointers on how to achieve this...
    Thanks a lot.
    Best regards,
    Vithalprasad

    Hi Anton,
    Thanks for your reply. We want the event to be raised on one of the parameters which is coming from SAP solution Manager. This event is required to be raised every time the value of that parameter gets changed from its current value. So it is not possible to define some severity where value can be defined.
    One way can be to store the previous value in one custom table in repository and keep on checking with the present value. Once the difference is found then raise the even & replace the current value with the new value. But just want to know if there is some better solution for this.
    Thanks a lot.
    Best regards,
    Vithalprasad

  • How to trigger a event when WBS gets changed in Cj02

    Hello,
    I have a requirement where I need to send create an idoc and send the idoc to external system when WBS is created or changed.  Currently, I have the following setup:
       - I have created a YBUS2054 as a subtype of BUS2054 using SWO1
       - YBUS2054 has been delegated to BUS2054
       - created an CHANGED event in the YBUS2054. This event is implemented and then released
       - created a type linkage (object type=YBUS2054, event=CHANGED, receiver type null, and receiver function module = zz_create_wbs_idoc) using SWETYPV. This function is supposed to create an idoc when CHANGED event occurs. I just don't know how to trigger the event to occur.
       - all the port, define idoc type, logical system, and etc are setup
       - when I try to create an entry in "Event for Chagne Document" using SWEC with change doc object=PROJ, business object type = YBUS2054, with on change, I get "Key for change doc object PROJ and business object type YBUS2054 are incompatible".
    I tried various configurations, and I was not successfully in creating an event on CHANGED
    can you please advise what I am missing in getting the changed event to trigger?
    Thank you in advance,
    Shawn

    Hi,
    If the change doc doesnt exist, check if you can create an event using BSVW.
    Also use the event log to see if there are other sap standard events happening.
    I checked the package belonging to CJ02 to see if there is something useable, but didn't find anything: CN_PSP_OPR
    If there are no sap standard ways to get an event, you'll have to find a badi/enhancement spot and include some coding to start the event using fm SAP_WAPI_CREATE_EVENT.
    Kind regards, Rob Dielemans

  • HT4759 How do you get changes made to your documents on a Windows 7 computer show up in your documents on your iPhone?

    How can I get changes made in documents on my Windows 7 computer to show up in the documents on my iPhone 5?  These documents show up in ICloud without showing the changes.

    You have to be accepted into the Apple Beta program before any of that works.

  • How to get value of MA attributes on Contract Document phase change script

    Hi,
    I need to get value of Master Agreement attributes on Contract Document phase change.
    When Contract document phase changes to Supplier Draft, I want values of Master Agreement - Publish date, vendor visible, email.
    But I am unable to retrieve the same.
    I wrote IBean code to get but was not working.
    Please help me resolve this issue.
    Thanks,
    Saloni

    Hi Saloni,
    There is nothing different that you should do for this script.
    Use the getParentIBean() function on Contract Document to get the parent MA/SA. From there on it is as simple as using the correct getters to fetch the values.
    Hope this helps.
    Thanks
    Devesh

  • I keep getting this error "This document was changed in another application" but I am not opening this doc in another application

    Pages 5.2
    OSX 10.9.2
    I have been getting this error (on keynote as well)
    "This document was changed in another application. To work on that version, click Revert. Changes you made here will be saved as a version on your Mac.  Tip: If you’re using an online storage service, avoid opening the same document on multiple computers at once"
    I am only working on this doc on my MacBook Pro (Ipad is OFF),
    not running pages on my phone
    not logged into iCloud in safari
    document saved to my hard drive (not iCloud or dropbox)

    Getting the same message. Started with the latest update a few days ago. So I guess it's a glitch in the current version and hope Apple will solve that soon by issuing another update which fixes that. It's really annoying and makes it quite impossible to use the application at all.
    Meanwhile open Pages, go to Pages, Provide Pages Feedback, choose Feedback Type: Bug Report and explain the problem in the Comments box.
    http://www.apple.com/feedback/pages.html
    I think that's all you can do for now. But it's important for people to report the problem since I don't know how closely Apple is monitoring these Forums.

  • How can we track the entire event in which the form mode gets changed?

    If the form is in OK Mode and if the user edits any field(Including UDF Window Fields). form mode changes to Update...So at that time, how can we track the entire event in which the form mode gets changed?
    Thanks
    Hari

    Dear hari angamaly,
    You could get the form mode by FormMode Property in ItemEvent Object in UI API.
    Best Regards
    Jane Jing
    SAP Business One Forums team

  • When I up-load to the cloud to convert to Word, then down-load, all kinds of distortions happen. Paragraph structure, anything hand written on the document, etc., etc., gets changed and/or gets distorted.  WHY?

    When I up-load to the cloud to convert to Word, then down-load, all kinds of distortions happen. Paragraph structure, anything hand written on the document, etc., etc., gets changed and/or gets distorted.  WHY?

    Moving this discussion to the Adobe Acrobat.com services forum.

  • Get document closed event on any document, not only active one

    Hy
    I'm want to know if it's possibile to have a csxs event on any document taht the user closes. I'm now using documentAfterActivate to see when a user's activates a new document, by I want to be able to tell if the user has closed a document, even if it's not the active one in that moment.
    this is my code
         var csInterface = new CSInterface();
         /** other non influent code **/
         csInterface.addEventListener("documentAfterActivate", newDocumentOpened);
    But I can't find any event that suites my needs.
    Ssomeone has a clue? thank's.

    Hi,
    Looks like there are no AfterDocumentClose csxs event but you know that already. There are however regular AFTER_CLOSE event in InDesign Object model but it implies using a persistent engine. I have no idea how this would work combined to an extension.
    Another way I used with flash extensions was using some kind of interval to regularly check things unreachable in the object model.
    Loic

  • RAISE EVENT usage in real world

    Hi,
    I wonder what is the advantage of the statement RAISE EVENT in contrast to a normal call to a class method.
    Given the following example coding:
    METHOD pai_0100.
      CASE ok_code.
        WHEN 'START'.
          RAISE EVENT read_sflight_data_event EXPORTING i_carrid = i_carrid.
      ENDCASE.
    ENDMETHOD.
    This will raise the event read_sflight_data_event. This event calls the method read_sflight_data set as handler in the class constructor:
    METHOD constructor.
      SET HANDLER me->read_sflight_data FOR me.
    ENDMETHOD.
    Reading data from database...
    METHOD read_sflight_data.
      IF NOT i_carrid IS INITIAL.
        SELECT * FROM sflight INTO TABLE gt_sflight
          WHERE carrid = i_carrid.
      ELSE.
        SELECT * FROM sflight INTO TABLE gt_sflight.
      ENDIF.
    ENDMETHOD.
    Of course I could have written, too:
    METHOD pai_0100.
      CASE ok_code.
        WHEN 'START'.
          me->read_sflight_data( i_carrid = i_carrid ).
      ENDCASE.
    ENDMETHOD.
    Which results in exactly the same result of course, however what is the advantage of events in real world? When is it useful to raise an event instead of calling the event handler directly?
    Thanks for shedding some lights on this topic.

    You don't have to look far to get real world SAP examples for event handling:
    <ul style="list-style:circle!important">
    <li>Workflow (e.g. trigger an event upon creation/change of a document)</li>
    <li>ALV (e.g. react to user input like a double click)</li>
    <li>Job control (e.g. fire a job upon a specific event)</li>
    </ul>
    When you look at the examples it's obvious that the event producer doesn't necessarily know anything about any possible future event consumers: You can ignore events, have one or multiple listeners and the listeners are usually separate from the coding unit that raised the event. Note that it depends on the event handling framework how events are processed (e.g. asynchronous versus synchronous, sequential versus parallel). For class based events the event handler processing is synchronous and sequential; for multiple event handlers their execution sequence is based on their registration order (see [raise event|http://help.sap.com/abapdocu_70/en/ABAPRAISE_EVENT.htm]).
    In a simple example like the one you gave I'd say the event handling approach is possibly questionable (at least as long as all the event listeners are within the same class and there is clearly no need for other objects to listen to this event). Anyhow, the example is probably designed to show the gist of event handling, but sometimes examples from SAP look overly complicated because they seem to prefer the [SoC|http://en.wikipedia.org/wiki/Separation_of_concerns] design principle over [KISS|http://en.wikipedia.org/wiki/KISS_principle] (couldn't resist this little rant).
    Cheers, harald

  • SD : Ship to party and bill to party address getting changed in sales order

    Dear All ,
    We are facing a problem in production client regarding Ship to party and bill to party address getting changed at the sales order level. First of all , i would like to discuss the sales business process in which the problem is getting faced.
    Step 1 : The sales order is created for machine with all relevant details and the ship to party and bill to party address is changed as per the business requirement.
    Step 2 : The outbound delivery is created with reference to sales order.
    Step 3 : The commercial invoice, intercompany invoice and excise invoice is created.
    Step 4 : The Credit memo request is created with reference to commercial invoice no.
    Step 5 : The Credit memo is created.
    Step 6 : The FOC value contract is created with reference to credit memo.
    Step 7 : The FOC release order is created with reference to value contract, where ship to party and bill to party address is changed as per requirement.
    Step 8 : Outbound delivery is created for realse order.
    Step 9 : The FOC invoice is created.
    The problem is the moment we change the address in step 1 , the system gets in manual mode. Hence, whenever Bill to party and ship to party address is changed at Step 7, the same gets replicated at the machine invoice level which is incorrect.
    Please comment / reply ASAP.
    Regards.

    During the manual change if you  want to assign a new address number (which
    prevents the changing of the address in the preceding document),
    you can use Note 97832 (modification).

  • Invoice Document currency change

      Hi Everyone,
    I want to change the document currency in the intercompany invoice.  Can this be done without user exit , Can this be done using the copycontrols ??
    Or
    If userexit is the only option then please tell me the correct user exit for the same.
    Please help me .
    Regards

    This is the legal requirement
    In that case, it is better to raise an OSS message and get confirmation from SAP that there is no standard way to achieve.  But in general, for all legal requirements, SAP are suppose to support.  So before doing any coding corrections, take the concurrence from SAP
    G. Lakshmipathi

  • Raise event doesn't work on postback?

    I have this code on a search portlet that has a DIV container. The code below works fine with the alert but without it the raise event is ignored.
    handleControlGridResponse = function(response) { // Get the container whose contents we want to refresh    var container = document.getElementById('ControlGridContainer'); // Redraw it with the text of the response   container.innerHTML = response.responseText;     if (response.responseText.indexOf("Only One Row") != -1) {   var startIndex = response.responseText.indexOf("*Only One Row*") + 14;  var endIndex = response.responseText.indexOf("*theEnd*");  var len = endIndex - startIndex;  var ID = response.responseText.substr(startIndex, len);
    document.PCC.PutSessionState("urn:Cognex.productportal.com:proditeminfo", "Picked_id", ID); document.PCC.RaiseEvent('urn:Cognex.productportal.com:RecordSelected', 'RecordSelected', 'fill portlets'); alert(ID) } }
    How do I get this to work?
    Thanks.

    I tore my hair out over the same issue. Based on SaitoLux's suggestion, I decided to try deleting and reinstalling the prefs panel for my Logitech mice (Logitech Control Center).
    Success!
    If you've got this problem and you have a non-Apple mouse driver installed, try deleting and reinstalling. Can't explain why it worked, but happy it did.

Maybe you are looking for

  • Unable to see the personalization link on any page

    Hi, I am unable to see the personalization link on any of my pages (not even on login page). I am setting the profile option value to "Yes" for the profile option FND: Personalization Region Link Enabled Also I have bounced the Apache. Please help me

  • J1IEX  Issue

    While Doing the Posting in J1iex I m getting the Following message FI/CO interface: Inconsistent FI/CO line item data for updating     Message no. RW016

  • Freight in PLD

    Hello Experts, I have a situation like below. Any suggestion highly appreciated in an AR invoice, there are, say, two kind of freights namely... 1. A 2. B Now if i give value to two of this charges, (A = 1000, B= 500), i need to show accordingly in P

  • Customize Font size and color of text

    Hey guys, Sorry if this is basic, as I am new to this, and did a search but see anything, I am sometimes having a bit if tough time reading some of the fonts on the phone. I tried the black to white/white to black option under settings/general settin

  • Adjusting the Local Layout (GUI settings) from abap

    Hi, Is is possible to adjust the local layout (GUI settings) from abap program? Ex. Local layout --> options --> cursor settings --> (cursor position) Automatic TAB at Field End Kind regards, Keld Gregersen