<?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: Empty selection options  after report run in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/empty-selection-options-after-report-run/m-p/3869845#M930104</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;As you mentioned default values for parameters , it always displays the same values , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If at all you want to change the values every time , make use of variants , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;remove default keyword in parameter declaration , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run the report once and give p_werks = xyz&lt;/P&gt;&lt;P&gt;                                         p_qty = 1  ,  &lt;/P&gt;&lt;P&gt;and save this , it will create a variant .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks , &lt;/P&gt;&lt;P&gt;Reward if useful .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 May 2008 10:34:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-16T10:34:34Z</dc:date>
    <item>
      <title>Empty selection options  after report run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/empty-selection-options-after-report-run/m-p/3869844#M930103</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 the execution of my abap report sap returns to the selection options screen in which all the selected values from the run are still mentioned. How can i refresh the selection screen (so no values in the selection options after the report run) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the code (all parameters as you can see) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  parameters :  p_matnr   like mara-matnr default ''.&lt;/P&gt;&lt;P&gt;  parameters :  p_werks   like mard-werks default 'XYZ',  &lt;/P&gt;&lt;P&gt;                p_lgort   like mard-lgort default ''.     &lt;/P&gt;&lt;P&gt;selection-screen skip 1.&lt;/P&gt;&lt;P&gt;  parameters :  p_qty     like sy-tabix default 1.&lt;/P&gt;&lt;P&gt;selection-screen skip 1.&lt;/P&gt;&lt;P&gt;  parameters :  p_file    like RLGRAP-FILENAME memory id GXD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 10:26:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/empty-selection-options-after-report-run/m-p/3869844#M930103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T10:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Empty selection options  after report run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/empty-selection-options-after-report-run/m-p/3869845#M930104</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;As you mentioned default values for parameters , it always displays the same values , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If at all you want to change the values every time , make use of variants , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;remove default keyword in parameter declaration , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run the report once and give p_werks = xyz&lt;/P&gt;&lt;P&gt;                                         p_qty = 1  ,  &lt;/P&gt;&lt;P&gt;and save this , it will create a variant .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks , &lt;/P&gt;&lt;P&gt;Reward if useful .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 10:34:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/empty-selection-options-after-report-run/m-p/3869845#M930104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T10:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Empty selection options  after report run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/empty-selection-options-after-report-run/m-p/3869846#M930105</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;At the END-OF-SELECTION, clear all parameters and clear and refresh all select-options.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 10:44:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/empty-selection-options-after-report-run/m-p/3869846#M930105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T10:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Empty selection options  after report run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/empty-selection-options-after-report-run/m-p/3869847#M930106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tried this, didn't work. I think it is because of the sap gui that retains the material number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 10:57:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/empty-selection-options-after-report-run/m-p/3869847#M930106</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T10:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Empty selection options  after report run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/empty-selection-options-after-report-run/m-p/3869848#M930107</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 &lt;STRONG&gt;tried for select-options try for parameters&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; at selection-screen .&lt;/P&gt;&lt;P&gt;if sy-ucomm = 'ONLI'. " Only when execute is pressed&lt;/P&gt;&lt;P&gt;v_low = s_kunnr-low.&lt;/P&gt;&lt;P&gt;v_high = s_kunnr-high . " Hang on to this for select statement&lt;/P&gt;&lt;P&gt;clear s_kunnr[].&lt;/P&gt;&lt;P&gt;clear s_kunnr. " Clear the screen parameter&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;for your program&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : matnr like mara-matnr,  " variables are taken so that we can have the values for further                                     operations          &lt;/P&gt;&lt;P&gt;      werks like mard-werks,&lt;/P&gt;&lt;P&gt;       lgort like mard-lgort,&lt;/P&gt;&lt;P&gt;       qty like sy-tabix,&lt;/P&gt;&lt;P&gt;       file like RLGRAP-FILENAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;if sy-ucomm = 'ONLI'. " Only when execute is pressed&lt;/P&gt;&lt;P&gt;matnr = p_matnr.&lt;/P&gt;&lt;P&gt;clear p_matnr.&lt;/P&gt;&lt;P&gt;werks = p_werks.&lt;/P&gt;&lt;P&gt;clear p_werks.&lt;/P&gt;&lt;P&gt;lgort = p_lgort.&lt;/P&gt;&lt;P&gt;clear p_lgort.&lt;/P&gt;&lt;P&gt;qty = p_qty.&lt;/P&gt;&lt;P&gt;clear p_qty.&lt;/P&gt;&lt;P&gt;file = p_file.&lt;/P&gt;&lt;P&gt;clear p_file.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection. " write what ever code you have for the start-of-selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE "Remove the memory id for p_file otherwise it will not be cleared&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 11:05:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/empty-selection-options-after-report-run/m-p/3869848#M930107</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-05-16T11:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Empty selection options  after report run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/empty-selection-options-after-report-run/m-p/3869849#M930108</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;start the report again with SUBMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;Walter Habich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 11:10:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/empty-selection-options-after-report-run/m-p/3869849#M930108</guid>
      <dc:creator>former_member435013</dc:creator>
      <dc:date>2008-05-16T11:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Empty selection options  after report run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/empty-selection-options-after-report-run/m-p/3869850#M930109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can reset the values after on your last line after the report is done displaying.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 11:33:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/empty-selection-options-after-report-run/m-p/3869850#M930109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T11:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Empty selection options  after report run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/empty-selection-options-after-report-run/m-p/3869851#M930110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : p_matnr like mara-matnr default ''.&lt;/P&gt;&lt;P&gt;parameters : p_werks like mard-werks default 'XYZ',&lt;/P&gt;&lt;P&gt;p_lgort like mard-lgort default ''.&lt;/P&gt;&lt;P&gt;selection-screen skip 1.&lt;/P&gt;&lt;P&gt;parameters : p_qty like sy-tabix default 1.&lt;/P&gt;&lt;P&gt;selection-screen skip 1.&lt;/P&gt;&lt;P&gt;parameters : p_file like RLGRAP-FILENAME memory id GXD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;at selection-screen output.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;clear: p_matnr, p_werks, p_lgort, p_qty, p_file.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;write:/ p_matnr, p_werks, p_lgort, p_qty, p_file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 11:44:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/empty-selection-options-after-report-run/m-p/3869851#M930110</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T11:44:23Z</dc:date>
    </item>
  </channel>
</rss>

