<?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: Enable Refresh Button/Menu in the Generated Report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/enable-refresh-button-menu-in-the-generated-report/m-p/5540468#M1265406</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;how r u generating the report is it slis or grid display.if ur using REUSE_ALV_LIST_DISPLAY,then in the event set pf ststaus,in the pf status u created u can give the standard code for the buttons.If it is grid u can use refresh table ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Apr 2009 06:54:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-15T06:54:43Z</dc:date>
    <item>
      <title>Enable Refresh Button/Menu in the Generated Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enable-refresh-button-menu-in-the-generated-report/m-p/5540465#M1265403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a program that generates report based on the user defined parameters.&lt;/P&gt;&lt;P&gt;My question is, how do I enable the Refresh button/menu in the generated report so that user&lt;/P&gt;&lt;P&gt;won't have to back to the parameter screen and re-execute?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 06:48:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enable-refresh-button-menu-in-the-generated-report/m-p/5540465#M1265403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T06:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Enable Refresh Button/Menu in the Generated Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enable-refresh-button-menu-in-the-generated-report/m-p/5540466#M1265404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kathy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the GUI Status you can enable the refresh button,&lt;/P&gt;&lt;P&gt;but you have to do manually that your grid shoud refresh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if sy-ucomm = 'REFRESH',
,," all your select queries run as per requirement to show in the in the grid.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 06:53:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enable-refresh-button-menu-in-the-generated-report/m-p/5540466#M1265404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T06:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Enable Refresh Button/Menu in the Generated Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enable-refresh-button-menu-in-the-generated-report/m-p/5540467#M1265405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Kathy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you mentioned that your report generates o/p based on selection parameters entered by the user.&lt;/P&gt;&lt;P&gt;So if you add refresh button as well the program needs new i/p to generate the reprot again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Sandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 06:54:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enable-refresh-button-menu-in-the-generated-report/m-p/5540467#M1265405</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2009-04-15T06:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Enable Refresh Button/Menu in the Generated Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enable-refresh-button-menu-in-the-generated-report/m-p/5540468#M1265406</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;how r u generating the report is it slis or grid display.if ur using REUSE_ALV_LIST_DISPLAY,then in the event set pf ststaus,in the pf status u created u can give the standard code for the buttons.If it is grid u can use refresh table ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 06:54:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enable-refresh-button-menu-in-the-generated-report/m-p/5540468#M1265406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T06:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Enable Refresh Button/Menu in the Generated Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enable-refresh-button-menu-in-the-generated-report/m-p/5540469#M1265407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can enable the REFRESH PUSH BUTTON using the "PF-STATUS" screen (TCODE : SE41). Below code can re-execute the report once more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              WHEN 'REFRESH'.&lt;/P&gt;&lt;P&gt;                      :----&lt;DEL&gt;&amp;gt; Call the section of the report that fetches data and prints it &amp;lt;&lt;/DEL&gt;----:&lt;/P&gt;&lt;P&gt;               WHEN 'BACK'.&lt;/P&gt;&lt;P&gt;                      :----&lt;DEL&gt;&amp;gt; LEAVE TO SCREEN 0. (that means go back to main screen &amp;lt;&lt;/DEL&gt;----:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 06:57:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enable-refresh-button-menu-in-the-generated-report/m-p/5540469#M1265407</guid>
      <dc:creator>former_member219162</dc:creator>
      <dc:date>2009-04-15T06:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Enable Refresh Button/Menu in the Generated Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enable-refresh-button-menu-in-the-generated-report/m-p/5540470#M1265408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add a button(say Refresh ) in the application toolbar of the GUI Status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the user clicks on REFRESH button, execute the report for the same set of input parameters which the user has entered while executing the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When 'REFRESH'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit &amp;lt;report&amp;gt; skipping the selection screen.  ( not sure of the syntax, check it out).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gowri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 06:59:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enable-refresh-button-menu-in-the-generated-report/m-p/5540470#M1265408</guid>
      <dc:creator>former_member873340</dc:creator>
      <dc:date>2009-04-15T06:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Enable Refresh Button/Menu in the Generated Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enable-refresh-button-menu-in-the-generated-report/m-p/5540471#M1265409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How is the output shown on the screen ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Write statements it won't be possible, but with an ALV it is. You need to add a button to the application toolbar, usually it is present in the standard PF-STATUS, but if not then simply add one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when you capture the user command in the subroutine for handling user commands which looks like this, &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM user_command USING r_ucomm LIKE sy-ucomm
                        rs_selfield TYPE slis_selfield.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Follow these steps &lt;/P&gt;&lt;P&gt;1. Refresh the output table that you have passed to the ALV.&lt;/P&gt;&lt;P&gt;2. Fetch all the data again and populate the output table.&lt;/P&gt;&lt;P&gt;3. Set the rs_selfield-refresh = 'X'. , this structure is passed to the user_command subroutine as shown above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 07:04:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enable-refresh-button-menu-in-the-generated-report/m-p/5540471#M1265409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T07:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Enable Refresh Button/Menu in the Generated Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enable-refresh-button-menu-in-the-generated-report/m-p/5540472#M1265410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i'm not using the alv, i just used the basic write syntax. thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 07:10:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enable-refresh-button-menu-in-the-generated-report/m-p/5540472#M1265410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T07:10:17Z</dc:date>
    </item>
  </channel>
</rss>

