<?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: Editable ALV Container Error Handling in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-container-error-handling/m-p/8849310#M1685006</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;The best way is to do the SAP standard way of handling errors. Take a look at program &lt;STRONG&gt;BCALV_EDIT_03.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/113691" width="450" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jake&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jun 2012 01:25:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-06-26T01:25:02Z</dc:date>
    <item>
      <title>Editable ALV Container Error Handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-container-error-handling/m-p/8849307#M1685003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all, just had a simple question that I haven't been able to find an answer to.&lt;/P&gt;&lt;P&gt;Starting facts:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I'm using a module program&lt;/LI&gt;&lt;LI&gt;On a screen we have an ALV grid in a container using method set_table_for_first_display&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the user enters data on screen 1 for instance, then we select from the DB and then display 10 records in an editable ALV.&amp;nbsp; They can then edit the data and press save.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;My Question&lt;/STRONG&gt;&lt;BR /&gt;What is the best way to handle errors the user has entered in the ALV field and return those errors to the user in a clear way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance, when there is an error on the data they entered in line 6, can I highlight line 6, or grey out the other lines and highlight the field(s) like you can with the field/endchain in the PAI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now I am looping at the table after the "check_changed_data", and then executing a FORM in the MODULE code in the PAI.&amp;nbsp; Checking the data and issuing an error message... the problem is since all fields are still in edit it is a bit confusing.&amp;nbsp; I'm putting the line on the screen in the error message, but that cannot be the best way to do this.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;&lt;P&gt;Ronnie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 20:59:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-container-error-handling/m-p/8849307#M1685003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-25T20:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV Container Error Handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-container-error-handling/m-p/8849308#M1685004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ronnie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree and would deactivate the lines which are good and highlight the line/field which has the error. Use 'S' or 'I' messages with addition display-like 'E' or 'W'.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 21:21:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-container-error-handling/m-p/8849308#M1685004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-25T21:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV Container Error Handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-container-error-handling/m-p/8849309#M1685005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;'E' Type messages dont work in OOPS ALV. If you do, you are generally thrown out of the screen.&lt;/P&gt;&lt;P&gt;Also, 'I' Messages are converted to 'S' Messages.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 01:17:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-container-error-handling/m-p/8849309#M1685005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-26T01:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV Container Error Handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-container-error-handling/m-p/8849310#M1685006</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;The best way is to do the SAP standard way of handling errors. Take a look at program &lt;STRONG&gt;BCALV_EDIT_03.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/113691" width="450" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jake&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 01:25:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-container-error-handling/m-p/8849310#M1685006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-26T01:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV Container Error Handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-container-error-handling/m-p/8849311#M1685007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ronnie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also add a new field to the ALV display say 'Messages'' for displaying the error messages for each line.&lt;/P&gt;&lt;P&gt;Give Green Traffic light for successful records and disable edit mode for them and for Error ones, give Red light and enable fields for editing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Shambu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 04:10:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-container-error-handling/m-p/8849311#M1685007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-26T04:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV Container Error Handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-container-error-handling/m-p/8849312#M1685008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chinmay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not suggesting 'E' messages. I am suggesting messages of type 'S' or 'I' with DISPLAY-LIKE 'E' addition. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 14:13:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-container-error-handling/m-p/8849312#M1685008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-26T14:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Editable ALV Container Error Handling</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-container-error-handling/m-p/8849313#M1685009</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;Jake +1. The best way to go is using standard class &lt;EM&gt;cl_alv_changed_data_protocol &lt;/EM&gt;with &lt;EM&gt;add_protocol_entry &lt;/EM&gt;&amp;amp; &lt;EM&gt;display_protocol &lt;/EM&gt;methods. You don't need to struggle with changing ALV layout accordingly, this class will smoothly handle erroneous cells for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, a nice way for displaying the protocol could be to split your main container in 2 parts and include the protocol object in the container below. Then just collapse it if no error exists and expand it when errors are found...well just in case, like me, you don't like popups &lt;SPAN __jive_emoticon_name="silly" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" height="1" src="https://community.sap.com/825/images/emoticons/silly.gif" width="1"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Manu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 17:15:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/editable-alv-container-error-handling/m-p/8849313#M1685009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-26T17:15:36Z</dc:date>
    </item>
  </channel>
</rss>

