<?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 Refresh SALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-salv/m-p/3489326#M838985</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 build a report to show with SALV some lines with information about PP-orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user use the Refresh-Button he see newest status of all orders. But now they want a automatically refresh. Every 30 minutes it should happens a refresh without any manual handling. I have no idea in which way I should realize this function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone an idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Mar 2008 15:17:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-08T15:17:46Z</dc:date>
    <item>
      <title>Refresh SALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-salv/m-p/3489326#M838985</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 build a report to show with SALV some lines with information about PP-orders.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user use the Refresh-Button he see newest status of all orders. But now they want a automatically refresh. Every 30 minutes it should happens a refresh without any manual handling. I have no idea in which way I should realize this function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone an idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Mar 2008 15:17:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-salv/m-p/3489326#M838985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-08T15:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh SALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-salv/m-p/3489327#M838986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might like to check out the ABAP "cl_gui_timer" class to do this e.g. see&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="124247"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, below is a sample program I posted a while ago which might help you too with the "old" way of doing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report zlocal_auto_refresh no standard page heading.

data:
  begin of gs_step,
    uzeit        like sy-uzeit,
    step         like sy-tabix,
    start_end(10) type c,
  end of gs_step,
  gt_step        like gs_step occurs 10,
  g_step_number  like sy-tabix.

*=======================================================================

Events 
*=======================================================================
at user-command.
  perform user_command.

*=======================================================================

Mainline 
*=======================================================================
start-of-selection.
  perform start_of_report.

end-of-selection.

&amp;amp;---------------------------------------------------------------------
*&amp;amp; Form start_of_report
&amp;amp;---------------------------------------------------------------------
form start_of_report.

  set pf-status '1000LIST'. "contains ZREFRESH ucomm

  perform run_a_step.

endform. "start_of_report

&amp;amp;---------------------------------------------------------------------
*&amp;amp; Form run_a_step
&amp;amp;---------------------------------------------------------------------
form run_a_step.

*" Demo with something that takes some time, like sleeping... 

  data:
    ls_step like gs_step.

  add 1 to g_step_number.
  if g_step_number &amp;gt; 9.
    stop.
  endif.

  get time.
  clear: ls_step.
  ls_step-step = g_step_number.
  ls_step-uzeit = sy-uzeit.
  ls_step-start_end = 'Starting'.
  append ls_step to gt_step.

* generate a delay for demo 
  call function 'ENQUE_SLEEP'
    exporting
      seconds = 1
    exceptions
      others = 0.

  get time.
  clear: ls_step.
  ls_step-step = g_step_number.
  ls_step-uzeit = sy-uzeit.
  ls_step-start_end = 'Ended'.
  append ls_step to gt_step.

  format reset.
  format color col_normal.
  loop at gt_step into ls_step.
    write: /
     ls_step-uzeit,
     ls_step-start_end,
     ls_step-step,
     at sy-linsz space.
  endloop.
  uline.

  call function 'RFC_PING'
    starting new task 'NEWTASK'
    performing when_back on end of task.

endform. "run_a_step

&amp;amp;---------------------------------------------------------------------
*&amp;amp; Form when_back
&amp;amp;---------------------------------------------------------------------
form when_back
  using
    i_taskname type any.

  receive results from function 'RFC_PING'.

  set user-command 'ZREFRESH'. "act like user pressed something

endform. "when_back

&amp;amp;---------------------------------------------------------------------
*&amp;amp; Form user_command
&amp;amp;---------------------------------------------------------------------
form user_command.
  case sy-ucomm.
    when 'ZREFRESH'.
      perform run_a_step.
      sy-lsind = sy-lsind - 1.
  endcase.
endform. "user_command[/code]

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Mar 2008 22:11:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-salv/m-p/3489327#M838986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-08T22:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh SALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-salv/m-p/3489328#M838987</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;Use CL_GUI_TIMER class.it will solve your requierment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L.Velu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 05:45:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-salv/m-p/3489328#M838987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T05:45:29Z</dc:date>
    </item>
  </channel>
</rss>

