<?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 Change Record in Table Maintenace using Events in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720686#M1771104</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 a z table and have created table maintenanace for it. In my Z table I have below fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delivery no&lt;/P&gt;&lt;P&gt;delivery type&lt;/P&gt;&lt;P&gt;created on&lt;/P&gt;&lt;P&gt;created by&lt;/P&gt;&lt;P&gt;changed on&lt;/P&gt;&lt;P&gt;chnged by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am creating a new entry. Created on and Created by are geeting filled automatically using Event 05.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, When I am trying to change the record any field. Change on and changed By are not getting filled in the maintenace screen as well as in database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how we can handle this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Aug 2013 07:15:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-08-19T07:15:33Z</dc:date>
    <item>
      <title>Change Record in Table Maintenace using Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720686#M1771104</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 a z table and have created table maintenanace for it. In my Z table I have below fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delivery no&lt;/P&gt;&lt;P&gt;delivery type&lt;/P&gt;&lt;P&gt;created on&lt;/P&gt;&lt;P&gt;created by&lt;/P&gt;&lt;P&gt;changed on&lt;/P&gt;&lt;P&gt;chnged by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am creating a new entry. Created on and Created by are geeting filled automatically using Event 05.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, When I am trying to change the record any field. Change on and changed By are not getting filled in the maintenace screen as well as in database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how we can handle this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2013 07:15:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720686#M1771104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-19T07:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Change Record in Table Maintenace using Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720687#M1771105</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;May be you need to do it in the following event:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;Before saving the data in the database&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below link for further details:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://wiki.sdn.sap.com/wiki/display/ABAP/TABLE+MAINTENANCE+GENERATOR+and+ITS+EVENTS" title="http://wiki.sdn.sap.com/wiki/display/ABAP/TABLE+MAINTENANCE+GENERATOR+and+ITS+EVENTS"&gt;http://wiki.sdn.sap.com/wiki/display/ABAP/TABLE+MAINTENANCE+GENERATOR+and+ITS+EVENTS&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Arindam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2013 07:22:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720687#M1771105</guid>
      <dc:creator>arindam_m</dc:creator>
      <dc:date>2013-08-19T07:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Change Record in Table Maintenace using Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720688#M1771106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table maintenance event 5 will be triggered only, when a new entry is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try other events like 01(Before saving) or 02(After Saving) to fill change date and change time while changing a table entry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this Helps&lt;/P&gt;&lt;P&gt;Sreedhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2013 07:26:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720688#M1771106</guid>
      <dc:creator>chittari_sreedhar</dc:creator>
      <dc:date>2013-08-19T07:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Change Record in Table Maintenace using Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720689#M1771107</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 event number 01 to serve your requirement.&lt;/P&gt;&lt;P&gt;And in subroutine,use EXTRACT and TOTAL internal tables to update your database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXTRACT and TOTAL are system defined internal tables.Check for these tables on internet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would help you.Let me know if you want more help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abdul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2013 08:10:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720689#M1771107</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-19T08:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Change Record in Table Maintenace using Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720690#M1771108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikas,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; you created table key field is delivery no.&lt;/P&gt;&lt;P&gt;can you check the one how to created table entries and events in table maintenance generator&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://wiki.sdn.sap.com/wiki/display/ABAP/TABLE+MAINTENANCE+GENERATOR+and+ITS+EVENTS" style="font-size: 12px; background-color: #ffffff; color: #3778c7;"&gt;http://wiki.sdn.sap.com/wiki/display/ABAP/TABLE+MAINTENANCE+GENERATOR+and+ITS+EVENTS&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2013 08:20:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720690#M1771108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-19T08:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Change Record in Table Maintenace using Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720691#M1771109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abdul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked in Debugging mode and changed the values. It worked. but not sure how we will achieve this through code because the values are coming as text in field LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2013 09:24:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720691#M1771109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-19T09:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Change Record in Table Maintenace using Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720692#M1771110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How many screen do you have...?&lt;/P&gt;&lt;P&gt;These discussions happened lot of times in SCN. so Please be specific about the issue.&lt;/P&gt;&lt;P&gt;You can achieve it several ways.. Using Events or using PBO/PAI code of the particular screen in the TMG and the Function Group. What is your problem exactly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2013 09:44:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720692#M1771110</guid>
      <dc:creator>Venkat_Sesha</dc:creator>
      <dc:date>2013-08-19T09:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Change Record in Table Maintenace using Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720693#M1771111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vikas ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to use&amp;nbsp; 01 event instead of 05 as you already create the record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;Before saving the data in the database&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt; 02&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;After saving the data in the database&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt; 03&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;Before deleting the data displayed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt; 04&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;After deleting the data displayed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt; 05&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;Creating a new entry&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2013 09:54:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720693#M1771111</guid>
      <dc:creator>SwadhinGhatuary</dc:creator>
      <dc:date>2013-08-19T09:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Change Record in Table Maintenace using Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720694#M1771112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the issue exactly??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abdul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2013 11:13:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720694#M1771112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-19T11:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change Record in Table Maintenace using Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720695#M1771113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Vikas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The event 05 (New entries) will work only if you create new entries&lt;BR /&gt;When changing the data the event 05 will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to use the event 01 (Before saving the data).&lt;/P&gt;&lt;P&gt;This event will be triggered when you save the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jeffin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 03:25:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720695#M1771113</guid>
      <dc:creator>former_member220538</dc:creator>
      <dc:date>2013-08-22T03:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Change Record in Table Maintenace using Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720696#M1771114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Have to write code for updating the field Change on and changed by.&lt;/P&gt;&lt;P&gt;We can use the Even 01 and create the form routine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field &amp;lt;VIM_XTOTAL_KEY&amp;gt; contains the key.&lt;/P&gt;&lt;P&gt;For changing the current record, we need to modify both the corresponding extract and total table values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &amp;lt;ACTION&amp;gt; field indicates the current user action : new insertion or updation or deletion.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;record&amp;gt; TYPE ANY. " Work area for table&lt;/P&gt;&lt;P&gt;&amp;nbsp; * Modify changed by and changed on fields for any updates&lt;/P&gt;&lt;P&gt;LOOP AT total.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Assign the table header line to the work area&lt;/P&gt;&lt;P&gt;ASSIGN total TO &amp;lt;record&amp;gt;.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0. " If assigning is successful.&lt;/P&gt;&lt;P&gt;* Check if data was changed and get the corresponding line index&lt;/P&gt;&lt;P&gt;IF &amp;lt;action&amp;gt; = 'U' " Updated entry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Update the changed by and changed on to the total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prabakaran&lt;/P&gt;&lt;P&gt;Applexus Technologies&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 05:19:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720696#M1771114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-22T05:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Change Record in Table Maintenace using Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720697#M1771115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to the flow logic of the TMG screen where you input the values to the filled.&lt;/P&gt;&lt;P&gt;Ceck whether your field is included in the &lt;/P&gt;&lt;P&gt;CHAIN.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;ENDCHAIN.&lt;/P&gt;&lt;P&gt;Statement in the PAI of the screen.&lt;/P&gt;&lt;P&gt;Please refer this code of such a TMG Screen attached below.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/265843" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 05:42:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720697#M1771115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-22T05:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Change Record in Table Maintenace using Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720698#M1771116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had this exact problem a month ago and solved it by putting this code in event 01, before saving in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;FORM before_save.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; DATA: f_indx LIKE sy-tabix. "Index to note the lines found&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;* Variable TOTAL is not transparent, this structure is how we access&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;* the individual fields.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; DATA BEGIN OF l_row.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; INCLUDE STRUCTURE zcatsappr_nogl.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; INCLUDE STRUCTURE vimtbflags.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; DATA END OF l_row.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;*Add Changed-By and Changed-On for changed entries.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; LOOP AT total.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHECK &amp;lt;action&amp;gt; = aendern.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; READ TABLE extract WITH KEY &amp;lt;vim_xtotal_key&amp;gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF sy-subrc EQ 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f_indx = sy-tabix.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ELSE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLEAR f_indx.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; l_row = total.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; l_row-changed_on = sy-datum.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; l_row-changed_by = sy-uname.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; total = l_row.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MODIFY total.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CHECK f_indx GT 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; extract = total.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MODIFY extract INDEX f_indx.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; ENDLOOP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; sy-subrc = 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; ENDFORM.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "before_save&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code was adapted from the sample in &lt;A class="active_link" href="http://help.sap.com/erp2005_ehp_04/helpdata/EN/91/ca9f0ba9d111d1a5690000e82deaaa/content.htm"&gt;Event 01: Before Saving the Data in the Database&lt;/A&gt;.&amp;nbsp; Let me know if this doesn't work for you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 15:48:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720698#M1771116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-22T15:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Change Record in Table Maintenace using Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720699#M1771117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my case, the problem wasn't solved. The fields aren't filled when I update data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 16:19:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720699#M1771117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-20T16:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Change Record in Table Maintenace using Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720700#M1771118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I normally use Event 21 to fill the Changed by and Changed on fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 17:47:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720700#M1771118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-20T17:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Change Record in Table Maintenace using Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720701#M1771119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use event 21 as change by and change date is for modification history, hence you can keep them as hidden fields by changing the attributes of TMG screen and populate as below. It will work in all scenarios. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ztab-changedby&amp;nbsp; = sy-uname.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ztab-udate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = sy-datum.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ztab-utime&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = sy-uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 21:01:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720701#M1771119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-20T21:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Change Record in Table Maintenace using Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720702#M1771120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks K Suresh, but it worked when I added &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;lt;ACTION&amp;gt; = AENDERN. &lt;/STRONG&gt;&lt;/SPAN&gt;before of&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;MODIFY total&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 13:07:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720702#M1771120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-21T13:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Change Record in Table Maintenace using Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720703#M1771121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks with event 21 the field was able to update. Example code as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S31"&gt;" Populate update date field with today's date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ztbl&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;udate &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;datum&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;" If Update then modify table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;&amp;lt;action&amp;gt; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;aendern&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;MODIFY &lt;/SPAN&gt;ztbl&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Thanks once again &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1249/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 01:51:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/change-record-in-table-maintenace-using-events/m-p/9720703#M1771121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-02T01:51:41Z</dc:date>
    </item>
  </channel>
</rss>

