<?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 generator in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753850#M903064</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;for event 05 create a new entry&lt;/P&gt;&lt;P&gt;I wanted to put default value .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form at_newentry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Ztable-name = &amp;#145;abc&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 May 2008 09:01:28 GMT</pubDate>
    <dc:creator>manubhutani</dc:creator>
    <dc:date>2008-05-05T09:01:28Z</dc:date>
    <item>
      <title>Table maintenance generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753842#M903056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guru's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a Z table and have a requirement that if user enters a particular field in a field&lt;/P&gt;&lt;P&gt;then message shud appera that this value is not allowed&lt;/P&gt;&lt;P&gt;other wise it shud get saved, where is the coding needs to be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried opening the PAI event but dont know where to code&lt;/P&gt;&lt;P&gt;Please help,its urgent. will reward max point.&lt;/P&gt;&lt;P&gt;Please dont copy paste, please explain in brief&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 08:21:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753842#M903056</guid>
      <dc:creator>manubhutani</dc:creator>
      <dc:date>2008-05-05T08:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753843#M903057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can add value table for the field for this requirement if the required values are available in any table. Else you can do coding in table maintenance genrator. For details, have a look at below link which gives details with screen shots:&lt;/P&gt;&lt;P&gt;[Events in Table Maintenance|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/how%20to%20implement%20events%20in%20table%20maintenance.doc]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if any doubts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 08:26:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753843#M903057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T08:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753844#M903058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manu,&lt;/P&gt;&lt;P&gt;I think ur problem can be solved using the Table maintenance generator events.&lt;/P&gt;&lt;P&gt;In the table maintenance geberator screen, Use the Path:&lt;/P&gt;&lt;P&gt;Environment&lt;DEL&gt;&amp;gt;Modification&lt;/DEL&gt;&amp;gt; Events&lt;/P&gt;&lt;P&gt;We are taken to a screen which prompts us to enter the form routines.&lt;/P&gt;&lt;P&gt;Click on the new entries.  Select a desired dialog event. in ur case, seems that you have to provide validations on entering new values. hence choose the event "05". and give a form name.&lt;/P&gt;&lt;P&gt;On clicking on the editor , a new include name is proposed. Select the desired one and you can insert your lines of code here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write the code inside a &amp;#147;FORM&amp;#133;. ENDFORM&amp;#148;, since these routines are dynamically called corresponding to the dialog events we have specified. &lt;/P&gt;&lt;P&gt;The main advantage of this is that, this routinne gets called for each record created.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Do get back if you want more info.&lt;/P&gt;&lt;P&gt;Deepti.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 08:32:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753844#M903058</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T08:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753845#M903059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;thanks for ur reply..&lt;/P&gt;&lt;P&gt;I tried putting the code in event 05 - create a new entry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form z_default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ztable-name = 'abc'.  " default &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this is not working&lt;/P&gt;&lt;P&gt;please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 08:51:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753845#M903059</guid>
      <dc:creator>manubhutani</dc:creator>
      <dc:date>2008-05-05T08:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753846#M903060</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;thanks for ur reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried that link..&lt;/P&gt;&lt;P&gt;but that code is not working in my case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 08:54:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753846#M903060</guid>
      <dc:creator>manubhutani</dc:creator>
      <dc:date>2008-05-05T08:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753847#M903061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please give details about the code that you have written? It should definately work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 08:58:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753847#M903061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T08:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753848#M903062</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;Now i am not allowed to got events&lt;/P&gt;&lt;P&gt;its saying func group cannot be processed  please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 08:58:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753848#M903062</guid>
      <dc:creator>manubhutani</dc:creator>
      <dc:date>2008-05-05T08:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753849#M903063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible for you to create an additional table with the set of values you want to get saved in your original table .If the answer is yes ,create the new table as your check table in se11 field level&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can be reached +919902617006,if require call me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 08:58:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753849#M903063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T08:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753850#M903064</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;for event 05 create a new entry&lt;/P&gt;&lt;P&gt;I wanted to put default value .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form at_newentry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Ztable-name = &amp;#145;abc&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 09:01:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753850#M903064</guid>
      <dc:creator>manubhutani</dc:creator>
      <dc:date>2008-05-05T09:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753851#M903065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;even i faced such problems the first time i was working with "Events". it was the issue of activation for me. i came out of the application, activated everything at Function Group level. then it worked for me.&lt;/P&gt;&lt;P&gt;Try it. Might help.&lt;/P&gt;&lt;P&gt;Deepti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 09:19:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753851#M903065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T09:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753852#M903066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While using the EVENT05, you will have to identify the global structure variable containing your new record details, and update the field(s) accordingly.&lt;/P&gt;&lt;P&gt;As given in the Help portal document for View Maintenance events, make sure you call and use the global variables like EXTRACT correctly to get and set your values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But apart from that, if you wish to restrict the entry values at table level itself, then a check table or a Value table restriction is best. Why do you want to implement a manual  code in form of View Maintenance event? Anyways, please refer to the document (I think one of the people above have already given the link)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rekha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 09:29:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753852#M903066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T09:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753853#M903067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can u tell me&lt;/P&gt;&lt;P&gt;how to use extract?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 11:10:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753853#M903067</guid>
      <dc:creator>manubhutani</dc:creator>
      <dc:date>2008-05-05T11:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753854#M903068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manu,&lt;/P&gt;&lt;P&gt;Extract is an internal table which is system generated. &lt;/P&gt;&lt;P&gt;In other words:&lt;/P&gt;&lt;P&gt;"An extract dataset, or short extract, is a dataset in the internal session of an ABAP program that is not handled as a data object and therefore has no data type. There is only one extract dataset for every ABAP program. It can be filled will ABAP statements and read. The content of the extract dataset cannot be explicitly deleted. "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This extract if used in SM30 screen, will list all the entries visible in the screen(hence in the DB). You can perform any action on it like :Loop at Extract.. Endloop.&lt;/P&gt;&lt;P&gt;or use it against any string functions like STRLEN(extract) (inside loop or anything). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Do revert back,if not clear&lt;/P&gt;&lt;P&gt;Deepti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 11:16:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753854#M903068</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T11:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753855#M903069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz go through the link which explains the events of Table Maintenance Generator, and it also gives you the usage of the global variables and internal tables like EXTRACT.&lt;/P&gt;&lt;P&gt;EXTRACT is the internal table which contains the table/view records as displayed on the screen. &lt;/P&gt;&lt;P&gt;[TME Events|http://help.sap.com/saphelp_47x200/helpdata/en/91/ca9f32a9d111d1a5690000e82deaaa/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This link gives you a sample usage of how you can use the EXTRACT table and other global variables to read and modify the View data.&lt;/P&gt;&lt;P&gt;[Global Variables of Overview screen|http://help.sap.com/saphelp_47x200/helpdata/en/91/ca9f32a9d111d1a5690000e82deaaa/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Rekha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 11:19:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753855#M903069</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T11:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753856#M903070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepti&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u send me ur code which u wrote in any event&lt;/P&gt;&lt;P&gt;i am not able to understand how to use extract and total&lt;/P&gt;&lt;P&gt;what are their structure.?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 11:40:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753856#M903070</guid>
      <dc:creator>manubhutani</dc:creator>
      <dc:date>2008-05-05T11:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753857#M903071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manu,&lt;/P&gt;&lt;P&gt;Extract doesnt have a structure explicitly, it adopts the structure during the course of the program. To understand it better, lets take an example with a table. Declare a table and then generate the table maintenance screen.Go to SM30 and after entering new values or any other action, switch on the debugger. now give "Extract" and see how it is. Generally it will have 1 field with 128 char, which gives &lt;/P&gt;&lt;P&gt;1. Client &lt;/P&gt;&lt;P&gt;2. The values in the table in a single line for each record.&lt;/P&gt;&lt;P&gt;Example: 100Deepti  Trial (taken from debugging)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From here you can seperate the values required using any string functions. .&lt;/P&gt;&lt;P&gt; Data:len_src         TYPE i,&lt;/P&gt;&lt;P&gt;        len_src2         TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at extract.  &lt;/P&gt;&lt;P&gt;len_src = STRLEN( extract ).&lt;/P&gt;&lt;P&gt;len_src2 = len_src - 15.&lt;/P&gt;&lt;P&gt;extract+len_src2(14) = lv_timestamp.&lt;/P&gt;&lt;P&gt;MODIFY extract.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This specific requirement was for modifying an existing value in extract. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know any specific requirement of yours. May be i can take that up and explain better.&lt;/P&gt;&lt;P&gt;Deepti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 11:58:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753857#M903071</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T11:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance generator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753858#M903072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Take a look at my code which will update the user and date for any new record or a modified record.This I have achieved my changing the contents of Extract and Total Tables which is given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written this in &lt;STRONG&gt;event '01'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM update_user_date_time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: f_index LIKE sy-tabix.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: BEGIN OF l_total.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE zztable.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE vimtbflags.&lt;/P&gt;&lt;P&gt;DATA END OF l_total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: s_record TYPE zztable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT total INTO l_total.&lt;/P&gt;&lt;P&gt;	IF l_total-vim_action = aendern OR&lt;/P&gt;&lt;P&gt;		l_total-vim_action = neuer_eintrag.&lt;/P&gt;&lt;P&gt;		MOVE-CORRESPONDING l_total TO s_record.&lt;/P&gt;&lt;P&gt;		s_record-zz_user = sy-uname.&lt;/P&gt;&lt;P&gt;		s_record-zz_date = sy-datum.&lt;/P&gt;&lt;P&gt;		s_record-zz_time = sy-uzeit.&lt;/P&gt;&lt;P&gt;		READ TABLE extract WITH KEY l_total.&lt;/P&gt;&lt;P&gt;		IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;			f_index = sy-tabix.&lt;/P&gt;&lt;P&gt;		ELSE.&lt;/P&gt;&lt;P&gt;			CLEAR f_index.&lt;/P&gt;&lt;P&gt;		ENDIF.&lt;/P&gt;&lt;P&gt;		MOVE-CORRESPONDING s_record TO l_total.&lt;/P&gt;&lt;P&gt;		MODIFY total FROM l_total.&lt;/P&gt;&lt;P&gt;		CHECK f_index GT 0.&lt;/P&gt;&lt;P&gt;		MODIFY extract INDEX f_index FROM l_total.&lt;/P&gt;&lt;P&gt;	ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. " UPDATE_USER_DATE_TIME[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here ZZTABLE is the Z table and ZZ_USER, ZZ_DATE, and ZZ_TIME are the fields that are updated. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please reward if found helpful.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2008 06:49:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator/m-p/3753858#M903072</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-06T06:49:07Z</dc:date>
    </item>
  </channel>
</rss>

