<?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: sm30 tcode maintainance in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-tcode-maintainance/m-p/3389268#M813782</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 create table maintenance generator for the custom table.  After creation of table maintenance generator go to menu environment - &amp;gt; modification - &amp;gt; events &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will get the screen Display view "Form routines to be called from view maintenance"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There you can write routines 01 - &amp;gt; for create&lt;/P&gt;&lt;P&gt;                                          05 - &amp;gt; update&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM zfgl_accounting_create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*User Name.&lt;/P&gt;&lt;P&gt;  zfgl_accounting-uname = sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Date.&lt;/P&gt;&lt;P&gt;  zfgl_accounting-datum = sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Time&lt;/P&gt;&lt;P&gt;  zfgl_accounting-uzeit = sy-uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "ZFGL_ACCOUNTING_CREATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this logic...you can able to pass the date and time values in the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Feb 2008 14:55:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-21T14:55:27Z</dc:date>
    <item>
      <title>sm30 tcode maintainance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-tcode-maintainance/m-p/3389265#M813779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends,&lt;/P&gt;&lt;P&gt;i had created a table which has 4 primary key fields and 2 more fields which are creation date (ersda) and created by (ernam). and maintainance generator is also created for this table in sm30. now user says that he will manually insert the data for the 4 key fields, but for the other two fields the transaction should automatically pick the  values as sy-datum and sy-uname. Is there any way to maintain such kind of data in the transaction.&lt;/P&gt;&lt;P&gt;would appreciate quick response.&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Sakshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 17:36:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-tcode-maintainance/m-p/3389265#M813779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T17:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: sm30 tcode maintainance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-tcode-maintainance/m-p/3389266#M813780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since this is a Z-table and a custome maintenance dialog, the easiest thing to do would be to hook into the PAI and insert a module that automatically populates those values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within the LOOP AT ITAB - ENDLOOP in the PAI you should enter MODULE POPULATE_AUDIT_TRAIL (or any other name) where you populate the fields for created at and by.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once the user saves the data those fields will be saved as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 18:35:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-tcode-maintainance/m-p/3389266#M813780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T18:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: sm30 tcode maintainance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-tcode-maintainance/m-p/3389267#M813781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this at event 1 (Save data).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2008 18:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-tcode-maintainance/m-p/3389267#M813781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-19T18:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: sm30 tcode maintainance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-tcode-maintainance/m-p/3389268#M813782</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 create table maintenance generator for the custom table.  After creation of table maintenance generator go to menu environment - &amp;gt; modification - &amp;gt; events &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will get the screen Display view "Form routines to be called from view maintenance"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There you can write routines 01 - &amp;gt; for create&lt;/P&gt;&lt;P&gt;                                          05 - &amp;gt; update&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM zfgl_accounting_create.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*User Name.&lt;/P&gt;&lt;P&gt;  zfgl_accounting-uname = sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Date.&lt;/P&gt;&lt;P&gt;  zfgl_accounting-datum = sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Time&lt;/P&gt;&lt;P&gt;  zfgl_accounting-uzeit = sy-uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "ZFGL_ACCOUNTING_CREATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this logic...you can able to pass the date and time values in the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 14:55:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-tcode-maintainance/m-p/3389268#M813782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-21T14:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: sm30 tcode maintainance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-tcode-maintainance/m-p/3389269#M813783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    Go to the Table Maintenance Generator of your table. &lt;/P&gt;&lt;P&gt;    Got to Environment&lt;DEL&gt;&amp;gt;Modification&lt;/DEL&gt;&amp;gt;Events.&lt;/P&gt;&lt;P&gt;    Create a even '01' (Before saving the data in the database).&lt;/P&gt;&lt;P&gt;    You can do you necessary timestamp update in this event.&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;Regards,&lt;/P&gt;&lt;P&gt;Sandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 04:18:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sm30-tcode-maintainance/m-p/3389269#M813783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T04:18:51Z</dc:date>
    </item>
  </channel>
</rss>

