<?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: ALV - error protocol in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-error-protocol/m-p/2081780#M431909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I use F4 and dobbelt click on the entry in the F4-popup window and after the value is updated in the field on screen - then ENTER - my protocol is not shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I instead manuelly enter the value in the field - then ENTER - my protocol is shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Svend Frederiksen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 15 Apr 2007 19:41:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-15T19:41:23Z</dc:date>
    <item>
      <title>ALV - error protocol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-error-protocol/m-p/2081778#M431907</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;I'm writing an ALV report to do table maintenance of a Z table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've used bits of BCALV03 &amp;amp; 04 and other BCALV&amp;#146;s.&lt;/P&gt;&lt;P&gt; I can add new lines and edit fields in the report screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have build F4 to get possible values into my screen fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;My problem is if I find errors in the form Combi_check and the last&lt;/P&gt;&lt;P&gt;change to a field was made via F4 &amp;#150; my Log-protocol is not shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If my last change to a field  before Combi_check was done manuelly &amp;#150;&lt;/P&gt;&lt;P&gt;my Log-protocol is shown OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are I doing wrong ?&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;handle_data_changed&lt;/P&gt;&lt;P&gt;for event data_changed of cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;importing er_data_changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method handle_data_changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ls_good type lvc_s_modi.&lt;/P&gt;&lt;P&gt;loop at er_data_changed-&amp;gt;mt_good_cells into ls_good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  perform combi_check&amp;#133;&amp;#133;&amp;#133;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if lv_error ne space.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create Error-protocol&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   loop at it_error_tab into wa_error_tab.&lt;/P&gt;&lt;P&gt;     if not wa_error_tab-error eq space.&lt;/P&gt;&lt;P&gt;       CALL METHOD er_data_changed-&amp;gt;add_protocol_entry&lt;/P&gt;&lt;P&gt;            EXPORTING&lt;/P&gt;&lt;P&gt;              i_msgid     = '0K'&lt;/P&gt;&lt;P&gt;              i_msgno     = '000'&lt;/P&gt;&lt;P&gt;              i_msgty     = 'E'&lt;/P&gt;&lt;P&gt;              i_msgv1     = wa_error_tab-txt&lt;/P&gt;&lt;P&gt;              i_fieldname = wa_error_tab-fieldname&lt;/P&gt;&lt;P&gt;              i_row_id    = ls_good-row_id.&lt;/P&gt;&lt;P&gt;     endif.&lt;/P&gt;&lt;P&gt;   endloop.&lt;/P&gt;&lt;P&gt;   clear it_error_tab[].&lt;/P&gt;&lt;P&gt;   clear lv_error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT  er_data_changed-&amp;gt;mt_deleted_rows INTO ls_delete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmethod. "handle_data_changed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Svend Frederiksen&lt;/P&gt;&lt;P&gt;Frederiksen IT Consulting ApS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP Developer / DK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Apr 2007 19:08:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-error-protocol/m-p/2081778#M431907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-15T19:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: ALV - error protocol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-error-protocol/m-p/2081779#M431908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you hit enter immediately after doing the F4, does it show in your log then?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Apr 2007 19:12:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-error-protocol/m-p/2081779#M431908</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-15T19:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: ALV - error protocol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-error-protocol/m-p/2081780#M431909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I use F4 and dobbelt click on the entry in the F4-popup window and after the value is updated in the field on screen - then ENTER - my protocol is not shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I instead manuelly enter the value in the field - then ENTER - my protocol is shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Svend Frederiksen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Apr 2007 19:41:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-error-protocol/m-p/2081780#M431909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-15T19:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: ALV - error protocol</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-error-protocol/m-p/2081781#M431910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Svend&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Rich has already implied the DATA_CHANGED event is not yet raised when you call a search help on the ALV list. However, the event will should be raised after hitting the ENTER button which causes the dynpro to run into PAI where you, most  likely, call method go_grid-&amp;gt;check_changed_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to validate the values selected from a search help then you need to define a handler for event &amp;lt;b&amp;gt;ON_F4&amp;lt;/b&amp;gt;. In addition, you need to call method &amp;lt;b&amp;gt;go_grid-&amp;gt;register_f4_for_fields&amp;lt;/b&amp;gt; (for more details see sample report &amp;lt;b&amp;gt;BCALV_TEST_GRID_F4_HELP&amp;lt;/b&amp;gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Apr 2007 20:06:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-error-protocol/m-p/2081781#M431910</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-04-15T20:06:58Z</dc:date>
    </item>
  </channel>
</rss>

