<?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 / method cl_alv_changed_data_protocol-add_protocol_entry in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-method-cl-alv-changed-data-protocol-add-protocol-entry/m-p/6961610#M1489992</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My problem is solved, because the method modify_style was the reason for the run time error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I called for one special field in the loop at mt_good_cells the method modify style&lt;/P&gt;&lt;P&gt;which tried to append a line to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append ls_modi to mt_good_cells. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in a loop to change the internal table the loop is based on isn't a good idea.&lt;/P&gt;&lt;P&gt;So the memory ran out and the system hang up when the memory size for the table was overrun.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for listening, the problem is solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jun 2010 12:29:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-21T12:29:46Z</dc:date>
    <item>
      <title>alv grid / method cl_alv_changed_data_protocol-add_protocol_entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-method-cl-alv-changed-data-protocol-add-protocol-entry/m-p/6961609#M1489991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the demo program BCALV_GRID_EDIT to implement my editable grid and now I got stuck in the &lt;/P&gt;&lt;P&gt;method data_changed, where I do that loop:&lt;/P&gt;&lt;P&gt;LOOP AT rr_data_changed-&amp;gt;mt_good_cells INTO ls_mod_cells.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where I check, get the values and modify the cells.&lt;/P&gt;&lt;P&gt;If something is wrong, I call the alv error protocol like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          CALL METHOD rr_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     = text-004 "Buchungskreis&lt;/P&gt;&lt;P&gt;              i_msgv2     = l_rbukrs&lt;/P&gt;&lt;P&gt;              i_msgv3     = text-006 "exisitiert nicht&lt;/P&gt;&lt;P&gt;              i_fieldname = ls_mod_cells-fieldname&lt;/P&gt;&lt;P&gt;              i_row_id    = ls_mod_cells-row_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The right wrong value is highlighted in red, the message is displayed, everything works fine until I change the value back to normal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I get a run time error TSV_TNEW_PAGE_ALLOC_FAILED because MT_GOOD_CELLS couldn't be expanded.&lt;/P&gt;&lt;P&gt;It happened in class CL_ALV_CHANGED_DATA_PROTOCOL, in method MODIFY_STYLE in line 41.&lt;/P&gt;&lt;P&gt;append ls_modi to mt_good_cells. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already tried to debug that method, to see what went wrong, but the debugger doesn't work any more at this point.&lt;/P&gt;&lt;P&gt;I guess I use the method wrong.&lt;/P&gt;&lt;P&gt;Does it has got something to do with &lt;/P&gt;&lt;P&gt;cl_gui_control=&amp;gt;www_active which is not active in my test? (p_loce in BCALV_GRID_EDIT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried already many things with refresh_protocol and protocol_is_visible but the problem does not change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions? Should I simply choose to a message_list class and do the highlighting manually?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jun 2010 10:05:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-method-cl-alv-changed-data-protocol-add-protocol-entry/m-p/6961609#M1489991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-21T10:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: alv grid / method cl_alv_changed_data_protocol-add_protocol_entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-method-cl-alv-changed-data-protocol-add-protocol-entry/m-p/6961610#M1489992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My problem is solved, because the method modify_style was the reason for the run time error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I called for one special field in the loop at mt_good_cells the method modify style&lt;/P&gt;&lt;P&gt;which tried to append a line to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append ls_modi to mt_good_cells. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in a loop to change the internal table the loop is based on isn't a good idea.&lt;/P&gt;&lt;P&gt;So the memory ran out and the system hang up when the memory size for the table was overrun.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for listening, the problem is solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jun 2010 12:29:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-method-cl-alv-changed-data-protocol-add-protocol-entry/m-p/6961610#M1489992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-21T12:29:46Z</dc:date>
    </item>
  </channel>
</rss>

