<?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: table maintenance events in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-events/m-p/6966916#M1490644</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;Use the Event 25 for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Sumodh.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jun 2010 12:38:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-21T12:38:32Z</dc:date>
    <item>
      <title>table maintenance events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-events/m-p/6966915#M1490643</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 have written below code in table maintenance events '01' - 'Before saving the data in the database' in one of my table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; LOOP AT total.
IF &amp;lt;action&amp;gt; EQ 'U'.
      wa_zins_log-mandt              = sy-mandt.
      wa_zins_log-execution_date     = sy-datum.
      wa_zins_log-execution_time     = sy-uzeit.
      wa_zins_log-userid             = sy-uname.
      wa_zins_log-modification_ind   = 'M'.
      wa_zins_log-program_id         = 'ZINS_RTO'.
      wa_zins_log-program_name       = 'ZINS_RTO'.
      wa_zins_log-field_name         = ''.
      wa_zins_log-old_val               = ''
      wa_zins_log-new_val            = total+3(4).
      wa_zins_log-serial_no          = '1'.
      INSERT zins_log FROM wa_zins_log.
      CLEAR wa_zins_log.
    ENDIF.
  ENDLOOP. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in above code, I have to populate field_name, old_val from system.  Field name should be the changed field of the table and old_val should be fieldvalue before change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jun 2010 11:53:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-events/m-p/6966915#M1490643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-21T11:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: table maintenance events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-events/m-p/6966916#M1490644</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;Use the Event 25 for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Sumodh.P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jun 2010 12:38:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-events/m-p/6966916#M1490644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-21T12:38:32Z</dc:date>
    </item>
  </channel>
</rss>

