<?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 refresh after saving in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh-after-saving/m-p/3668987#M883744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, i managed to solve the problem.&lt;/P&gt;&lt;P&gt;I added the line that you said, butt it was missing some other stuff...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the scheme i did was the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
data:ref    TYPE REF TO cl_gui_alv_grid.
...
when '&amp;amp;data_save':

CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
        IMPORTING
          e_grid = ref.

CALL METHOD ref1-&amp;gt;check_changed_data.

ls_selfield-value = ' '.
ls_selfield-refresh =  'X'.
ls_selfield-col_stable = '3'.
ls_selfield-row_stable = '1'.

loop at itab.
....
endloop.

perform data_retrieval.
CALL METHOD ref1-&amp;gt;refresh_table_display.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Apr 2008 16:44:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-09T16:44:10Z</dc:date>
    <item>
      <title>ALV refresh after saving</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh-after-saving/m-p/3668984#M883741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I thought with the previous post's about ALV refreshing i could do it myself...it seems i have some isues that i don't understand why it doesn't work!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my ALV as some editable fields, when i make changes in this fields and then click the save button it saves me the changes to a Z table. On every load of the ALV there are some fields that are filled with &lt;STRONG&gt;&lt;EM&gt;data from de Z table x data from standard table&lt;/EM&gt;&lt;/STRONG&gt;. When i save i want this to appen without having to go the previous screen and then go to the next screen.&lt;/P&gt;&lt;P&gt;In the statement &lt;STRONG&gt;&lt;EM&gt;When '&amp;amp;DATA_SAVED'&lt;/EM&gt;&lt;/STRONG&gt; i have some code that saves my data do the Z table. Iv'e tryed to call the method &lt;STRONG&gt;&lt;EM&gt;refresh_table_display&lt;/EM&gt;&lt;/STRONG&gt; and &lt;STRONG&gt;&lt;EM&gt;check_changed_data&lt;/EM&gt;&lt;/STRONG&gt; at the begining of the &lt;U&gt;Where&lt;/U&gt; statement and after the last line of code in this statement, after the insert in the Z table, and it didn't worked...&lt;/P&gt;&lt;P&gt;So...any help would be nice!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cumps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; RT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 12:07:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh-after-saving/m-p/3668984#M883741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T12:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: ALV refresh after saving</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh-after-saving/m-p/3668985#M883742</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;After the code you have written in &amp;amp;data_save&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selfield-refresh = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Talwinder&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 9, 2008 5:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 12:20:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh-after-saving/m-p/3668985#M883742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T12:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: ALV refresh after saving</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh-after-saving/m-p/3668986#M883743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, and where do i call the method? At the end of the code of &amp;amp;data_save?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 14:28:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh-after-saving/m-p/3668986#M883743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T14:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: ALV refresh after saving</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh-after-saving/m-p/3668987#M883744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, i managed to solve the problem.&lt;/P&gt;&lt;P&gt;I added the line that you said, butt it was missing some other stuff...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the scheme i did was the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
data:ref    TYPE REF TO cl_gui_alv_grid.
...
when '&amp;amp;data_save':

CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
        IMPORTING
          e_grid = ref.

CALL METHOD ref1-&amp;gt;check_changed_data.

ls_selfield-value = ' '.
ls_selfield-refresh =  'X'.
ls_selfield-col_stable = '3'.
ls_selfield-row_stable = '1'.

loop at itab.
....
endloop.

perform data_retrieval.
CALL METHOD ref1-&amp;gt;refresh_table_display.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 16:44:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-refresh-after-saving/m-p/3668987#M883744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T16:44:10Z</dc:date>
    </item>
  </channel>
</rss>

