<?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: Refreshing the ALV Grid second time in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/refreshing-the-alv-grid-second-time/m-p/7743407#M1581978</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;I think you are using the Oop ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i am correct try the following solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Register any of the event  CLICK_ROW_COL for header alv and check the rowid is same with previous one or not if not refresh the item data alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Register event DELAYED_CHANGE_SELECTION ( i.e. Selection has been Modified) for header alv, If selection has modified then refresh the item data alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But without handdling the event it is not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Mar 2011 06:10:52 GMT</pubDate>
    <dc:creator>ravi_lanjewar</dc:creator>
    <dc:date>2011-03-31T06:10:52Z</dc:date>
    <item>
      <title>Refreshing the ALV Grid second time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refreshing-the-alv-grid-second-time/m-p/7743399#M1581970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi expert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I have two alv in seperate Subscreen. 1st Subscreen is having the header detail, when i select one or more row and click toolbar button , it is populating the detail data of the selected row in the second ALV. But after displaying, when I select some other row from the header detail and again click the same toolbar button, it is not refreshing the detail list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What might be the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kapil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 08:56:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refreshing-the-alv-grid-second-time/m-p/7743399#M1581970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-25T08:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing the ALV Grid second time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refreshing-the-alv-grid-second-time/m-p/7743400#M1581971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kapil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           Did you check whether you refreshed the internal table of the ALV in the second sub screen each time after clicking that button ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE user_command_9000 INPUT.

code = okcode.
clear okcode.
case  code.
when 'BUTTON'.
refresh alv_itab.
perform detail_fetch.
end case.

end module.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vivek.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 09:19:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refreshing-the-alv-grid-second-time/m-p/7743400#M1581971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-25T09:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing the ALV Grid second time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refreshing-the-alv-grid-second-time/m-p/7743401#M1581972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vivek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Yes , I am refreshing the Internal table i have check that. I found that Second time when i click that button . I am not getting row index of the selected row from the get selected method of the alv grid class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kapil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 09:23:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refreshing-the-alv-grid-second-time/m-p/7743401#M1581972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-25T09:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing the ALV Grid second time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refreshing-the-alv-grid-second-time/m-p/7743402#M1581973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kapil.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think u r not refreshing table display correctly.. pls check &lt;STRONG&gt;BCALV_GRID_05&lt;/STRONG&gt;  Report .. hope this ll solve your issue..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert if u need some more clarifications.,&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>Fri, 25 Mar 2011 09:26:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refreshing-the-alv-grid-second-time/m-p/7743402#M1581973</guid>
      <dc:creator>Kiran_Valluru</dc:creator>
      <dc:date>2011-03-25T09:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing the ALV Grid second time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refreshing-the-alv-grid-second-time/m-p/7743403#M1581974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I am refreshing the internal table, second time i am getting empty Alv because while getting the selected row from the header ALV, i am not getting any row indexes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kapil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 09:41:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refreshing-the-alv-grid-second-time/m-p/7743403#M1581974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-25T09:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing the ALV Grid second time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refreshing-the-alv-grid-second-time/m-p/7743404#M1581975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kapil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            I think, you have not called the method flush. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try doing this after getting the selected rows index and displaying the ALV. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; CALL METHOD cl_gui_cfw=&amp;gt;flush.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;            &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vivek.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 09:43:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refreshing-the-alv-grid-second-time/m-p/7743404#M1581975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-25T09:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing the ALV Grid second time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refreshing-the-alv-grid-second-time/m-p/7743405#M1581976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kapil ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I suggested pls check  &lt;STRONG&gt;BCALV_GRID_05&lt;/STRONG&gt;  report.. u compare ur report and this.. then u can surely solve ur issue.. &lt;/P&gt;&lt;P&gt;&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>Fri, 25 Mar 2011 10:19:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refreshing-the-alv-grid-second-time/m-p/7743405#M1581976</guid>
      <dc:creator>Kiran_Valluru</dc:creator>
      <dc:date>2011-03-25T10:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing the ALV Grid second time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refreshing-the-alv-grid-second-time/m-p/7743406#M1581977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi Kiran,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt;   I am refreshing the internal table, second time i am getting empty Alv because while getting the selected row from the header ALV, i am not getting any row indexes.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Regards,&lt;/P&gt;&lt;P&gt;&amp;gt; Kapil.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try explicitly getting the row index with &lt;STRONG&gt;GET_CURRENT_CELL&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 10:31:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refreshing-the-alv-grid-second-time/m-p/7743406#M1581977</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2011-03-25T10:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing the ALV Grid second time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refreshing-the-alv-grid-second-time/m-p/7743407#M1581978</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;I think you are using the Oop ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i am correct try the following solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Register any of the event  CLICK_ROW_COL for header alv and check the rowid is same with previous one or not if not refresh the item data alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Register event DELAYED_CHANGE_SELECTION ( i.e. Selection has been Modified) for header alv, If selection has modified then refresh the item data alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But without handdling the event it is not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 06:10:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refreshing-the-alv-grid-second-time/m-p/7743407#M1581978</guid>
      <dc:creator>ravi_lanjewar</dc:creator>
      <dc:date>2011-03-31T06:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Refreshing the ALV Grid second time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refreshing-the-alv-grid-second-time/m-p/7743408#M1581979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Thanks for all your reply.. i have solved the problem. Actually, second time i was instantiating another alv grid instead of using the first instance. After correcting it is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kapil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 06:13:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refreshing-the-alv-grid-second-time/m-p/7743408#M1581979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-31T06:13:54Z</dc:date>
    </item>
  </channel>
</rss>

