<?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: ALV GRID CURRENT CELL DOES NOT REFRESH ON BACK BUTTON in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-current-cell-does-not-refresh-on-back-button/m-p/5148245#M1193036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This method actually clears the Object ALV_GRID. You cannot use Refresh statement if you wanted to clear the contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did it work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prashanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Prashanth KR on Feb 5, 2009 10:42 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Feb 2009 15:42:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-05T15:42:08Z</dc:date>
    <item>
      <title>ALV GRID CURRENT CELL DOES NOT REFRESH ON BACK BUTTON</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-current-cell-does-not-refresh-on-back-button/m-p/5148242#M1193033</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 call a screen and build the ALV GRID and then on double click get the column the user have clicked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by using the function &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD ALV_GRID-&amp;gt;GET_CURRENT_CELL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the current cell value to display details corresponding in the second screen &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On hitting back I return to the previous screen using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; leave screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refresh alv_grid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in the first screen on double click again the previous selection still remains &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the call method get current cell gets the same row selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it something I am missing here to refresh the selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;Charan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 14:32:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-current-cell-does-not-refresh-on-back-button/m-p/5148242#M1193033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T14:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID CURRENT CELL DOES NOT REFRESH ON BACK BUTTON</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-current-cell-does-not-refresh-on-back-button/m-p/5148243#M1193034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Are you using Refresh statement for clear ALV_GRID? If yes then instead of this try using CALL METHOD ALV_GRID-&amp;gt;FREE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prashanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 14:41:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-current-cell-does-not-refresh-on-back-button/m-p/5148243#M1193034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T14:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID CURRENT CELL DOES NOT REFRESH ON BACK BUTTON</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-current-cell-does-not-refresh-on-back-button/m-p/5148244#M1193035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for ur reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You Mean the ALV_GRID --&amp;gt; FREE would remove the previous previous user selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does this ALV_GRID --&amp;gt; FREE do if you can explain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Charan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 15:40:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-current-cell-does-not-refresh-on-back-button/m-p/5148244#M1193035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T15:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID CURRENT CELL DOES NOT REFRESH ON BACK BUTTON</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-current-cell-does-not-refresh-on-back-button/m-p/5148245#M1193036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This method actually clears the Object ALV_GRID. You cannot use Refresh statement if you wanted to clear the contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did it work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prashanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Prashanth KR on Feb 5, 2009 10:42 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 15:42:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-current-cell-does-not-refresh-on-back-button/m-p/5148245#M1193036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T15:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID CURRENT CELL DOES NOT REFRESH ON BACK BUTTON</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-current-cell-does-not-refresh-on-back-button/m-p/5148246#M1193037</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;When you double-click on any cell of alv grid, use this code to fetch the data of the line that you currently clicked, its working:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you double click on the ALV grid line, you will have sy-ucomm = &lt;STRONG&gt;'&amp;amp;IC1'&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when you define a &lt;STRONG&gt;i_callback_user_command&lt;/STRONG&gt; for the &lt;STRONG&gt;FM reuse_alv_grid_display&lt;/STRONG&gt;, and create it as:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM command USING ucomm LIKE sy-ucomm selfield TYPE slis_selfield.
  DATA : ok_code TYPE sy-ucomm.
  ok_code = ucomm.
  CASE ok_code.
    WHEN '&amp;amp;IC1'. "for double click on alv grid line
      " your code
  ENDCASE.
ENDFORM.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you have used &lt;STRONG&gt;selfield TYPE slis_selfield&lt;/STRONG&gt;, the field selfield will hold all the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To know on which row you have clicked and to retain that line, use code:-&lt;/P&gt;&lt;P&gt;Suppose you are currently displaying data from internal table &lt;STRONG&gt;itab&lt;/STRONG&gt; and corresponding to it you have work area &lt;STRONG&gt;wa&lt;/STRONG&gt;.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
read table itab into wa index selfield-tabindex. "index value of line you clicked
" now you have the contents of line that you double clicked currently
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now to know the field name that you clicked, use:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
selfield-fieldname " will fetch you the name of field that you clicked
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now using the work-area and the name of field that you clicked, you can easily make out the details of the field i.e., field name and field value and you can code as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now here you can create a new field catalog and call another &lt;STRONG&gt;FM 'REUSE_ALV_GRID_DISPLAY'&lt;/STRONG&gt; to display further information in the next grid based on the value obtained when user double clicks a cell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if you are using the alv grid to display, then you can also use:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
selfield-refresh = 'X'. "to refresh the alv display
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Tarun Gambhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 16:22:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-current-cell-does-not-refresh-on-back-button/m-p/5148246#M1193037</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-02-05T16:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID CURRENT CELL DOES NOT REFRESH ON BACK BUTTON</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-current-cell-does-not-refresh-on-back-button/m-p/5148247#M1193038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey thanks for the repsonse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting back to work now.&lt;/P&gt;&lt;P&gt;Will try those tips and get back to you. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Charan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2009 16:31:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-current-cell-does-not-refresh-on-back-button/m-p/5148247#M1193038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-05T16:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID CURRENT CELL DOES NOT REFRESH ON BACK BUTTON</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-current-cell-does-not-refresh-on-back-button/m-p/5148248#M1193039</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 code &lt;/P&gt;&lt;P&gt;ALV_GRID --&amp;gt; FREE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did not free the selection and my call program to get the current selection still finds the previous selection when I return to the first screen and click another line item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you let me know how can I remove the selection which was made on the grid and free it so a new selection will load up there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Charan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 01:15:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-current-cell-does-not-refresh-on-back-button/m-p/5148248#M1193039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-06T01:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID CURRENT CELL DOES NOT REFRESH ON BACK BUTTON</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-current-cell-does-not-refresh-on-back-button/m-p/5148249#M1193040</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 code as per you program is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LEAVE TO SCREEN 0.
Refresh alv_grid&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change this way and try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Refresh alv_grid   " Refresh the ALV grind and then Leave to screen 0
LEAVE TO SCREEN 0.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 01:36:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-current-cell-does-not-refresh-on-back-button/m-p/5148249#M1193040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-06T01:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID CURRENT CELL DOES NOT REFRESH ON BACK BUTTON</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-current-cell-does-not-refresh-on-back-button/m-p/5148250#M1193041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you let us know which class are you using build this Grid. Method FREE should clear the contents of the Object, if it exist in the Class or there should be some other relevent method to d othis and to my knowledge i don't think that Rrefresh statement will be helpful in doing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prashanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2009 08:03:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-current-cell-does-not-refresh-on-back-button/m-p/5148250#M1193041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-11T08:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: ALV GRID CURRENT CELL DOES NOT REFRESH ON BACK BUTTON</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-current-cell-does-not-refresh-on-back-button/m-p/5148251#M1193042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;p&amp;gt;Hi,&amp;lt;/p&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;p&amp;gt;To refresh Grid Control you need to use the following method.&amp;lt;/p&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;p&amp;gt;The method &amp;lt;b&amp;gt;REFRESH_TABLE_DISPLAY&amp;lt;/b&amp;gt; of &amp;lt;b&amp;gt;CL_GUI_ALV_GRID&amp;lt;/b&amp;gt; class.&amp;lt;/p&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;p&amp;gt;In your case you need to use the following statement.&amp;lt;/p&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;CALL METHOD ALV_GRID-&amp;gt;REFRESH_TABLE_DISPLAY&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;p&amp;gt;Make sure you call this method in the PBO of the screen which contains the Grid Control&amp;lt;/p&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jun 2010 11:34:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-current-cell-does-not-refresh-on-back-button/m-p/5148251#M1193042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-01T11:34:20Z</dc:date>
    </item>
  </channel>
</rss>

