<?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: How to clear the selection parameter values after execution in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190711#M1625210</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And of course, now I have given an example how simple it could be, my code above doesn't work, line IF sy-subrc NE 0 OR, should be replaced with IF sy-subrc EQ 0 AND&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS param1 TYPE string.
PARAMETERS param2 TYPE string.

DATA g_dummy.

AT SELECTION-SCREEN OUTPUT.
  IMPORT g_dummy FROM MEMORY ID sy-repid.
  IF sy-subrc EQ 0.
    CLEAR : param1, param2.
    FREE MEMORY ID sy-repid.
  ENDIF.

START-OF-SELECTION.
  EXPORT 'X' TO MEMORY ID sy-repid.
  WRITE / : param1, param2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sandra Rossi, 2 1/2 hours later WORKING EXAMPLE, AT LAST!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Aug 2011 04:46:27 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2011-08-24T04:46:27Z</dc:date>
    <item>
      <title>How to clear the selection parameter values after execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190698#M1625197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SAP Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I  hav 2 selection parameters in smartform. 2nd parameter is dependent on 1st using F4 help FM .I want to know tat is it possible to clear these parameter values in selection screen after returning back from execution of report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;Karthik S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2011 11:08:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190698#M1625197</guid>
      <dc:creator>ravi_a3</dc:creator>
      <dc:date>2011-08-23T11:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear the selection parameter values after execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190699#M1625198</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;After you call the generated function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write  below logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PERFORM on_back. " On click of back button

FORM on_back .
CASE sy-ucomm.
  WHEN 'SBAC'.
  CLEAR : f1 , f2 . " Here f1 and f2 are selection screen parameters.
  WHEN OTHERS.
ENDCASE.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if any issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Dep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2011 12:44:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190699#M1625198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-23T12:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear the selection parameter values after execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190700#M1625199</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 guess that you called the smart form inside the START-OF-SELECTION event block (or you didn't even indicate an event explicitly, which means it belongs to START-OF-SELECTION), there, you can't clear the selection screen input fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead, it may work for instance during the PBO of the screen, i.e. inside the &lt;STRONG&gt;AT SELECTION-SCREEN OUTPUT&lt;/STRONG&gt; event block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2011 14:04:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190700#M1625199</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-08-23T14:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear the selection parameter values after execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190701#M1625200</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;Generally Once the execution is over,  we clear all the selection parameters, ITAB etc using the END OF SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try using the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2011 14:48:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190701#M1625200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-23T14:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear the selection parameter values after execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190702#M1625201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally Once the execution is over,  we clear all the selection parameters, ITAB etc using the END OF SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In that event block, it doesn't work for selection screen input/output fields. The only right places are either PBO or PAI events (and maybe POV/POH? but it doesn't make sense here).&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2011 15:14:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190702#M1625201</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-08-23T15:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear the selection parameter values after execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190703#M1625202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We can achieve the same using the below code which i got in one blog. It may work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look into this code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS : &amp;lt;fs&amp;gt;  .&lt;/P&gt;&lt;P&gt;  ASSIGN ('(RSDBRUNT)MEMKEY-INT_MODE') TO &amp;lt;fs&amp;gt; .&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0 .&lt;/P&gt;&lt;P&gt;    &amp;lt;FS&amp;gt; = '01' .&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;or you can  AT SELECTION SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS : s_kunnr FOR kna1-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REFRESH : s_kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have executed both the code and worked for me.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2011 16:23:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190703#M1625202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-23T16:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear the selection parameter values after execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190704#M1625203</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 selection-screen data are stored in ABAP memory, so it need to clear it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now how set ID parameter can depend on SAP release, anyway in ECC 6 this should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;INITIALIZATION.
  DATA: BEGIN OF MEMKEY,
          REPORT  TYPE SY-REPID VALUE SY-REPID,
          VARIANT TYPE RSVAR-VARIANT,
          INT_MODE(2) TYPE N,
          KIND(1)     TYPE C,
        END OF MEMKEY.

  SYSTEM-CALL INTERNAL MODE INTO MEMKEY-INT_MODE.
  FREE MEMORY ID MEMKEY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in this way it'll clea whole selection-screen...do you wnat do it?&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, 23 Aug 2011 18:11:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190704#M1625203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-23T18:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear the selection parameter values after execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190705#M1625204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; The selection-screen data are stored in ABAP memory, so it need to clear it .&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Now how set ID parameter can depend on SAP release, anyway in ECC 6 this should work:&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;INITIALIZATION.
&amp;gt;   DATA: BEGIN OF MEMKEY,
&amp;gt;           REPORT  TYPE SY-REPID VALUE SY-REPID,
&amp;gt;           VARIANT TYPE RSVAR-VARIANT,
&amp;gt;           INT_MODE(2) TYPE N,
&amp;gt;           KIND(1)     TYPE C,
&amp;gt;         END OF MEMKEY.
&amp;gt; 
&amp;gt;   SYSTEM-CALL INTERNAL MODE INTO MEMKEY-INT_MODE.
&amp;gt;   FREE MEMORY ID MEMKEY.&lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; But in this way it'll clea whole selection-screen...do you wnat do it?&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Max&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Max : The above hack seem to work fine unless you assign a  'DEFAULT' value to the selection fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@OP   : Here is an other work around,  however, this approach needs an additional effort to create &lt;/P&gt;&lt;P&gt;    new PF-STATUS('MYLIST') and assign a function code of your choice to the function keys in the standard toolbar and handle them in the 'AT USER-COMMAND'   event as shown below. Let us know if you have/find any issues with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS:
  p_test TYPE char5 DEFAULT '123'.

AT USER-COMMAND.
  CASE syst-ucomm.
    WHEN 'MBACK'.
      SUBMIT zytest WITH p_test = '' VIA SELECTION-SCREEN.
  ENDCASE.

START-OF-SELECTION.
  SET PF-STATUS 'MYLIST'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2011 20:29:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190705#M1625204</guid>
      <dc:creator>rajesh_paruchuru</dc:creator>
      <dc:date>2011-08-23T20:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear the selection parameter values after execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190706#M1625205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm surprised to see all these medium or complex solutions (and the complex ones are also non-standard, by using internal "do not use" system calls).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The op just wants to clear the fields. Why do nobody simply propose to use &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLEAR param1. CLEAR param2. ...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; in the PBO/PAI? Too much simple?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2011 20:44:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190706#M1625205</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-08-23T20:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear the selection parameter values after execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190707#M1625206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you're right, but my solution is just to place the code in INITIALIZATION event: &lt;/P&gt;&lt;P&gt;here it's easier to manage it (it's called once), AT SELECTION-SCREEN OUTPUT is also called if ENTER is pressed, so it needs to insert a validation to clear the parameters only under certain circumstances.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that control is simple....but sometimes I like to try the solution seems more elegant for me....probably I've been "abaping" for too long...:)&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, 23 Aug 2011 21:05:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190707#M1625206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-23T21:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear the selection parameter values after execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190708#M1625207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm surprised to see all these medium or complex solutions (and the complex ones are also non-standard, by using internal "do not use" system calls).&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; The op just wants to clear the fields. Why do nobody simply propose to use &lt;/P&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;CLEAR param1. CLEAR param2. ...&lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; in the PBO/PAI? Too much simple?&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Sandra&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Sandra, &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;   I believe the reason behind proposing the medium/complex solutions is just to retain the values assigned &lt;/P&gt;&lt;P&gt;to the selection screen fields (either through the 'DEFAULT' addition or in the 'INITIALIZATION' event )before the selection screen is displayed when the report is executed for the very first time and on top of that( as already explained by Max) the users have to re-enter the selection screen contents everytime they hit the 'Enter' key, if the selection screen contents are cleared in PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rajesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2011 21:52:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190708#M1625207</guid>
      <dc:creator>rajesh_paruchuru</dc:creator>
      <dc:date>2011-08-23T21:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear the selection parameter values after execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190709#M1625208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max and Rajesh,&lt;/P&gt;&lt;P&gt;Okay, I was mainly mentioning in which event the CLEAR had to be placed, not the whole algorithm. That could be:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA g_time TYPE t.
AT SELECTION-SCREEN OUTPUT.
  IMPORT time TO g_time FROM MEMORY ID sy-repid. 
  IF sy-subrc NE 0 OR sy-uzeit &amp;gt;= g_time.
    CLEAR param1. CLEAR param2. etc.
  ENDIF.
START-OF-SELECTION.
  EXPORT time FROM sy-uzeit TO MEMORY ID sy-repid.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2011 23:10:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190709#M1625208</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-08-23T23:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear the selection parameter values after execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190710#M1625209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Max and Rajesh,&lt;/P&gt;&lt;P&gt;&amp;gt; Okay, I was mainly mentioning in which event the CLEAR had to be placed, not the whole algorithm. That could be:&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;
&amp;gt; DATA g_time TYPE t.
&amp;gt; AT SELECTION-SCREEN OUTPUT.
&amp;gt;   IMPORT time TO g_time FROM MEMORY ID sy-repid. 
&amp;gt;   IF sy-subrc NE 0 OR sy-uzeit &amp;gt;= g_time.
&amp;gt;     CLEAR param1. CLEAR param2. etc.
&amp;gt;   ENDIF.
&amp;gt; START-OF-SELECTION.
&amp;gt;   EXPORT time FROM sy-uzeit TO MEMORY ID sy-repid.
&amp;gt; &lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; Sandra&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;I have proposed a IMPORT/EXPORT based solution for a similar requirement in this discussion and as the OP has ignored&lt;/P&gt;&lt;P&gt;the proposal, so just thought of proposing a different solution this time, however, the IMP/EXP based approach seems to be the simple and easy solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1780217"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 01:27:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190710#M1625209</guid>
      <dc:creator>rajesh_paruchuru</dc:creator>
      <dc:date>2011-08-24T01:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear the selection parameter values after execution</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190711#M1625210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And of course, now I have given an example how simple it could be, my code above doesn't work, line IF sy-subrc NE 0 OR, should be replaced with IF sy-subrc EQ 0 AND&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS param1 TYPE string.
PARAMETERS param2 TYPE string.

DATA g_dummy.

AT SELECTION-SCREEN OUTPUT.
  IMPORT g_dummy FROM MEMORY ID sy-repid.
  IF sy-subrc EQ 0.
    CLEAR : param1, param2.
    FREE MEMORY ID sy-repid.
  ENDIF.

START-OF-SELECTION.
  EXPORT 'X' TO MEMORY ID sy-repid.
  WRITE / : param1, param2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sandra Rossi, 2 1/2 hours later WORKING EXAMPLE, AT LAST!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 04:46:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-clear-the-selection-parameter-values-after-execution/m-p/8190711#M1625210</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-08-24T04:46:27Z</dc:date>
    </item>
  </channel>
</rss>

