<?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: Update database table with username and date in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858241#M362587</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pranati,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What Naren said is correct, you have to delete and create new screens for maintaing when ever you touch the table fields. Also, once you create new screens, go to se14 (database utility), activate and adjust database selecting 'save data' option. This will readjust the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I will send you the document to email id mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jan 2007 20:50:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-05T20:50:52Z</dc:date>
    <item>
      <title>Update database table with username and date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858232#M362578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Happy new year 2007..!&lt;/P&gt;&lt;P&gt;I have created a  Z table which is maintained via SM30. Is it possible by any means that the username of the person updating the table and the date in which the updation is done can be entered in the same table automatically...&lt;/P&gt;&lt;P&gt;Please help (very Urgent!!)&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;Message was edited by: &lt;/P&gt;&lt;P&gt;        pranati dalvi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 17:39:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858232#M362578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-05T17:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Update database table with username and date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858233#M362579</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;You can use SM30 events..Check this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to the view V_TVIMF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add an entry with the following entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EVent - '01' (Before saving the data in the database)&lt;/P&gt;&lt;P&gt;Form rourtine - 'ADD_USERNAME'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save the entry in a CR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the function group that you created for the table maintenance add this subroutine..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM ADD_USERNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Types Declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA: BEGIN OF WA_ZTABLE.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE ZTABLE.&lt;/P&gt;&lt;P&gt;DATA: update_fl TYPE char1,&lt;/P&gt;&lt;P&gt;mark TYPE char1,&lt;/P&gt;&lt;P&gt;END OF WA_ZTABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT TOTAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA_ZTABLE = TOTAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;WA_ZTABLE-USER_NAME = SY-UNAME.&lt;/P&gt;&lt;P&gt;WA_ZTABLE-USER_TIME = SY-UZEIT.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOTAL = WA_ZTABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY TOTAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&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;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 17:42:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858233#M362579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-05T17:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Update database table with username and date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858234#M362580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in ur ztable declare the 2 fields....Now, for these fields write a routinue inside as to populate sy-uname &amp;amp; sy-datum. So, when user uses SM30 automatically these columns are been filled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 17:44:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858234#M362580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-05T17:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Update database table with username and date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858235#M362581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren,&lt;/P&gt;&lt;P&gt;Thank you so much for your help and prompt reply..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please tell me where exactly in the function group i have to write..i did not create a function group for table maintenance. I used an existing one. so is it okay to modify it if I have to...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 18:14:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858235#M362581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-05T18:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Update database table with username and date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858236#M362582</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;go to SE80..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the function group name..Press display (glass) button ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doube click on the function group (Under the text "Object name")..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will give a popup..Press main program button..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to the change mode (Ctrl + F1)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the last line of the code..give..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE Z_CUSTOM_ROUTINES.   "Or whatever name you give.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Double click on the Z_CUSTOM_ROUTINES..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will ask you to create a include..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Continue to create..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here in the include give the subroutine code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM ADD_USERNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points for helpful answers..&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;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 18:22:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858236#M362582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-05T18:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Update database table with username and date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858237#M362583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pranati,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out this weblog in SDN which explains about maintaing custom subroutine in the view v_tvimf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/sudheer.cheedella/blog/2006/02/20/extracting-data-in-table-maintenance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above link will give you an immediate idea of creating a subroutine. Then, as mentioned by others, create two fields with data elements 'LAEDA' and 'AENAM'. Once this is done, include following code in your custom subroutine for this table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move: sy-uname to ZTABLE-MODIFIED_BY,&lt;/P&gt;&lt;P&gt;         sy-datum to  ZTABLE-MODIFIED_ON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's it. You will be done. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it and if you can't finish, mention your email and I will send you a word document which has all these step by step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and have a nice day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 19:35:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858237#M362583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-05T19:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Update database table with username and date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858238#M362584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vivek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the link. That was very informative. &lt;/P&gt;&lt;P&gt;But still the values are not getting populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created the table fields. but they are not showing up in the element list of the screens mentioned in the maintenance screen. is the problem because of this ?&lt;/P&gt;&lt;P&gt;I succeeded in creating the include, the sub routine, and i wrote the code like&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***INCLUDE LZH_TABLE_GENF01 .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_uname_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  move sy-datum to zfpbtc-aedtm.&lt;/P&gt;&lt;P&gt;  move sy-uname to zfpbtc-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                 " get_uname_date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u please tell me wht could be wrong..&lt;/P&gt;&lt;P&gt;please bear with me, I am little slow in picking up !!... my mail is&lt;/P&gt;&lt;P&gt;pranatidalvi@yahoo.co.in&lt;/P&gt;&lt;P&gt;can u please send the document you said about..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 20:26:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858238#M362584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-05T20:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Update database table with username and date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858239#M362585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren,&lt;/P&gt;&lt;P&gt;Thank you for your reply..! I am working on similar lines..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Pranati&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 20:28:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858239#M362585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-05T20:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Update database table with username and date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858240#M362586</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;If the new fields are appearing on the screen..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regenerate the table maintenance in SE11 to have the new fields..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points for helpful answers..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 20:34:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858240#M362586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-05T20:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Update database table with username and date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858241#M362587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pranati,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What Naren said is correct, you have to delete and create new screens for maintaing when ever you touch the table fields. Also, once you create new screens, go to se14 (database utility), activate and adjust database selecting 'save data' option. This will readjust the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I will send you the document to email id mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 20:50:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858241#M362587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-05T20:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Update database table with username and date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858242#M362588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren/Vivek,&lt;/P&gt;&lt;P&gt;I think finally I am nearing a solution..! I had put the event value as 02 and i gave the code as Naren had mentioned earlier. so in the edit screen the username and date comes as soon as i save. but if i take se11 in a new session and try to see the table contents, the values disappears.. &lt;/P&gt;&lt;P&gt;Will event 05 help.. my requirement is that the username and date should appear when the table data is created/changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regarding points.. this is my first query in sdn..so can u pls tell me if i can give points for all the replies i get..or is it to be given after the question is answered&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pranati&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        pranati dalvi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        pranati dalvi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        pranati dalvi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 23:51:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858242#M362588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-05T23:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Update database table with username and date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858243#M362589</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 '01' which is before saving..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also paste your code that you have in your subroutine..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 23:54:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858243#M362589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-05T23:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Update database table with username and date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858244#M362590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form set_uname_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Types Declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data begin of l_t_zfpbtc.&lt;/P&gt;&lt;P&gt;include structure zfpbtc.&lt;/P&gt;&lt;P&gt;data: l_update_fl type char1.&lt;/P&gt;&lt;P&gt;data: l_mark type char1.&lt;/P&gt;&lt;P&gt;data end of l_t_zfpbtc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_t_zfpbtc = total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_t_zfpbtc-uname = sy-uname.&lt;/P&gt;&lt;P&gt;l_t_zfpbtc-aedtm = sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;total = l_t_zfpbtc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.             "SET_UNAME_DATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code i gave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 23:56:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858244#M362590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-05T23:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Update database table with username and date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858245#M362591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put 01 and it is working....!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you SO much..without you and Vivek it would not have been possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;P&gt;-Pranati.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jan 2007 00:07:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858245#M362591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-06T00:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Update database table with username and date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858246#M362592</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;B.T.W..Is it two screen maintenance or single screen maintenance..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jan 2007 00:07:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858246#M362592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-06T00:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Update database table with username and date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858247#M362593</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;You are welcome..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jan 2007 00:09:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858247#M362593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-06T00:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Update database table with username and date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858248#M362594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren,&lt;/P&gt;&lt;P&gt; It is one screen maintenance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pranati.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jan 2007 00:09:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858248#M362594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-06T00:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Update database table with username and date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858249#M362595</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 more thing..I would like to add in your code..Marked in bold..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form set_uname_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Types Declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data begin of l_t_zfpbtc.&lt;/P&gt;&lt;P&gt;include structure zfpbtc.&lt;/P&gt;&lt;P&gt;data: l_update_fl type char1.&lt;/P&gt;&lt;P&gt;data: l_mark type char1.&lt;/P&gt;&lt;P&gt;data end of l_t_zfpbtc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_t_zfpbtc = total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;* check if a new entry is inserted or an existing is updated..&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CHECK l_t_zfpbtc-l_update_fl = 'U' OR l_t_zfpbtc-l_update_fl = 'N'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_t_zfpbtc-uname = sy-uname.&lt;/P&gt;&lt;P&gt;l_t_zfpbtc-aedtm = sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;total = l_t_zfpbtc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform. "SET_UNAME_DATE&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;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jan 2007 00:13:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858249#M362595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-06T00:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Update database table with username and date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858250#M362596</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 again !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pranati.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jan 2007 00:15:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858250#M362596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-06T00:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Update database table with username and date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858251#M362597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Narendra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have got tipical problem while modifying the user &amp;amp; time while changing the entries through SM30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Created a routine from V_TVIMF view.&lt;/P&gt;&lt;P&gt;Since my table contains some of the key fields as DEC , I could not populate my ztable from total, instead I;m using to populate only change_by and Change_time from total and vice versa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it does change to the SSM30 screen when I click on save but not the database save, means once i go to display mode in the SM30 the changes get refereshed to old values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea to resolve this issue highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;Sarika&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA: f_index LIKE sy-tabix. "Index to note the lines found&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA BEGIN OF total_s.&lt;/P&gt;&lt;P&gt;          INCLUDE STRUCTURE zds_sheet_trim.&lt;/P&gt;&lt;P&gt;  DATA action.&lt;/P&gt;&lt;P&gt;  DATA mark.&lt;/P&gt;&lt;P&gt;  DATA END OF total_s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA extract_s LIKE total_s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: ls_time      TYPE ttztstmp.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;**// Set the change user and change time&lt;/P&gt;&lt;P&gt;  ls_time-date = sy-datum.&lt;/P&gt;&lt;P&gt;  ls_time-time = sy-uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT total.&lt;/P&gt;&lt;P&gt;    IF &amp;lt;action&amp;gt; = 'U'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     MOVE total TO total_s.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      total+83 = total_s-change_by.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      total+95 = total_s-change_time.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      READ TABLE extract WITH KEY 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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       extract_s = extract.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         extract_s-change_time = ls_time.&lt;/P&gt;&lt;P&gt;         extract_s-change_by  = sy-uname.&lt;/P&gt;&lt;P&gt;&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      (make desired changes to the line TOTAL)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      total_s-change_time = ls_time.&lt;/P&gt;&lt;P&gt;      total_s-change_by  = sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      total+83 = total_s-change_by.&lt;/P&gt;&lt;P&gt;      total+95 = total_s-change_time.&lt;/P&gt;&lt;P&gt;      MODIFY total.&lt;/P&gt;&lt;P&gt;      CHECK f_index GT 0.&lt;/P&gt;&lt;P&gt;      extract = total.&lt;/P&gt;&lt;P&gt;      MODIFY extract INDEX f_index.&lt;/P&gt;&lt;P&gt;    ELSEIF &amp;lt;action&amp;gt; = 'N'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     MOVE total TO total_s.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      READ TABLE extract WITH KEY 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;        extract_s = extract.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      (make desired changes to the line TOTAL)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      total_s-change_time = ls_time.&lt;/P&gt;&lt;P&gt;      total_s-change_by  = sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      total+83 = total_s-change_by.&lt;/P&gt;&lt;P&gt;      total+95 = total_s-change_time.&lt;/P&gt;&lt;P&gt;      MODIFY total.&lt;/P&gt;&lt;P&gt;      CHECK f_index GT 0.&lt;/P&gt;&lt;P&gt;      extract = total.&lt;/P&gt;&lt;P&gt;      MODIFY extract INDEX f_index.&lt;/P&gt;&lt;P&gt;    ELSEIF total IS INITIAL.&lt;/P&gt;&lt;P&gt;      total+83 = total_s-change_by.&lt;/P&gt;&lt;P&gt;      total+95 = total_s-change_time.&lt;/P&gt;&lt;P&gt;      READ TABLE extract WITH KEY 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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       extract_s = extract.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         extract_s-change_time = ls_time.&lt;/P&gt;&lt;P&gt;         extract_s-change_by   = sy-uname.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      (make desired changes to the line TOTAL)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      DELETE total.&lt;/P&gt;&lt;P&gt;      CHECK f_index GT 0.&lt;/P&gt;&lt;P&gt;      DELETE extract INDEX f_index.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "get_transaction_data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2007 19:30:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-database-table-with-username-and-date/m-p/1858251#M362597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-19T19:30:49Z</dc:date>
    </item>
  </channel>
</rss>

