<?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 event in ECC 6.0 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-event-in-ecc-6-0/m-p/7165899#M1516480</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 should do like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

    LOOP AT total.
      Field-symbols: &amp;lt;z_total_struc&amp;gt; type any.

      ASSIGN: total TO &amp;lt;z_total_struc&amp;gt; CASTING LIKE &amp;lt;vim_total_struc&amp;gt;.

      MOVE &amp;lt;z_total_struc&amp;gt; TO wa_your_tab.
      ...
" Fill wa_your_tab
      ...
      
       MOVE wa_your_tab TO &amp;lt;z_total_struc&amp;gt;.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gabriel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Aug 2010 18:04:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-17T18:04:05Z</dc:date>
    <item>
      <title>Table event in ECC 6.0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-event-in-ecc-6-0/m-p/7165895#M1516476</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;I have used a table event to update the changed date and changed by in a custom table in SAP 4.7. It is working fine.&lt;/P&gt;&lt;P&gt;Now in ECC6.0, there is a similar requirement, but the similar code does not work. Can you please help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I used in SAP 4.7 is given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*****************************************************************&lt;/P&gt;&lt;P&gt;FORM sub_update_user_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: l_tabix TYPE sytabix.&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 ZORF_XREF_3PL.&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;  l_record TYPE ZORF_XREF_3PL.&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&lt;/P&gt;&lt;P&gt;    OR l_total-vim_action = neuer_eintrag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MOVE-CORRESPONDING l_total TO l_record.&lt;/P&gt;&lt;P&gt;      l_record-last_chng_by = sy-uname.&lt;/P&gt;&lt;P&gt;      l_record-last_chng_dt = sy-datum.&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;        l_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        CLEAR l_tabix.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      MOVE-CORRESPONDING l_record TO l_total.&lt;/P&gt;&lt;P&gt;      MODIFY total FROM l_total.&lt;/P&gt;&lt;P&gt;      CHECK l_tabix GT 0.&lt;/P&gt;&lt;P&gt;      MODIFY extract INDEX l_tabix 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.                    "sub_update_user_date&lt;/P&gt;&lt;P&gt;*****************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 10:46:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-event-in-ecc-6-0/m-p/7165895#M1516476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-16T10:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Table event in ECC 6.0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-event-in-ecc-6-0/m-p/7165896#M1516477</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;Your code looks good...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But a small change, hope this should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;READ TABLE extract WITH KEY l_total.
*IF sy-subrc EQ 0.*
*l_tabix = sy-tabix.*
*ELSE.*
*CLEAR l_tabix.*
*ENDIF.*
*l_total-last_chng_by = sy-uname.*
*l_total-last_chng_dt = sy-datum.*
*MODIFY total FROM l_total.*
MODIFY extract INDEX l_tabix FROM l_total.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 11:00:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-event-in-ecc-6-0/m-p/7165896#M1516477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-16T11:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Table event in ECC 6.0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-event-in-ecc-6-0/m-p/7165897#M1516478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But I am getting dump at line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT total INTO l_total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the Error analysis is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement&lt;/P&gt;&lt;P&gt;   "MOVE src TO dst"&lt;/P&gt;&lt;P&gt;requires that the operands "dst" and "src" are convertible.&lt;/P&gt;&lt;P&gt;Since this statement is in a Unicode program, the special conversion&lt;/P&gt;&lt;P&gt;rules for Unicode programs apply.&lt;/P&gt;&lt;P&gt;In this case, these rules were violated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 11:34:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-event-in-ecc-6-0/m-p/7165897#M1516478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-16T11:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Table event in ECC 6.0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-event-in-ecc-6-0/m-p/7165898#M1516479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the solution here &lt;SPAN __jive_macro_name="message" id="8647366"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 12:24:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-event-in-ecc-6-0/m-p/7165898#M1516479</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-08-16T12:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Table event in ECC 6.0</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-event-in-ecc-6-0/m-p/7165899#M1516480</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 should do like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

    LOOP AT total.
      Field-symbols: &amp;lt;z_total_struc&amp;gt; type any.

      ASSIGN: total TO &amp;lt;z_total_struc&amp;gt; CASTING LIKE &amp;lt;vim_total_struc&amp;gt;.

      MOVE &amp;lt;z_total_struc&amp;gt; TO wa_your_tab.
      ...
" Fill wa_your_tab
      ...
      
       MOVE wa_your_tab TO &amp;lt;z_total_struc&amp;gt;.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gabriel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 18:04:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-event-in-ecc-6-0/m-p/7165899#M1516480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-17T18:04:05Z</dc:date>
    </item>
  </channel>
</rss>

