<?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 event in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator-event/m-p/7184060#M1518957</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohit, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this way..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for change date and Change time these field need to be in Display mode always.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so got to SE80 and enter the function Group you enterd in Table maintainace,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to screen--&amp;gt; and write code in the PBO to make the fields change date and Change time in display mode only to output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next go to PAI .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and write your code in the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT EXTRACT.&lt;/P&gt;&lt;P&gt;"add custom module here and check if the entry is already avaialable in tjhe table and it is modified the &lt;/P&gt;&lt;P&gt;"Update the change date and Change time&lt;/P&gt;&lt;P&gt;    MODULE SET_UPDATE_FLAG ON CHAIN-REQUEST.&lt;/P&gt;&lt;P&gt; ENDLOOP.&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;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Aug 2010 11:46:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-05T11:46:35Z</dc:date>
    <item>
      <title>Table maintenance generator event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator-event/m-p/7184057#M1518954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a req. in which I need to create events in the TMG.&lt;/P&gt;&lt;P&gt;I implemented the event in case the user entres some specific values, and the fields user name, time and date are automatically populated.&lt;/P&gt;&lt;P&gt;Now there is another requirement in which once the user changes any already existing enty, then the changed by user name, change date and change time should be updated automatically.&lt;/P&gt;&lt;P&gt;How can I achieve this functionality?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mohit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 11:20:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator-event/m-p/7184057#M1518954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-05T11:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance generator event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator-event/m-p/7184058#M1518955</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;Try using event 01 or 21.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 11:32:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator-event/m-p/7184058#M1518955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-05T11:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance generator event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator-event/m-p/7184059#M1518956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following event can fulfil your requirement :&lt;/P&gt;&lt;P&gt;- [Event 01: Before Saving the Data in the Database|http://help.sap.com/saphelp_470/helpdata/en/91/ca9f0ba9d111d1a5690000e82deaaa/frameset.htm]&lt;/P&gt;&lt;P&gt;- [Event 21: Fill Hidden Fields|http://help.sap.com/saphelp_470/helpdata/en/91/ca9f4aa9d111d1a5690000e82deaaa/frameset.htm]&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; FORM event01.
  DATA: f_index LIKE sy-tabix. 
  FIELD-SYMBOLS &amp;lt;fs&amp;gt; TYPE ANY.
  LOOP AT total.
    READ TABLE extract WITH KEY &amp;lt;vim_xtotal_key&amp;gt;.
    IF sy-subrc EQ 0.
      f_index = sy-tabix.
    ELSE.
      CLEAR f_index.
    ENDIF.
    CASE &amp;lt;action&amp;gt;.
      WHEN neuer_eintrag.
        ASSIGN COMPONENT 'CREATEDBY' OF STRUCTURE total TO &amp;lt;fs&amp;gt;.
      WHEN aendern.
        ASSIGN COMPONENT 'CHANGEDBY' OF STRUCTURE total TO &amp;lt;fs&amp;gt;.
      WHEN OTHERS.
        CONTINUE.
    ENDCASE.
    CHECK &amp;lt;fs&amp;gt; IS ASSIGNED.
    &amp;lt;fs&amp;gt; = sy-uname.
    MODIFY total.
    CHECK f_index GT 0.
    extract = total.
    MODIFY extract INDEX f_index.
  ENDLOOP.
  sy-subrc = 0.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 11:35:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator-event/m-p/7184059#M1518956</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-08-05T11:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Table maintenance generator event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator-event/m-p/7184060#M1518957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohit, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this way..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for change date and Change time these field need to be in Display mode always.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so got to SE80 and enter the function Group you enterd in Table maintainace,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to screen--&amp;gt; and write code in the PBO to make the fields change date and Change time in display mode only to output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next go to PAI .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and write your code in the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT EXTRACT.&lt;/P&gt;&lt;P&gt;"add custom module here and check if the entry is already avaialable in tjhe table and it is modified the &lt;/P&gt;&lt;P&gt;"Update the change date and Change time&lt;/P&gt;&lt;P&gt;    MODULE SET_UPDATE_FLAG ON CHAIN-REQUEST.&lt;/P&gt;&lt;P&gt; ENDLOOP.&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;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 11:46:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-maintenance-generator-event/m-p/7184060#M1518957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-05T11:46:35Z</dc:date>
    </item>
  </channel>
</rss>

