<?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: events for changed entry in data dictionary in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525982#M1425851</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Keshav, &lt;/P&gt;&lt;P&gt;       If I use " creating new entry" event then it will be triggered only when I create a new entry in the table and not for changing the entry. in that case I would not be able to modify the date and time field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jan 2010 15:48:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-15T15:48:57Z</dc:date>
    <item>
      <title>events for changed entry in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525978#M1425847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt; I  have a requirement as mentioned below:&lt;/P&gt;&lt;P&gt;my table has four fields : 1. vkorg 2. validity_period 3. modification_date and 4. modification_time.&lt;/P&gt;&lt;P&gt;I have to capture the modification date and modification time if a user changes an entry (or entries) in the table and update the date and time fields in the table.  I have done it by creating an event "creating a new entry"which is triggered when a new entry is added to the table. But if an existing entry is modifies then the entry is not triggered. when I use  " before saving the data " event then only the last record of the table moves to the "Routine"  of the event. So I am not able to capture the date and time when an entry (or entries ) is modified.  Can anyone suggest me what I should do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amit kumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: amitku1201 on Jan 15, 2010 3:05 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 11:46:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525978#M1425847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-15T11:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: events for changed entry in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525979#M1425848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the event 01 - "Before Saving data to database", you can access the TOTAL table, which contains all the current line items. You can select the data from the Z table into another table and compare it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may like to check this blog post - &lt;A href="http://help-abap.blogspot.com/2008/09/capture-changed-content-after-fm.html" target="test_blank"&gt;http://help-abap.blogspot.com/2008/09/capture-changed-content-after-fm.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 14:22:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525979#M1425848</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2010-01-15T14:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: events for changed entry in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525980#M1425849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naimesh, &lt;/P&gt;&lt;P&gt;                     I have to maintain the data using SM30. can you please explain in some more detail how it can be done? thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amit kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 15:28:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525980#M1425849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-15T15:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: events for changed entry in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525981#M1425850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done it by creating an event "creating a new entry"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to maintain the data using SM30. can you please explain in some more detail how it can be done&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do it the same way you did for "creating a new entry", in the suggested blog only the event changes and the data is compared by whole.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 15:44:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525981#M1425850</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-01-15T15:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: events for changed entry in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525982#M1425851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Keshav, &lt;/P&gt;&lt;P&gt;       If I use " creating new entry" event then it will be triggered only when I create a new entry in the table and not for changing the entry. in that case I would not be able to modify the date and time field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 15:48:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525982#M1425851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-15T15:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: events for changed entry in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525983#M1425852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will have to create two table events in table maintenance generation as shown below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;05	FETCH_VALUE_NEW&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;21	FETCH_VALUE_CHANGE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first event-05 triggers when you create new entry where you can update created by/created date etc.,&lt;/P&gt;&lt;P&gt;and in the second event-21 you can update Changed by/Changed date etc.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need more clarification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Alis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 15:49:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525983#M1425852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-15T15:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: events for changed entry in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525984#M1425853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please read the blog, the changed data is compared in event 01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The existing entries from the db are picked and then compared with the current entries in event 01.&lt;/P&gt;&lt;P&gt;Here the values of the control including changed data will be held in TOTAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then update your values to the records that are changed ( Records changed are identified while comparing with the existing data )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 16:08:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525984#M1425853</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-01-15T16:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: events for changed entry in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525985#M1425854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Keshav, &lt;/P&gt;&lt;P&gt;     I am getting all the data in TOTAL table. But I didnt understand how to update the data base with data. I dont think we should use update or insert statement for updating the database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 16:57:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525985#M1425854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-15T16:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: events for changed entry in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525986#M1425855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This question has been asked many times before. Please see:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  FILL_SY_FIELDS                                    FISKROB
*&amp;amp;---------------------------------------------------------------------*
*       Add the creation date and userid if the line is being created.
*       Add the change date and userid if the line is being changed.
*----------------------------------------------------------------------*
form fill_sy_fields.

  data: f_index like sy-tabix. "Index to note the lines found

  data begin of total_s.
          include structure zzv_my_tab.
  data action.
  data mark.
  data end of total_s.

  data extract_s like total_s.

  loop at total.
    if &amp;lt;action&amp;gt; = 'U'.
      move total to total_s.
      read table extract with key total.
      if sy-subrc eq 0.
        f_index = sy-tabix.
        extract_s = extract.
      else.
        clear f_index.
      endif.
*       (make desired changes to the line TOTAL)
      total_s-zzfchdate = sy-datum.
      total_s-zzfchusr  = sy-uname.
      move total_s to total.
      modify total.
      check f_index gt 0.
      extract = total.
      modify extract index f_index.
    elseif &amp;lt;action&amp;gt; = 'N'.
      move total to total_s.
      read table extract with key total.
      if sy-subrc eq 0.
        f_index = sy-tabix.
        extract_s = extract.
      else.
        clear f_index.
      endif.
*       (make desired changes to the line TOTAL)
      total_s-zzfcredate = sy-datum.
      total_s-zzfcreusr  = sy-uname.
      move total_s to total.
      modify total.
      check f_index gt 0.
      extract = total.
      modify extract index f_index.
    elseif total is initial.
      move total to total_s.
      read table extract with key total.
      if sy-subrc eq 0.
        f_index = sy-tabix.
        extract_s = extract.
      else.
        clear f_index.
      endif.
*       (make desired changes to the line TOTAL)
      delete total.
      check f_index gt 0.
      delete extract index f_index.
    endif.
  endloop.
  sy-subrc = 0.

endform.                    " FILL_SY_FIELDS&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The link I posted earlier may not work now. The above code does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Jan 15, 2010 12:20 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 17:10:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525986#M1425855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-15T17:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: events for changed entry in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525987#M1425856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks rob ..its working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 17:28:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525987#M1425856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-15T17:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: events for changed entry in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525988#M1425857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For completeness sake, you have to add FILL_SY_FIELDS as a FORM routine for event 01 in the table maintenance generator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 17:34:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525988#M1425857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-15T17:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: events for changed entry in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525989#M1425858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a doubt here, TOTAL line is a single component and not having any table components in it. &lt;/P&gt;&lt;P&gt;How can you MOVE  TOTAL to TOTAL_S. In unicode programming it will give us dump right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please clarify.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kusuma K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 04:01:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525989#M1425858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T04:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: events for changed entry in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525990#M1425859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt; I have coded it as mentioned. I didnt get any dump. the UNICODE check was also active. I dont think there should be any issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 14:41:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525990#M1425859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-20T14:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: events for changed entry in data dictionary</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525991#M1425860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI kusuma,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are absolutely correct. The statement MOVE TOTAL to TOTAL_S results in a dump. &lt;/P&gt;&lt;P&gt;For the solution refer to the answer in the below thread by Vijay Babu Dudla . It works as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="9845540"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Dec 2010 14:31:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events-for-changed-entry-in-data-dictionary/m-p/6525991#M1425860</guid>
      <dc:creator>former_member206485</dc:creator>
      <dc:date>2010-12-23T14:31:34Z</dc:date>
    </item>
  </channel>
</rss>

