<?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 Parameters in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters/m-p/3835032#M922194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recently did the same and it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you placed the code in at selection-screen?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 May 2008 21:41:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-15T21:41:31Z</dc:date>
    <item>
      <title>Clear Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters/m-p/3835031#M922193</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 want to clear the parameters after I process something and then go back. After all&lt;/P&gt;&lt;P&gt;the process I have tried something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLEAR P_VAR.
P_VAR = ''.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But doesn't work, it still have the previous value. Someone knows how can I solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac Melendez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 21:38:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters/m-p/3835031#M922193</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T21:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters/m-p/3835032#M922194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recently did the same and it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you placed the code in at selection-screen?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 21:41:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters/m-p/3835032#M922194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T21:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters/m-p/3835033#M922195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is P_VAR a parameter on the selection screen? can you show us how you declared it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 21:41:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters/m-p/3835033#M922195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T21:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters/m-p/3835034#M922196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Isaac,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using debugging you can find exactly where the data is append into your parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the declaration of the field. It may contain any default values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best solution for youe query is Debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 21:52:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters/m-p/3835034#M922196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T21:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters/m-p/3835035#M922197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, debugging should show you why it's not clearing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even with a default value in the parameter declaration, you should be able to easily clear it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_var like rlgrap-filename DEFAULT 'c:\test'.&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;&lt;/P&gt;&lt;P&gt;WRITE: /5 p_var.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR p_var.{/code}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 22:00:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters/m-p/3835035#M922197</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T22:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters/m-p/3835036#M922198</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 solve my problem, thanks to you guys. The problem was that I put the code&lt;/P&gt;&lt;P&gt;in the START-OF-SELECTION, not in AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac Melendez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 22:01:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters/m-p/3835036#M922198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T22:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters/m-p/3835037#M922199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem when clearing the parameters. I clear them in AT SELECTION-SCREEN, but they are clear when I press Execute button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I clear them just when I go back, not in the Execute button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac Melendez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 14:19:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters/m-p/3835037#M922199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T14:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters/m-p/3835038#M922200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;can you give me the part of code, Under At selection-screen, where you are using CLEAR statement.&lt;/P&gt;&lt;P&gt;In my program...its working properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give me the code...will go thru that.&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;Sandeep reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 14:33:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters/m-p/3835038#M922200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T14:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters/m-p/3835039#M922201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: LV_MES(2) TYPE C.

PARAMETERS: P_MES(2) TYPE c OBLIGATORY.

AT SELECTION-SCREEN.
  CLEAR: P_MES.

START-OF-SELECTION.

* Here is empty P_MES when I execute
  LV_MES = P_MES.

END-OF-SELECTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac Melendez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 14:45:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters/m-p/3835039#M922201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T14:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters/m-p/3835040#M922202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Issac is working ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do you want it to clear when you go back?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible, but you will exit the report, so I don't get why you would want that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 14:50:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters/m-p/3835040#M922202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T14:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters/m-p/3835041#M922203</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;DATA: LV_MES(2) TYPE C.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;PARAMETERS: P_MES(2) TYPE c OBLIGATORY.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;  CLEAR: P_MES.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Here is empty P_MES when I execute&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LV_MES = P_MES.&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;You are writing CLEAR , immediately aftr AT SELECTION-SCREEN..&lt;/P&gt;&lt;P&gt;SO, when you press execute...this event will get trigerd. And the Parameter will get cleared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, at wat stage you want to clear the parameetr , tell me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I modified your code like this....jus chk.&lt;/P&gt;&lt;P&gt;In case ur requirement is not fullfilled...please revert back.&lt;/P&gt;&lt;P&gt;If it solves ur problem, dont forget to reward points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA: LV_MES(2) TYPE C.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PARAMETERS: P_MES(2) TYPE c OBLIGATORY.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AT SELECTION-SCREEN.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;LV_MES = P_MES.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;CLEAR: P_MES.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;write : lv_mes.&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sandeep reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 14:56:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters/m-p/3835041#M922203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T14:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters/m-p/3835042#M922204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramiro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It isn't working like I want. The process is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- I fill the parameters values.&lt;/P&gt;&lt;P&gt;- I execute the program.&lt;/P&gt;&lt;P&gt;- Then it show me a report.&lt;/P&gt;&lt;P&gt;- Then I go back to the parameters screen (and I want to clear the parameters here).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that if I Clear the parameters in AT SELECTION-SCREEN, then the&lt;/P&gt;&lt;P&gt;parameters are cleared when I press execute button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- I fill the parameters values.&lt;/P&gt;&lt;P&gt;- I execute the program. (before, the parameters are cleared, and I can't process them)&lt;/P&gt;&lt;P&gt;- Then it show me a report.&lt;/P&gt;&lt;P&gt;- Then I go back to the parameters screen (and I want to clear the parameters here).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac Melendez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 14:57:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters/m-p/3835042#M922204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T14:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters/m-p/3835043#M922205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That works, thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac Melendez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 15:15:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters/m-p/3835043#M922205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T15:15:54Z</dc:date>
    </item>
  </channel>
</rss>

