<?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 How to refresh the select screen when program 'Back' to the select screen? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-the-select-screen-when-program-back-to-the-select-screen/m-p/5124546#M1188260</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I have met a very strange issue.  After running a report, when user click 'Back' Button, he want the selection screen empty not what he just input. I thought it is easy, I just clear the options value in the program, but it will still display on the screen.  I found a solution as you will see below program (set &amp;lt;fs&amp;gt; = '01') , it doesn't work in SE38 run, but in Tcode run it still doesn't work. I got confused, so could you please help with it? Thank you!&lt;/P&gt;&lt;P&gt;  I just created an explame for this issue.&lt;/P&gt;&lt;P&gt;*************************************&lt;/P&gt;&lt;P&gt;  REPORT  zrc_test.&lt;/P&gt;&lt;P&gt;TABLES: mara.&lt;/P&gt;&lt;P&gt;DATA: l TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_matnr FOR mara-matnr NO INTERVALS.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_ersda FOR mara-ersda NO INTERVALS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;  CLEAR s_matnr.&lt;/P&gt;&lt;P&gt;  REFRESH s_matnr.&lt;/P&gt;&lt;P&gt;  s_ersda-option = 'EQ'.&lt;/P&gt;&lt;P&gt;  s_ersda-sign = 'I'.&lt;/P&gt;&lt;P&gt;  s_ersda-low = sy-datum.&lt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t;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jan 2009 04:08:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-23T04:08:25Z</dc:date>
    <item>
      <title>How to refresh the select screen when program 'Back' to the select screen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-the-select-screen-when-program-back-to-the-select-screen/m-p/5124546#M1188260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I have met a very strange issue.  After running a report, when user click 'Back' Button, he want the selection screen empty not what he just input. I thought it is easy, I just clear the options value in the program, but it will still display on the screen.  I found a solution as you will see below program (set &amp;lt;fs&amp;gt; = '01') , it doesn't work in SE38 run, but in Tcode run it still doesn't work. I got confused, so could you please help with it? Thank you!&lt;/P&gt;&lt;P&gt;  I just created an explame for this issue.&lt;/P&gt;&lt;P&gt;*************************************&lt;/P&gt;&lt;P&gt;  REPORT  zrc_test.&lt;/P&gt;&lt;P&gt;TABLES: mara.&lt;/P&gt;&lt;P&gt;DATA: l TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_matnr FOR mara-matnr NO INTERVALS.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_ersda FOR mara-ersda NO INTERVALS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;  CLEAR s_matnr.&lt;/P&gt;&lt;P&gt;  REFRESH s_matnr.&lt;/P&gt;&lt;P&gt;  s_ersda-option = 'EQ'.&lt;/P&gt;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;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 04:08:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-the-select-screen-when-program-back-to-the-select-screen/m-p/5124546#M1188260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-23T04:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh the select screen when program 'Back' to the select screen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-the-select-screen-when-program-back-to-the-select-screen/m-p/5124547#M1188261</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;In the END-OF-SELECTION after doing all the processing Refresh the screen Parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;END-OF-SELECTION
" After all the processing Logic
Refresh : s_matnr ,  s_ersda.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 04:11:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-the-select-screen-when-program-back-to-the-select-screen/m-p/5124547#M1188261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-23T04:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh the select screen when program 'Back' to the select screen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-the-select-screen-when-program-back-to-the-select-screen/m-p/5124548#M1188262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;CLEAR l.&lt;/P&gt;&lt;P&gt;CLEAR s_matnr.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REFRESH: s_matnr,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;s_ersda.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 04:23:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-the-select-screen-when-program-back-to-the-select-screen/m-p/5124548#M1188262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-23T04:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to refresh the select screen when program 'Back' to the select screen?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-the-select-screen-when-program-back-to-the-select-screen/m-p/5124549#M1188263</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;When you hit the Back button, the first screen is displayed where you have the Select-Options.&lt;/P&gt;&lt;P&gt;So the PBO is executed. Meaning the Initialization event is executed. &lt;/P&gt;&lt;P&gt;When I executed your code and hit the Back button the  s_matnr field was empty but the s_ersda field had the date.&lt;/P&gt;&lt;P&gt;So in Initialization you can use a flag and if condition to check if date must be displayed or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jayanthi.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 04:36:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-refresh-the-select-screen-when-program-back-to-the-select-screen/m-p/5124549#M1188263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-23T04:36:52Z</dc:date>
    </item>
  </channel>
</rss>

