<?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: Editable ALV Grid + onF4 event + Data_Changed event in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-grid-onf4-event-data-changed-event/m-p/848015#M45653</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steven&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a normal behaviour:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Linking F4 Help to Fields&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"...As usual, define, implement and register the event &amp;#147;onf4&amp;#148; at proper places in your code. For F4 help, you must register the fields whose F4 request will trigger the &amp;#147;onf4&amp;#148; event. For this you must prepare a table of type &amp;#147;LVC_T_F4&amp;#148; and register this table using the method &amp;#147;register_f4_for_fields&amp;#148;. While preparing table you must include a line for each field which will trigger F4 event. For each field in the structure; &lt;/P&gt;&lt;P&gt;- Pass the fieldname to &amp;#145;FIELDNAME&amp;#146; &lt;/P&gt;&lt;P&gt;- Set &amp;#145;REGISTER&amp;#146; to make the field registered, &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;- Set &amp;#145;GETBEFORE&amp;#146; to provide field content transport before F4 in editable mode &lt;/P&gt;&lt;P&gt;- Set &amp;#145;CHNGEAFTER&amp;#146; to make the data changed after F4 in editable mode.&amp;lt;/b&amp;gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And for your further works related with ALV, you can make use of the tutorial &amp;lt;a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/an%20easy%20reference%20for%20alv%20grid%20control.pdf"&amp;gt;"An Easy Reference for ALV Grid Control"&amp;lt;/a&amp;gt;.&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;&lt;/P&gt;&lt;P&gt;*--Serdar &amp;lt;a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d"&amp;gt;[ BC ]&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jun 2005 17:14:08 GMT</pubDate>
    <dc:creator>ssimsekler</dc:creator>
    <dc:date>2005-06-14T17:14:08Z</dc:date>
    <item>
      <title>Editable ALV Grid + onF4 event + Data_Changed event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-grid-onf4-event-data-changed-event/m-p/848013#M45651</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 am using an editable ALV grid where I allow 2 fields to be filled with values - I registered the events 'onF4' and 'Data_Changed' and handle both events -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that apparently when a field gets an F4 event that the 'data changed' event is not being triggered anymore ... meaning that my program does not know that data has been changed when a user uses F4 to do the data selection.  When I enter a value manually then the change event works fine ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the standard behaviour, a bug on release 4.6D or a programming flaw on my count ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can add code at the F4 handler that checks for any changes and deal with it but that would duplicate code ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone any thoughts on this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2005 16:23:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-grid-onf4-event-data-changed-event/m-p/848013#M45651</guid>
      <dc:creator>StevenDeSaeger</dc:creator>
      <dc:date>2005-06-14T16:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV Grid + onF4 event + Data_Changed event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-grid-onf4-event-data-changed-event/m-p/848014#M45652</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 did some further investigations and to my suprise the event 'Data_Changed' is raised after all BUT before the 'onF4' event.  The event object is empty and as such the code for checking what is changed is not executed ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can the order of events be reversed ?&lt;/P&gt;&lt;P&gt;What is the logic behind this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2005 16:31:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-grid-onf4-event-data-changed-event/m-p/848014#M45652</guid>
      <dc:creator>StevenDeSaeger</dc:creator>
      <dc:date>2005-06-14T16:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV Grid + onF4 event + Data_Changed event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-grid-onf4-event-data-changed-event/m-p/848015#M45653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steven&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a normal behaviour:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Linking F4 Help to Fields&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"...As usual, define, implement and register the event &amp;#147;onf4&amp;#148; at proper places in your code. For F4 help, you must register the fields whose F4 request will trigger the &amp;#147;onf4&amp;#148; event. For this you must prepare a table of type &amp;#147;LVC_T_F4&amp;#148; and register this table using the method &amp;#147;register_f4_for_fields&amp;#148;. While preparing table you must include a line for each field which will trigger F4 event. For each field in the structure; &lt;/P&gt;&lt;P&gt;- Pass the fieldname to &amp;#145;FIELDNAME&amp;#146; &lt;/P&gt;&lt;P&gt;- Set &amp;#145;REGISTER&amp;#146; to make the field registered, &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;- Set &amp;#145;GETBEFORE&amp;#146; to provide field content transport before F4 in editable mode &lt;/P&gt;&lt;P&gt;- Set &amp;#145;CHNGEAFTER&amp;#146; to make the data changed after F4 in editable mode.&amp;lt;/b&amp;gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And for your further works related with ALV, you can make use of the tutorial &amp;lt;a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/an%20easy%20reference%20for%20alv%20grid%20control.pdf"&amp;gt;"An Easy Reference for ALV Grid Control"&amp;lt;/a&amp;gt;.&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;&lt;/P&gt;&lt;P&gt;*--Serdar &amp;lt;a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d"&amp;gt;[ BC ]&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2005 17:14:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-grid-onf4-event-data-changed-event/m-p/848015#M45653</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2005-06-14T17:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV Grid + onF4 event + Data_Changed event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-grid-onf4-event-data-changed-event/m-p/848016#M45654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Serdar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for pointing me in the good direction !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By changing the flags I got the events reversed BUT the data changed event object CL_ALV_CHANGED_DATA_PROTOCOL should have values within the internal table MT_MOD_CELLS but that one is very empty.  In fact the whole object is rather inital ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that the actual change content is not being passed on towards the data event ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2005 07:28:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-grid-onf4-event-data-changed-event/m-p/848016#M45654</guid>
      <dc:creator>StevenDeSaeger</dc:creator>
      <dc:date>2005-06-15T07:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV Grid + onF4 event + Data_Changed event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-grid-onf4-event-data-changed-event/m-p/848017#M45655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steven,&lt;/P&gt;&lt;P&gt;i have the same problem like you. How did you solve your problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings Timo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2005 13:31:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-grid-onf4-event-data-changed-event/m-p/848017#M45655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-28T13:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV Grid + onF4 event + Data_Changed event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-grid-onf4-event-data-changed-event/m-p/848018#M45656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steven,&lt;/P&gt;&lt;P&gt;Have you register the change event for the Grid?&lt;/P&gt;&lt;P&gt;YOu should do it by calling method&lt;/P&gt;&lt;P&gt;    CALL METHOD aref_grid-&amp;gt;register_edit_event&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_enter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2005 09:41:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-grid-onf4-event-data-changed-event/m-p/848018#M45656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-11T09:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV Grid + onF4 event + Data_Changed event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-grid-onf4-event-data-changed-event/m-p/848019#M45657</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 was facing the same problem month ago . &lt;/P&gt;&lt;P&gt;and i added the line &lt;/P&gt;&lt;P&gt;grid-&amp;gt;register_edit_event( &lt;/P&gt;&lt;P&gt;       i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_modified ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the problem was solved . &lt;/P&gt;&lt;P&gt;just take look in E_ONF4_AFTER = 'X' . &lt;/P&gt;&lt;P&gt;this parameter say that after the field has got value .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 May 2006 14:49:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-grid-onf4-event-data-changed-event/m-p/848019#M45657</guid>
      <dc:creator>herzelhaimharel_gilor</dc:creator>
      <dc:date>2006-05-29T14:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV Grid + onF4 event + Data_Changed event</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-grid-onf4-event-data-changed-event/m-p/848020#M45658</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;&lt;/P&gt;&lt;P&gt;this post is rather old, but as i faced the same problem and this post showed as first hit in my google-search, im sharing my solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I implemented my search help following this blog&lt;/P&gt;&lt;H1 class="with-breadcrumbs pagetitle"&gt;&lt;SPAN class="with-breadcrumbs"&gt;&lt;A href="https://wiki.scn.sap.com/wiki/display/Snippets/How+to+implement+F4+search+help+in+OO+ALV+Grid"&gt;How to implement F4 search help in OO ALV Grid&lt;/A&gt;&lt;/SPAN&gt;&lt;/H1&gt;&lt;P&gt;&lt;SPAN class="with-breadcrumbs"&gt;and the SAP-Example-Prog&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="with-breadcrumbs"&gt;BCALV_EDIT_08.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="with-breadcrumbs"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="with-breadcrumbs"&gt;well i faced the same problem that the CHANGED_DATA event i registered got no cells and no rows so my further logic did not get executed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="with-breadcrumbs"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="with-breadcrumbs"&gt;The problem was in the F4 Event. Values of F4IF_INT_TABLE_VALUE_REQUEST have to be passed to&amp;nbsp; er_event_dat.i figured out, that i have typed in a wrong field-name and so the following event (CHANGED_DATA) was empty. I guess because the event was not able to match the fields. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="with-breadcrumbs"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="with-breadcrumbs"&gt;Took me a while to figure out, that&amp;nbsp; er_event_data&lt;SPAN class="L0S70"&gt;-&amp;gt;m_data&lt;SPAN class="L0S70"&gt;-&amp;gt;fieldname is not the same than&amp;nbsp; lt_return_tab-fieldname of&amp;nbsp; &lt;SPAN class="with-breadcrumbs"&gt;F4IF_INT_TABLE_VALUE_REQUEST. It had to be &lt;SPAN class="with-breadcrumbs"&gt;&lt;SPAN class="L0S70"&gt;&lt;SPAN class="L0S70"&gt;lt_return_tab&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="L0S70"&gt;-retfield since this holds the filednames used in ALV.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="with-breadcrumbs"&gt;&lt;SPAN class="L0S70"&gt;&lt;SPAN class="L0S70"&gt;&lt;SPAN class="with-breadcrumbs"&gt;&lt;SPAN class="L0S70"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="with-breadcrumbs"&gt;&lt;SPAN class="L0S70"&gt;&lt;SPAN class="L0S70"&gt;&lt;SPAN class="with-breadcrumbs"&gt;&lt;SPAN class="L0S70"&gt;hope it helps &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="with-breadcrumbs"&gt;&lt;SPAN class="L0S70"&gt;&lt;SPAN class="L0S70"&gt;&lt;SPAN class="with-breadcrumbs"&gt;&lt;SPAN class="L0S70"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="with-breadcrumbs"&gt;&lt;SPAN class="L0S70"&gt;&lt;SPAN class="L0S70"&gt;&lt;SPAN class="with-breadcrumbs"&gt;&lt;SPAN class="L0S70"&gt;regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="with-breadcrumbs"&gt;&lt;SPAN class="L0S70"&gt;&lt;SPAN class="L0S70"&gt;&lt;SPAN class="with-breadcrumbs"&gt;&lt;SPAN class="L0S70"&gt;Stefan Seeburger&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="with-breadcrumbs"&gt;&lt;SPAN class="L0S70"&gt;&lt;SPAN class="L0S70"&gt;&lt;SPAN class="with-breadcrumbs"&gt;&lt;SPAN class="L0S70"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2016 13:47:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-grid-onf4-event-data-changed-event/m-p/848020#M45658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-05-20T13:47:14Z</dc:date>
    </item>
  </channel>
</rss>

