<?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: Set ALV first row in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-alv-first-row/m-p/7540069#M1562298</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, now I get your point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This thread may help you -&amp;gt; [&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2905665"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jan 2011 13:43:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-01-13T13:43:13Z</dc:date>
    <item>
      <title>Set ALV first row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-alv-first-row/m-p/7540066#M1562295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ABAP Expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to set the first row displayed in an ALV grid using ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact the list contains a lot of lines but the user need that the list after refresh keep the position without to repeat the scrolling from the top of the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ALV is displayed using FM REUSE_ALV_GRID_DISPLAY_LVC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have try several methods but without success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our help is welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christophe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 11:07:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-alv-first-row/m-p/7540066#M1562295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-13T11:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set ALV first row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-alv-first-row/m-p/7540067#M1562296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christophe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to fill the field NO_SCROLLING of structure SLIS_LAYOUT_ALV with "X".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But use the FM REUSE_ALV_LIST_DISPLAY, becasue the FM REUSE_ALV_GRID_DISPLAY_LVC does not have the field NO_SCROLLING into structure IS_LAYOUT_LVC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;João Henrique&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: João Henrique Luz Alves de Araujo on Jan 13, 2011 9:40 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 11:39:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-alv-first-row/m-p/7540067#M1562296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-13T11:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Set ALV first row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-alv-first-row/m-p/7540068#M1562297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This option will desable the possibility to scroll ? this is not the objective.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to keep the last page of the list on the screen after refresh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christophe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 13:00:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-alv-first-row/m-p/7540068#M1562297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-13T13:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set ALV first row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-alv-first-row/m-p/7540069#M1562298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, now I get your point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This thread may help you -&amp;gt; [&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2905665"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 13:43:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-alv-first-row/m-p/7540069#M1562298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-13T13:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set ALV first row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-alv-first-row/m-p/7540070#M1562299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello REUSE_ALV_GRID_DISPLAY_LVC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can achieve your goal using fm REUSE_ALV_GRID_DISPLAY_LVC (although it would be much easier to use class CL_GUI_ALV_GRID).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The EXIT routine for command handling (parameter I_CALLBACK_USER_COMMAND) has a parameter R_UCOMM with the following fields (and more of them):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
refresh  : (exporting) list is to be refreshed

col_stable:(exporting) keep column positions in refresh

row_stable:(exporting) keep row positions in refresh

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you set COL_STABLE = 'X' and ROW_STABLE = 'X' you achieve the same when using go_grid-&amp;gt;REFRESH_TABLE_DISPLAY ( using parameter IS_STABLE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;   Uwe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: See documentation of fm REUSE_ALV_LIST_DISPLAY.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 13:45:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-alv-first-row/m-p/7540070#M1562299</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2011-01-13T13:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set ALV first row</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-alv-first-row/m-p/7540071#M1562300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the solution :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when  i call the method REFRESH_TABLE_DISPLAY&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA : W_STABLE TYPE LVC_S_STBL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;W_STABLE-ROW = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD WV_REF_GRID-&amp;gt;REFRESH_TABLE_DISPLAY&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        IS_STABLE = W_STABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this setting the list keep the current position after the refresh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jan 2011 14:38:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-alv-first-row/m-p/7540071#M1562300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-13T14:38:51Z</dc:date>
    </item>
  </channel>
</rss>

