<?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 Grid Display Protocol Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display-protocol-error/m-p/12084649#M1971259</link>
    <description>&lt;P&gt;&lt;A href="https://answers.sap.com/users/856322/rohit29.html"&gt;Rohit Chowdhary&lt;/A&gt;, &lt;/P&gt;&lt;P&gt;Advice you to use the CODE button to paste the code which will help us to have a better look at the issue. &lt;/P&gt;&lt;P&gt;Regards! &lt;/P&gt;</description>
    <pubDate>Mon, 04 Nov 2019 17:34:00 GMT</pubDate>
    <dc:creator>former_member1716</dc:creator>
    <dc:date>2019-11-04T17:34:00Z</dc:date>
    <item>
      <title>ALV Grid Display Protocol Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display-protocol-error/m-p/12084648#M1971258</link>
      <description>&lt;P&gt;I am working on a editable ALV grid control. I have created a button for user to upload excel file. To trigger data_changed event following is coded:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;DATA : lt_bad_cells TYPE lvc_t_modi,
lt_msg TYPE lvc_t_msg1.

IF go_obj-&amp;gt;go_data_obj IS NOT BOUND. 
CREATE OBJECT go_obj-&amp;gt;go_data_obj " Error handler object reference to cl_alv_changed_data_protocol

EXPORTING
i_calling_alv = go_grid. "ALV Grid 
ENDIF.

LOOP AT &amp;lt;fs_gt_read_table&amp;gt; ASSIGNING FIELD-SYMBOL(&amp;lt;fs_read&amp;gt;).
   IF &amp;lt;fs_read&amp;gt; IS ASSIGNED.
      MOVE-CORRESPONDING &amp;lt;fs_read&amp;gt; TO gwa_park_jou_it.
      INSERT gwa_park_jou_it INTO gt_park_jou_it INDEX lv_next.
      ls_mod_cell-row_id = sy-tabix.
      ls_mod_cell-tabix = sy-tabix.
      LOOP AT lt_fcat ASSIGNING FIELD-SYMBOL(&amp;lt;fcat&amp;gt;).
         ls_mod_cell-fieldname = &amp;lt;fcat&amp;gt;-fieldname.
         ASSIGN COMPONENT &amp;lt;fcat&amp;gt;-fieldname OF STRUCTURE &amp;lt;fs_read&amp;gt; TO FIELD-SYMBOL(&amp;lt;value&amp;gt;).
         IF sy-subrc = 0.
            ls_mod_cell-value = &amp;lt;value&amp;gt;.
            INSERT ls_mod_cell INTO TABLE gt_mod_cells.
         ENDIF.
      ENDLOOP.
      lv_next = lv_next + 1.
   ENDIF.
ENDLOOP.
CALL METHOD go_grid-&amp;gt;refresh_table_display.
CALL METHOD go_grid-&amp;gt;if_cached_prop~set_prop
     EXPORTING
        propname = 'GridModified'
        propvalue = '1'.
go_obj-&amp;gt;handle_data_changed( er_data_changed = go_obj-&amp;gt;go_data_obj
                                      sender = go_grid ).
go_obj-&amp;gt;go_data_obj-&amp;gt;display_protocol( ).

The messages are added as following in various check methods 

er_data_changed-&amp;gt;add_protocol_entry( " In case of issue send error message
                 EXPORTING
                   i_msgid = text-038
                   i_msgno = lc_msgno
                   i_msgty = gc_e
                   i_msgv1 = text-011
                   i_msgv2 = lo_exe-&amp;gt;get_text( )
                   i_fieldname = lv_good-fieldname
                   i_row_id = lv_good-row_id ).

In handle data changed method following is coded.

IF gt_mod_cells IS NOT INITIAL.
   INSERT LINES OF gt_mod_cells INTO TABLE er_data_changed-&amp;gt;mt_good_cells.
   INSERT LINES OF gt_mod_cells INTO TABLE er_data_changed-&amp;gt;mt_mod_cells.
   DATA(lv_no_value) = abap_true.
   REFRESH: gt_mod_cells.
ENDIF.
IF er_data_changed IS BOUND.
   er_data_changed-&amp;gt;refresh_protocol( ).
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;All is working fine. Error messages for data validations are being displayed as POPUP as well. &lt;/P&gt;
  &lt;P&gt;The issue which I am facing is that system generates an ABAP dump when protocol box is closed. &lt;/P&gt;
  &lt;P&gt;At close of protocol box event "on_close" is triggered which tries to set_focus to calling ALV. &lt;/P&gt;
  &lt;P&gt;The value of calling ALV is blank in the method set_focus of Cl_GUI_CONTROL. &lt;/P&gt;
  &lt;P&gt;When method go_obj-&amp;gt;go_data_obj-&amp;gt;display_protocol( i_calling_alv = go_grid ) is called with ALV Grid reference no messages are displayed. &lt;/P&gt;
  &lt;P&gt;Go_data_obj is defined as class-data.&lt;/P&gt;
  &lt;P&gt;Any help will be really appreciated. I am just having a black out for last few days to resolve this. &lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 15:40:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display-protocol-error/m-p/12084648#M1971258</guid>
      <dc:creator>chowdharyrohit1</dc:creator>
      <dc:date>2019-11-04T15:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid Display Protocol Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display-protocol-error/m-p/12084649#M1971259</link>
      <description>&lt;P&gt;&lt;A href="https://answers.sap.com/users/856322/rohit29.html"&gt;Rohit Chowdhary&lt;/A&gt;, &lt;/P&gt;&lt;P&gt;Advice you to use the CODE button to paste the code which will help us to have a better look at the issue. &lt;/P&gt;&lt;P&gt;Regards! &lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 17:34:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display-protocol-error/m-p/12084649#M1971259</guid>
      <dc:creator>former_member1716</dc:creator>
      <dc:date>2019-11-04T17:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid Display Protocol Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display-protocol-error/m-p/12084650#M1971260</link>
      <description>&lt;P&gt;If you don't analyze the short dump, you won't be able to solve the issue. Or tell us if you're stuck...&lt;/P&gt;&lt;P&gt;PS: Please use the CODE button to format your code so that it's shown in a more user-friendly format (colorized).&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 19:41:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display-protocol-error/m-p/12084650#M1971260</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-11-04T19:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid Display Protocol Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display-protocol-error/m-p/12084651#M1971261</link>
      <description>&lt;P&gt;Your question is about a short dump? If you don't give more information, it's impossible to help.&lt;/P&gt;&lt;P&gt;Please use the COMMENT button for comments, questions, adding details, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 08:04:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display-protocol-error/m-p/12084651#M1971261</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-11-06T08:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid Display Protocol Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display-protocol-error/m-p/12084652#M1971262</link>
      <description>&lt;P&gt;short dump Details&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1742822-shortdump.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1742823-shortdump1.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 11:53:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-display-protocol-error/m-p/12084652#M1971262</guid>
      <dc:creator>chowdharyrohit1</dc:creator>
      <dc:date>2019-11-06T11:53:47Z</dc:date>
    </item>
  </channel>
</rss>

