<?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 ALV: Error calling add_protocol_entry in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-error-calling-add-protocol-entry/m-p/6322447#M1394704</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 want to avoid to call the fm 'POPUP_TO_INFORM' for showing an error message in my alv. I'd like to collect all errors and set the field in error (red). I am trying to follow the following steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) DATA pr_data_changed type ref to cl_alv_changed_data_protocol.&lt;/P&gt;&lt;P&gt;2)             call method pr_data_changed-&amp;gt;add_protocol_entry&lt;/P&gt;&lt;P&gt;                            exporting&lt;/P&gt;&lt;P&gt;                 i_msgid = '0K' i_msgno = '000'  i_msgty = 'E'&lt;/P&gt;&lt;P&gt;                 i_msgv1 = text-i03&lt;/P&gt;&lt;P&gt;                 i_fieldname = 'MATNR'&lt;/P&gt;&lt;P&gt;                 i_row_id = 1.&lt;/P&gt;&lt;P&gt;3)  CALL METHOD pr_data_changed-&amp;gt;display_protocol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I receive this error when the step 2 is executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You attempted to use a 'NULL' object reference (access a component (variable: "PR_DATA_CHANGED").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be well appreciated.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       Giovanni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Nov 2009 12:36:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-10T12:36:33Z</dc:date>
    <item>
      <title>ALV: Error calling add_protocol_entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-error-calling-add-protocol-entry/m-p/6322447#M1394704</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 want to avoid to call the fm 'POPUP_TO_INFORM' for showing an error message in my alv. I'd like to collect all errors and set the field in error (red). I am trying to follow the following steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) DATA pr_data_changed type ref to cl_alv_changed_data_protocol.&lt;/P&gt;&lt;P&gt;2)             call method pr_data_changed-&amp;gt;add_protocol_entry&lt;/P&gt;&lt;P&gt;                            exporting&lt;/P&gt;&lt;P&gt;                 i_msgid = '0K' i_msgno = '000'  i_msgty = 'E'&lt;/P&gt;&lt;P&gt;                 i_msgv1 = text-i03&lt;/P&gt;&lt;P&gt;                 i_fieldname = 'MATNR'&lt;/P&gt;&lt;P&gt;                 i_row_id = 1.&lt;/P&gt;&lt;P&gt;3)  CALL METHOD pr_data_changed-&amp;gt;display_protocol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I receive this error when the step 2 is executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You attempted to use a 'NULL' object reference (access a component (variable: "PR_DATA_CHANGED").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be well appreciated.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       Giovanni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 12:36:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-error-calling-add-protocol-entry/m-p/6322447#M1394704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T12:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: ALV: Error calling add_protocol_entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-error-calling-add-protocol-entry/m-p/6322448#M1394705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create the object PR_DATA_CHANGED before calling the methods of the class CL_ALV_CHANGED_DATA_PROTOCOL using the object PR_DATA_CHANGED.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 13:00:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-error-calling-add-protocol-entry/m-p/6322448#M1394705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T13:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: ALV: Error calling add_protocol_entry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-error-calling-add-protocol-entry/m-p/6322449#M1394706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi and thanks for the suggestion but is it possible ti have an example how to create the PR_DATA_CHANGED object?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Giovanni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2009 13:56:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-error-calling-add-protocol-entry/m-p/6322449#M1394706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-10T13:56:47Z</dc:date>
    </item>
  </channel>
</rss>

