<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Trigger event on Table Update in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-event-on-table-update/m-p/1048558#M88582</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; One way of achieving this is to create &amp;amp; trigger a workflow event whenever there is any change to the particular table, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Dec 2005 06:06:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-08T06:06:44Z</dc:date>
    <item>
      <title>Trigger event on Table Update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-event-on-table-update/m-p/1048557#M88581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to trigger some event/program whenever a particular table is updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to create triggers on SAP tables at database level like we do in SQL? If yes how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2005 06:03:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-event-on-table-update/m-p/1048557#M88581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-08T06:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger event on Table Update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-event-on-table-update/m-p/1048558#M88582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; One way of achieving this is to create &amp;amp; trigger a workflow event whenever there is any change to the particular table, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2005 06:06:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-event-on-table-update/m-p/1048558#M88582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-08T06:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger event on Table Update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-event-on-table-update/m-p/1048559#M88583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Darshil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SET_REGISTERED_EVENTS&amp;lt;/b&amp;gt; You can use this method to handle system events triggered during appointment processing in accordance with the appointment type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the links to know more abt events.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/9f/db9a1435c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/9f/db9a1435c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps u,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagarajan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2005 06:09:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-event-on-table-update/m-p/1048559#M88583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-08T06:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger event on Table Update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-event-on-table-update/m-p/1048560#M88584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sailatha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I trigger a workflow event whenever the table is updated?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2005 06:13:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-event-on-table-update/m-p/1048560#M88584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-08T06:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger event on Table Update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-event-on-table-update/m-p/1048561#M88585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use a workflow ( a simple single step task would do in this situation ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically the procedure would be to trigger an event whent the table is updated.  This event would be the "Triggering Event" for the workflow task which would respond every time the table was updated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the table is an SAP table check the technical settings on the table to make sure the "log changes" checkbox is selected. If it is you can link your event to the change document that is written when that table is changed.  The change document would raise the event, the event would trigger the workflow task and the task would do whatever work you need done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the table is a custom table you can skip the change document.  Find the custom code that updates the table and use one of the "SAP_WAPI......" function modules to create the event manually which will trigger the workflow task (Make sure not to create the event until the database has been successfully updated)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still another method would be to read the change log tables CDHDR and CDPOS with a periodic job looking for the objects you want to monitor and then execute your code when and if you find changed recorded.  This would avoid a workflow but it would not be a "real time" process and those tables get pretty big in a production environment. Still, it is a simply way to do it if real time is not required and you want to avoid more complex development.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2005 16:44:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-event-on-table-update/m-p/1048561#M88585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-08T16:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger event on Table Update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-event-on-table-update/m-p/1048562#M88586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using table maintenance generator, you can create events for different level of databases like database update,before inserting record etc. The menu path for this is , from se11 transation click utilities - &amp;gt; tablemaintenance generator(transaction : se55). From the table meaintenance generator menu click &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Environment-&amp;gt;modifications-&amp;gt;events. &lt;/P&gt;&lt;P&gt;2. click on create new entries button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select the new event and assign a new perform name. &lt;/P&gt;&lt;P&gt;Press enter and click the editor button which will lead you to ABAP editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can raise the registered events using the function module BP_EVENT_RAISE. The events  have to be registered using transaction code SM62. You can code any valid abap statements in the perform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. Please award appropriately if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2005 17:49:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-event-on-table-update/m-p/1048562#M88586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-08T17:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger event on Table Update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-event-on-table-update/m-p/1048563#M88587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please close the post if the issue is resolved and award the points appropriately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2005 13:11:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/trigger-event-on-table-update/m-p/1048563#M88587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-09T13:11:06Z</dc:date>
    </item>
  </channel>
</rss>

