<?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 list - refresh single lines in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-list-refresh-single-lines/m-p/829947#M43482</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SAP R/3 version 40B !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an alternative way to do this ?&lt;/P&gt;&lt;P&gt;This is what I do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I create alv list via REUSE_ALV_LIST_DISPLAY with custom push button and user_command form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the user marks a line and push the pushbutton the user_command form is executed - and the internal table is modified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To update the screen i set the flag refresh in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM user_command USING r_ucomm LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;                        rs_selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;CASE r_ucomm.&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;rs_selfield-refresh = 'X'. &lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However this refreshes the complete list including sort, subtotals etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the sorting defined by the user is not on unique key, the sorting is partly random and when the list is re-sorted the sorting order may change. This can be very confusing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An other problem is by very large lists the load/refresh can be very slow. This means that a very small change of one list line can have a very long response time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Thomas Madsen Nielsen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Sep 2004 10:37:23 GMT</pubDate>
    <dc:creator>TMNielsen</dc:creator>
    <dc:date>2004-09-02T10:37:23Z</dc:date>
    <item>
      <title>ALV list - refresh single lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-list-refresh-single-lines/m-p/829947#M43482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SAP R/3 version 40B !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an alternative way to do this ?&lt;/P&gt;&lt;P&gt;This is what I do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I create alv list via REUSE_ALV_LIST_DISPLAY with custom push button and user_command form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the user marks a line and push the pushbutton the user_command form is executed - and the internal table is modified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To update the screen i set the flag refresh in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM user_command USING r_ucomm LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;                        rs_selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;CASE r_ucomm.&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;rs_selfield-refresh = 'X'. &lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However this refreshes the complete list including sort, subtotals etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the sorting defined by the user is not on unique key, the sorting is partly random and when the list is re-sorted the sorting order may change. This can be very confusing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An other problem is by very large lists the load/refresh can be very slow. This means that a very small change of one list line can have a very long response time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Thomas Madsen Nielsen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Sep 2004 10:37:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-list-refresh-single-lines/m-p/829947#M43482</guid>
      <dc:creator>TMNielsen</dc:creator>
      <dc:date>2004-09-02T10:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: ALV list - refresh single lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-list-refresh-single-lines/m-p/829948#M43483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a simple solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using the refresh flag/function I refresh the list via simple "read line" / "modify current line" commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Thomas Madsen Nielsen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2004 12:18:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-list-refresh-single-lines/m-p/829948#M43483</guid>
      <dc:creator>TMNielsen</dc:creator>
      <dc:date>2004-09-03T12:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: ALV list - refresh single lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-list-refresh-single-lines/m-p/829949#M43484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have the same problem. How did you refreshed the line. It's not clear for me. Could you write more details.&lt;/P&gt;&lt;P&gt;Thanks .&lt;/P&gt;&lt;P&gt;Rajab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 09:31:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-list-refresh-single-lines/m-p/829949#M43484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T09:31:13Z</dc:date>
    </item>
  </channel>
</rss>

