<?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: Automatic ALV refresh and display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-alv-refresh-and-display/m-p/3822087#M919220</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please give me a sample code or a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2008 09:07:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-14T09:07:25Z</dc:date>
    <item>
      <title>Automatic ALV refresh and display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-alv-refresh-and-display/m-p/3822081#M919214</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;Im creating a ALV automatic refresh report. I have set the timer for every 10 seconds. I have set the breakpoint in the Select statement up to 5 rows and find initially , the internal table contains items 0 ,1,2,3,4 and after 10 seconds(setting the timer for 10 seconds) , itab contains items 5,6,7,8,9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im trying to display this is ALV. The initial ALV with items 0,1,2,3,4 is found wherease even after 10 secons the values in the ALV are not changing to 5,6,7,8,9. They remain in the initial state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me how to chnage the data in the ALV grid after refresh is happening without any USERCOMMANDS ( ie , data changed in the ALV grid every 10 seconds without any user interaction)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 09:13:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-alv-refresh-and-display/m-p/3822081#M919214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T09:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic ALV refresh and display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-alv-refresh-and-display/m-p/3822082#M919215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If possible post your code here so we can see what is the problem in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 09:39:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-alv-refresh-and-display/m-p/3822082#M919215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T09:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic ALV refresh and display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-alv-refresh-and-display/m-p/3822083#M919216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refresh itab after the output after the FM is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;~Srini....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 10:14:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-alv-refresh-and-display/m-p/3822083#M919216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T10:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic ALV refresh and display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-alv-refresh-and-display/m-p/3822084#M919217</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;Please refer the code below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

* Automatic refresh report
*.......................................................................
*: Report:  ZAUTO_REFRESH                                              :
*:                                                                     :
*: Description: Display a report which automatically updates itself    :
*:              every 10 seconds                                       :
*:                                                                     :
*:.....................................................................:
REPORT zauto_refresh .
DATA: g_init_once,
      ok_code(20),
      g_ref_from_timer.

TYPES: BEGIN OF t_ekko,
  ebeln TYPE ekpo-ebeln,
  ebelp TYPE ekpo-ebelp,
  statu TYPE ekpo-statu,
  aedat TYPE ekpo-aedat,
  matnr TYPE ekpo-matnr,
  menge TYPE ekpo-menge,
  meins TYPE ekpo-meins,
  netpr TYPE ekpo-netpr,
  peinh TYPE ekpo-peinh,
 END OF t_ekko.

DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
      wa_ekko TYPE t_ekko.


IF g_init_once &amp;lt;&amp;gt; 'X'.
  g_init_once = 'X'.
  CALL FUNCTION 'Z_ENQUE_SLEEP'
     STARTING NEW TASK 'WAIT'
     PERFORMING when_finished ON END OF TASK.

ENDIF.

WRITE:/ 'wait for 10 sec....'.

AT USER-COMMAND.
  CASE ok_code.
    WHEN 'FCT_R'.
      SELECT ebeln ebelp statu aedat matnr menge meins netpr peinh
       UP TO 10 ROWS
        FROM ekpo
        INTO TABLE it_ekko.
      WRITE:/ sy-uzeit. "Time
      LOOP AT it_ekko INTO wa_ekko.
        WRITE:/ wa_ekko-ebeln, wa_ekko-ebelp.
      ENDLOOP.
      sy-lsind = 0.
      IF g_ref_from_timer = 'X'.

        CALL FUNCTION 'Z_ENQUE_SLEEP'
          STARTING NEW TASK 'INFO'
          PERFORMING when_finished ON END OF TASK.

        g_ref_from_timer = ''.
      ENDIF.
  ENDCASE.


*---------------------------------------------------------------------*
*       FORM WHEN_FINISHED                                            *
*---------------------------------------------------------------------*
*       ........                                                      *
*---------------------------------------------------------------------*
*  --&amp;gt;  TASKNAME                                                      *
*---------------------------------------------------------------------*
FORM when_finished USING taskname.
  RECEIVE RESULTS FROM FUNCTION 'Z_ENQUE_SLEEP'.

  g_ref_from_timer = 'X'.

* Trigger an event to run the at user-command
  SET USER-COMMAND 'FCT_R'.
  ok_code = 'FCT_R'.
  sy-ucomm = 'FCT_R'.

ENDFORM.                    " WHEN_FINISHED


*Signiture for creating Function module used above
FUNCTION Z_ENQUE_SLEEP.
*"----------------------------------------------------------------------
*"*"Local interface:
*"----------------------------------------------------------------------
 wait up to 10 seconds.

ENDFUNCTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 10:19:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-alv-refresh-and-display/m-p/3822084#M919217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T10:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic ALV refresh and display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-alv-refresh-and-display/m-p/3822085#M919218</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 following method call is used to refresh the data displayed within an ALV object grid:&lt;/P&gt;&lt;P&gt;CALL method gd_tree-&amp;gt;REFRESH_TABLE_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD gd_tree-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      is_layout       = gd_layout&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      it_fieldcatalog = gd_fieldcat&lt;/P&gt;&lt;P&gt;      it_sort         = it_sortcat&lt;/P&gt;&lt;P&gt;      it_outtab       = it_report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL method gd_tree-&amp;gt;REFRESH_TABLE_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL METHOD cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 10:26:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-alv-refresh-and-display/m-p/3822085#M919218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T10:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic ALV refresh and display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-alv-refresh-and-display/m-p/3822086#M919219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the problem still persists. the ALV gets refreshed and timer works properly still change in the display of data in the ALV grid does not happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just need the contents of the ALV to change when refreshed which is not happening . I can find this happening only when i set a break point and not on the output screen . Kindly help me to solve this. Any samples&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 08:24:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-alv-refresh-and-display/m-p/3822086#M919219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T08:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic ALV refresh and display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-alv-refresh-and-display/m-p/3822087#M919220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please give me a sample code or a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 09:07:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-alv-refresh-and-display/m-p/3822087#M919220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T09:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic ALV refresh and display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-alv-refresh-and-display/m-p/3822088#M919221</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;Refer to the following link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://erpgenie.com/abaptips/content/view/529/61/" target="test_blank"&gt;http://erpgenie.com/abaptips/content/view/529/61/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sipra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 09:21:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-alv-refresh-and-display/m-p/3822088#M919221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T09:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic ALV refresh and display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-alv-refresh-and-display/m-p/3822089#M919222</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;here some link try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap-function.htm" target="test_blank"&gt;http://www.sap-img.com/abap-function.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.saptechnical.com/Tutorials/ALV/ALVMainPage.htm" target="test_blank"&gt;http://www.saptechnical.com/Tutorials/ALV/ALVMainPage.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers &lt;/P&gt;&lt;P&gt;snehi chouhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 09:25:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/automatic-alv-refresh-and-display/m-p/3822089#M919222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T09:25:56Z</dc:date>
    </item>
  </channel>
</rss>

