<?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: Question on refresh button in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-refresh-button/m-p/1067682#M93829</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a small subroutine, which we use to refresh the current report:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
form refresh_this_report.
data:
  seltab like rsparams occurs 0.
* ---   Get Parameters    ---
  call function  'RS_REFRESH_FROM_SELECTOPTIONS'
       exporting  curr_report     = sy-cprog
       tables     selection_table = seltab
       exceptions others = 1.
  check sy-subrc = 0.
* ---  Call program again   ---
  submit (sy-cprog)
    with selection-table seltab.
endform.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Is also used with ALV-ABAPs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Rabanus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Nov 2005 08:13:41 GMT</pubDate>
    <dc:creator>former_member517</dc:creator>
    <dc:date>2005-11-03T08:13:41Z</dc:date>
    <item>
      <title>Question on refresh button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-refresh-button/m-p/1067676#M93823</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
  &lt;P&gt;I have refresh button on application tool bar of the report output. The report has to be refreshed ( re-executed) once the refresh button is clicked. Just like refresh button on MD04. Can somebody please help me how do i acieve it. Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2005 23:26:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-refresh-button/m-p/1067676#M93823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-01T23:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Question on refresh button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-refresh-button/m-p/1067677#M93824</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 don't know how you report works, but generally when it manages a refresh function the program should be start again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example, it need to show an list:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; PERFORM SHOW_LIST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT USER-COMMAND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;    WHEN 'REFR'. PERFORM SHOW_LIST.&lt;/P&gt;&lt;P&gt;  ENCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM SHOW_LIST.&lt;/P&gt;&lt;P&gt;  SELECT * FROM TABLE INTO TABLE ITAB WHERE ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;   WRITE: / ITAB.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same logic is good for table control too, it's import to clear the internal table and re-load the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Nov 2005 23:38:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-refresh-button/m-p/1067677#M93824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-01T23:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Question on refresh button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-refresh-button/m-p/1067678#M93825</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;You can do it another way also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once clicked on report&lt;/P&gt;&lt;P&gt;submit Report with same parameters/select-options&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2005 06:55:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-refresh-button/m-p/1067678#M93825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-02T06:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Question on refresh button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-refresh-button/m-p/1067679#M93826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Max/ Ramesh for you help.&lt;/P&gt;&lt;P&gt;ramesh..&lt;/P&gt;&lt;P&gt;Can you explain me how can I achieve this using submit statement? I tried but I could only manage to display the selection screen. But I want the report to be executed again once the refresh button is clicked. Please send me sample code if you have one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max...&lt;/P&gt;&lt;P&gt;this is an ALV report and as per your suggestion, at the user command i wrote all the performs to get and display the data. it is working fine. but i was just wondering if I can do this using SUBMIT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody else have any other ideas???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2005 13:45:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-refresh-button/m-p/1067679#M93826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-02T13:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Question on refresh button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-refresh-button/m-p/1067680#M93827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First,  I would add one line of code to the example above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

START-OF-SELECTION.

PERFORM SHOW_LIST.

AT USER-COMMAND.

CASE SY-UCOMM.
WHEN 'REFR'. PERFORM SHOW_LIST.
ENCASE.

FORM SHOW_LIST.

&amp;lt;b&amp;gt;sy-lsind = sy-lsind - 1.&amp;lt;/b&amp;gt;

SELECT * FROM TABLE INTO TABLE ITAB WHERE ....

LOOP AT ITAB.
WRITE: / ITAB.
ENDLOOP.
ENDFORM.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will keep your program from dumping after refreshing 20 or so times.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you would like to use the SUBMIT,  then all of your report logic as well as the refresh logic will need to be in the sumbmitted program.  This doesn't really make sense to me.  If you are doing all that, then just have one program, like the above example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2005 14:13:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-refresh-button/m-p/1067680#M93827</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-11-02T14:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Question on refresh button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-refresh-button/m-p/1067681#M93828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have try this function module 'RS_REFRESH_FROM_SELECTOPTIONS'. Call this function module when you click on the button. It will automatically fetches the data. It will give you what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2005 01:50:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-refresh-button/m-p/1067681#M93828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-03T01:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Question on refresh button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-refresh-button/m-p/1067682#M93829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a small subroutine, which we use to refresh the current report:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
form refresh_this_report.
data:
  seltab like rsparams occurs 0.
* ---   Get Parameters    ---
  call function  'RS_REFRESH_FROM_SELECTOPTIONS'
       exporting  curr_report     = sy-cprog
       tables     selection_table = seltab
       exceptions others = 1.
  check sy-subrc = 0.
* ---  Call program again   ---
  submit (sy-cprog)
    with selection-table seltab.
endform.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Is also used with ALV-ABAPs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Rabanus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2005 08:13:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-refresh-button/m-p/1067682#M93829</guid>
      <dc:creator>former_member517</dc:creator>
      <dc:date>2005-11-03T08:13:41Z</dc:date>
    </item>
  </channel>
</rss>

