<?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: Clear the selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5872008#M1323427</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming you don't want to create a routine to clear your selection screen, here is an alternative solution that will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, make sure you have a transaction code for your report.  Next, create a new GUI status and assign a custom function code to the Back button.  Now you can catch the command within the AT USER-COMMAND event.  Here, you simply issue the command LEAVE TO TRANSACTION &amp;lt;report transaction code&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because this command deletes the current internal session from the stack and creates a new one, the current program data including the selection screen input fields will be initialised.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously, this doesn't apply to any selection screen fields you are defaulting (e.g. with DEFAULT or GET/SET parameter Id) but I am assuming you would want to keep any default values, otherwise why would you set them in the first place?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jul 2009 14:32:13 GMT</pubDate>
    <dc:creator>kurt_slater3</dc:creator>
    <dc:date>2009-07-20T14:32:13Z</dc:date>
    <item>
      <title>Clear the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5871989#M1323408</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 am created a Z program with 20 fields as selection screen. after execution of the program i am getting the output. if i press F3 (Back) all the selection screen values exist. I want to clear the selection screen values once the output is generated and if i press F3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bala Subramanyam Reddy K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 11:13:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5871989#M1323408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T11:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Clear the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5871990#M1323409</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;Write code to clear your selections fields in the event at selection-screen output.&lt;/P&gt;&lt;P&gt;Sample code &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
At selection-screen output.
clear : p_matnr,
           s_ebeln.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection-screen output event is similar to the PBO in module pool programming. It will be called always before the selection screen is called. So when you click on the back button, this event is called and and all you selection fields are cleared.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 11:15:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5871990#M1323409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T11:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Clear the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5871991#M1323410</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 Event INITIALIZATION....clear all the selection screen variables....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vimal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 11:16:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5871991#M1323410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T11:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Clear the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5871992#M1323411</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;Clear all the fields in AT SELECTION-SCREEN OUTPUT event.&lt;/P&gt;&lt;P&gt;But you need to set a flag variable during this process and clear the fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like &lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;if sy-ucomm = 'ONLI'.&lt;/P&gt;&lt;P&gt;clear fields&lt;/P&gt;&lt;P&gt;endif.&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;Sarves&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 11:17:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5871992#M1323411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T11:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Clear the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5871993#M1323412</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;Write your code in the &lt;STRONG&gt;AT SELECTION-SCREEN OUTPUT.&lt;/STRONG&gt; event. Clear the selection screen variables in this event.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 11:18:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5871993#M1323412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T11:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Clear the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5871994#M1323413</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 have to clear the parameters and select options in the event&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AT SELECTION-SCREEN OUTPUT&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the sample code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  z709_test.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: name(10) type c ,&lt;/P&gt;&lt;P&gt;                        add(20) type C .&lt;/P&gt;&lt;P&gt; INITIALIZATION .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN output.&lt;/P&gt;&lt;P&gt;   clear : name ,add.&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;write: name, add.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Deepanker Dwivedi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 11:25:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5871994#M1323413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T11:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Clear the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5871995#M1323414</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 could clear all your fields in AT SELECTION-SCREEN OUTPUT event.&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;Nitin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 11:29:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5871995#M1323414</guid>
      <dc:creator>knitinkumarsethy</dc:creator>
      <dc:date>2009-07-20T11:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Clear the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5871996#M1323415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but, already some validations are going in AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whenever i press enter all the values are cleared. with out exectuing...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so my problem is.... .once the output is generated then if i press F3 then only values should be clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;balu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 11:35:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5871996#M1323415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T11:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Clear the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5871997#M1323416</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;Try this,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set a flag after execute and thn check it with back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case sy-ucomm.&lt;/P&gt;&lt;P&gt;when execute.&lt;/P&gt;&lt;P&gt;flag = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when back.&lt;/P&gt;&lt;P&gt;if flag = 'X'.&lt;/P&gt;&lt;P&gt;clear variables.&lt;/P&gt;&lt;P&gt;clear flag.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can also write the same code in AT SELECTION-SCREEN OUTPUT&lt;/P&gt;&lt;P&gt;if flag = 'X'.&lt;/P&gt;&lt;P&gt;clear variables.&lt;/P&gt;&lt;P&gt;clear flag.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this should wrk,&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 11:39:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5871997#M1323416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T11:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Clear the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5871998#M1323417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Do not do it it at selection screen output.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because: lets say u fill the values and press enter . first at-selection screen will be triggered and then at selection-screen output will be triggered which will clear the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the better method is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lets say you are getting ALV output in the next scrren. so u must have called a FM to show the ALV. after the FM call. u clear the selection screen variables.&lt;/P&gt;&lt;P&gt;like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'reuse_alv_grid_display'.
............
.......
.........
...................

" and now call a perform for clear_all.
perform sub_clear_all.
.


form sub_clear_all.
clear: p_abc, p_def, s_abc,s_def. .....
endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so when you press back the FM will exit and the next perform for clear all will be called and it will clear all the screen elements.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 11:41:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5871998#M1323417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T11:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Clear the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5871999#M1323418</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;Initilization event executes only once where program is executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN output is the correct event to clear all the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 11:46:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5871999#M1323418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T11:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Clear the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5872000#M1323419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am trying all the solutionss.. but nothing is working. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, please test from your end and give the solution.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enter the values and press enter and execute and press F3. if it is working for you then give the solutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 11:47:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5872000#M1323419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T11:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Clear the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5872001#M1323420</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 a flag for this purpose. set the flag at END-OF-SELECTION. and in the event AT SELECTION-SCREEN OUTPUT clear the screen element if the flag is set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Renjith.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Renjith Munnilath on Jul 20, 2009 1:50 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 11:47:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5872001#M1323420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T11:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Clear the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5872002#M1323421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Redy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the sy-ucomm value when ur pressing BACK button of the list. Now clear all the selection-screen parameters and select-options in  AT SELECTION_SCREEN OUTPUT EVENT only if sy-ucomm matches the sy-ucomm of F3. else go ahead with your validations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shafivullah Mohammad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 11:51:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5872002#M1323421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T11:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Clear the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5872003#M1323422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; Hello,&lt;/P&gt;&lt;P&gt;&amp;gt; Initilization event executes only once where program is executed.&lt;/P&gt;&lt;P&gt;&amp;gt; AT SELECTION-SCREEN output is the correct event to clear all the values.&lt;/P&gt;&lt;P&gt;quote}&lt;/P&gt;&lt;P&gt;@Anand:&lt;/P&gt;&lt;P&gt;please write your code in at selection screen output and press enter and then see the output . and what is link of initialization with at-selection-screen output?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@reddy:&lt;/P&gt;&lt;P&gt;i have tried this and telling you the solution. go with it and let me know what problem you are facing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by the way what is your next screen of the selection screen? are you calling a screen or are you using some FM only to display ALV or what?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 11:57:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5872003#M1323422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T11:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Clear the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5872004#M1323423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PARAMETERS : P_MATNR TYPE MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;  CLEAR : P_MATNR.&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;WRITE : P_MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try with this program and give me solution if it is working for anybody.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enter the material value and press enter and press execute and press F3. here the value should be clear in the selection screen when i press F3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 12:03:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5872004#M1323423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T12:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Clear the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5872005#M1323424</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;Put these line of code at the end of your report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FIELD-SYMBOLS : &amp;lt;fs&amp;gt;  .  
ASSIGN ('(RSDBRUNT)MEMKEY-INT_MODE') TO &amp;lt;fs&amp;gt; .  
IF sy-subrc = 0 .
    &amp;lt;FS&amp;gt; = '01' .
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;remember these should be the last line to be executed in report . for example if you have ALV report the put this after the FM call..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS : p_matnr TYPE matnr.

START-OF-SELECTION.

  WRITE : p_matnr.

  FIELD-SYMBOLS : &amp;lt;fs&amp;gt;  .
  ASSIGN ('(RSDBRUNT)MEMKEY-INT_MODE') TO &amp;lt;fs&amp;gt; .
  IF sy-subrc = 0 .
    &amp;lt;fs&amp;gt; = '01' .
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 12:11:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5872005#M1323424</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2009-07-20T12:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Clear the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5872006#M1323425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; PARAMETERS : P_MATNR TYPE MATNR.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&amp;gt;   CLEAR : P_MATNR.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; WRITE : P_MATNR.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; try with this program and give me solution if it is working for anybody.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; enter the material value and press enter and press execute and press F3. here the value should be clear in the selection screen when i press F3.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will NOT solve your problem as i am 100% sure that your p_matnr will be cleared before you press execute.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 12:17:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5872006#M1323425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T12:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Clear the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5872007#M1323426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bala ,&lt;/P&gt;&lt;P&gt;You must Use Selection-Screen Output Event to clear the Parameters you want to free when you return back to your selection screen.&lt;/P&gt;&lt;P&gt;Apart from this You must also Specify  the event  End-Of-Selction in your Program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this doesnot work ,&lt;/P&gt;&lt;P&gt;Check if you have assigned any Memory ID to your Selction Screen Parameter ,&lt;/P&gt;&lt;P&gt;In that case free the Memory Id ,at the AT SELECTION-SCREEN OUTPUT event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another simple solution is to set the Default values for each of the parametres and select options as space.&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;Rajesh Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 12:23:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5872007#M1323426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T12:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Clear the selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5872008#M1323427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming you don't want to create a routine to clear your selection screen, here is an alternative solution that will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, make sure you have a transaction code for your report.  Next, create a new GUI status and assign a custom function code to the Back button.  Now you can catch the command within the AT USER-COMMAND event.  Here, you simply issue the command LEAVE TO TRANSACTION &amp;lt;report transaction code&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because this command deletes the current internal session from the stack and creates a new one, the current program data including the selection screen input fields will be initialised.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously, this doesn't apply to any selection screen fields you are defaulting (e.g. with DEFAULT or GET/SET parameter Id) but I am assuming you would want to keep any default values, otherwise why would you set them in the first place?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 14:32:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-the-selection-screen/m-p/5872008#M1323427</guid>
      <dc:creator>kurt_slater3</dc:creator>
      <dc:date>2009-07-20T14:32:13Z</dc:date>
    </item>
  </channel>
</rss>

