<?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: Problem using method ADD_PROTOCOL_ENTRY in &amp;quot;handle_data_changed&amp;quot; in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-method-add-protocol-entry-in-quot-handle-data-changed-quot/m-p/8011339#M1607723</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So... is there a way to show the protocol outside the event data_changed. For example at user_command when pressing SAVE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jul 2011 14:53:06 GMT</pubDate>
    <dc:creator>Rodrigo-Giner</dc:creator>
    <dc:date>2011-07-21T14:53:06Z</dc:date>
    <item>
      <title>Problem using method ADD_PROTOCOL_ENTRY in "handle_data_changed"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-method-add-protocol-entry-in-quot-handle-data-changed-quot/m-p/8011334#M1607718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, im validating the data inside method "handle_data_changed" and when a error occurs I use the following code to add an error in the protocol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD p_er_data_changed-&amp;gt;add_protocol_entry
            EXPORTING
            i_msgid = 'SU'
            i_msgno = '000'
            i_msgty = 'E'
            i_msgv1 = 'Value Invalid '
            i_fieldname = lw_mod_cell-fieldname
            i_row_id = lw_mod_cell-row_id.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that even I dont use the method p_er_data_changed-&amp;gt;display_protocol. It shows me the protocol anyway... and dont know why. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is to collect all the errors in the protocol so when the user press a "check" or "save" button, if the protocol isnt empy then show ALL the errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the event is triggered in every field so what I get is a error message for each field instead of showing all the errors together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2011 14:35:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-method-add-protocol-entry-in-quot-handle-data-changed-quot/m-p/8011334#M1607718</guid>
      <dc:creator>Rodrigo-Giner</dc:creator>
      <dc:date>2011-07-13T14:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using method ADD_PROTOCOL_ENTRY in "handle_data_changed"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-method-add-protocol-entry-in-quot-handle-data-changed-quot/m-p/8011335#M1607719</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; To suppress the popup log you have to deactivate the protocol display.&lt;/P&gt;&lt;P&gt;pass space to the method ACTIVATE_DISPLAY_PROTOCOL( ) of class CL_GUI_ALV_GRID to suppress popup log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: o_grid TYPE REF TO cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;o_grid-&amp;gt;activate_display_protocol( space ). " To deactivate Protocol display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do this in PBO.&lt;/P&gt;&lt;P&gt;hope this helps u.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2011 06:27:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-method-add-protocol-entry-in-quot-handle-data-changed-quot/m-p/8011335#M1607719</guid>
      <dc:creator>Kiran_Valluru</dc:creator>
      <dc:date>2011-07-14T06:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using method ADD_PROTOCOL_ENTRY in "handle_data_changed"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-method-add-protocol-entry-in-quot-handle-data-changed-quot/m-p/8011336#M1607720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you might have placed the method &lt;EM&gt;display_protocol( )&lt;/EM&gt; inside an iteration!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll suggest have a look at the SAP demo program BCALV_EDIT_03. Have a look at the event handle method &lt;EM&gt;handle_data_changed( )&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2011 06:50:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-method-add-protocol-entry-in-quot-handle-data-changed-quot/m-p/8011336#M1607720</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-07-14T06:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using method ADD_PROTOCOL_ENTRY in "handle_data_changed"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-method-add-protocol-entry-in-quot-handle-data-changed-quot/m-p/8011337#M1607721</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;have you registed the event ENTER , it will happens whenever you press enter/adding new rows and then press enter.&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;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2011 07:51:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-method-add-protocol-entry-in-quot-handle-data-changed-quot/m-p/8011337#M1607721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-14T07:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using method ADD_PROTOCOL_ENTRY in "handle_data_changed"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-method-add-protocol-entry-in-quot-handle-data-changed-quot/m-p/8011338#M1607722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My primary problem was that I registered the event:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*      CALL METHOD o_grid-&amp;gt;register_edit_event
*        EXPORTING
*          i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_modified.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I dont get the protocol after completing every cell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran, thx for the input it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now how can I do, to show the protocol wherever I want ? for example when the button "SAVE" is pressed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2011 15:20:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-method-add-protocol-entry-in-quot-handle-data-changed-quot/m-p/8011338#M1607722</guid>
      <dc:creator>Rodrigo-Giner</dc:creator>
      <dc:date>2011-07-14T15:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using method ADD_PROTOCOL_ENTRY in "handle_data_changed"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-method-add-protocol-entry-in-quot-handle-data-changed-quot/m-p/8011339#M1607723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So... is there a way to show the protocol outside the event data_changed. For example at user_command when pressing SAVE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 14:53:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-method-add-protocol-entry-in-quot-handle-data-changed-quot/m-p/8011339#M1607723</guid>
      <dc:creator>Rodrigo-Giner</dc:creator>
      <dc:date>2011-07-21T14:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using method ADD_PROTOCOL_ENTRY in "handle_data_changed"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-method-add-protocol-entry-in-quot-handle-data-changed-quot/m-p/8011340#M1607724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this way:&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD pr_data_changed-&amp;gt;add_protocol_entry
        EXPORTING
          i_msgid     = '0K'
          i_msgno     = '000'
          i_msgty     = 'E'
          i_msgv1     = text-m03
          i_msgv2     = magv2
          i_msgv3     = text-m04
          i_fieldname = fieldname
          i_row_id    = row_id.
      error_in_data = 'X'. "&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;
      EXIT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*-- Display application log if an error has occured.
    IF error_in_data EQ 'X'.
      CALL METHOD er_data_changed-&amp;gt;display_protocol.
    ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 16:18:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-method-add-protocol-entry-in-quot-handle-data-changed-quot/m-p/8011340#M1607724</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2011-07-21T16:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using method ADD_PROTOCOL_ENTRY in "handle_data_changed"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-method-add-protocol-entry-in-quot-handle-data-changed-quot/m-p/8011341#M1607725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jay, but that code is inside the method handle_data_changed. Right ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is like CALL METHOD er_data_changed-&amp;gt;display_protocol only can be used in that method. So if u register the event &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD o_grid-&amp;gt;register_edit_event
        EXPORTING
          i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_modified.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The protocol will be displayed wharever u enter a value in each field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u register this event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD o_grid-&amp;gt;register_edit_event
        EXPORTING
          i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_enter.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will get it wharever you hit ENTER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like Kiranssaid, with this you can avoid showing the protocol,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;o_grid-&amp;gt;activate_display_protocol( space ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tthe thing is that I want to show it... but not in the method handle_data_changed, and It seems that is a private method... so I dont know if there is a way to show it outside the method handle_data_changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx greetings&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 20:03:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-method-add-protocol-entry-in-quot-handle-data-changed-quot/m-p/8011341#M1607725</guid>
      <dc:creator>Rodrigo-Giner</dc:creator>
      <dc:date>2011-07-21T20:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using method ADD_PROTOCOL_ENTRY in "handle_data_changed"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-method-add-protocol-entry-in-quot-handle-data-changed-quot/m-p/8011342#M1607726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can creating a method for display protocol help? and call it where needed &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method o_grid-&amp;gt;display_me( ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2011 21:58:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-method-add-protocol-entry-in-quot-handle-data-changed-quot/m-p/8011342#M1607726</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2011-07-21T21:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using method ADD_PROTOCOL_ENTRY in "handle_data_changed"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-method-add-protocol-entry-in-quot-handle-data-changed-quot/m-p/14148030#M2042102</link>
      <description>&lt;P&gt;I did this to suppress the protocol , but my fields are high lighted in red now . How to remove this ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BhartiK_0-1752047854401.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/284413iB546386B90181579/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BhartiK_0-1752047854401.png" alt="BhartiK_0-1752047854401.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bharathi&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 07:57:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-method-add-protocol-entry-in-quot-handle-data-changed-quot/m-p/14148030#M2042102</guid>
      <dc:creator>BhartiK</dc:creator>
      <dc:date>2025-07-09T07:57:47Z</dc:date>
    </item>
  </channel>
</rss>

