<?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 field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770056#M645402</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;see this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS:name(10),num(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ name.&lt;/P&gt;&lt;P&gt;write:/ num.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;clear name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Aug 2007 13:17:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-31T13:17:02Z</dc:date>
    <item>
      <title>Clear PARAMETERS field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770044#M645390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. I have a small question. I have a PARAMETERS on my SELECTION-SCREEN. I'd like to set them emty when program ends and backs to SELECTION-SCREEN. How to do this? Greetings. P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 12:24:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770044#M645390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-31T12:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Clear PARAMETERS field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770045#M645391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try clearing it at the end of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR p_xyz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Provided there no memory id is attached to the parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Do Reward If Useful Answer&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vishwanath Purohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 12:27:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770045#M645391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-31T12:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Clear PARAMETERS field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770046#M645392</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;&lt;/P&gt;&lt;P&gt;End-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear p_param.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rewards if useful,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;nazeer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 12:27:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770046#M645392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-31T12:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Clear PARAMETERS field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770047#M645393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;        u can use clear &amp;lt;fieldname&amp;gt;  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt; ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 12:28:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770047#M645393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-31T12:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Clear PARAMETERS field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770048#M645394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;at end of program use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_field = ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reward points if it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 12:28:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770048#M645394</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2007-08-31T12:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Clear PARAMETERS field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770049#M645395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try but there's no effect. Maybe it's connected with my program structure below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT zgr_package .
TABLES: zpackage.

DATA: adrnr TYPE adrnr.
DATA: internalname TYPE rs38l_fnam.
DATA: control_parameters  TYPE ssfctrlop.
INCLUDE &amp;lt;ICON&amp;gt;.

SELECTION-SCREEN begin of block b1 with frame.
  PARAMETERS werks LIKE zpackage-werks OBLIGATORY.
  PARAMETERS datum LIKE zpackage-datum  OBLIGATORY.
  PARAMETERS vendor LIKE zpackage-vendor  OBLIGATORY.
  PARAMETERS pack LIKE zpackage-pack  OBLIGATORY.
  PARAMETERS note LIKE zpackage-note.
SELECTION-SCREEN END OF BLOCK b1 .
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
  SELECTION-SCREEN COMMENT 01(20) v_icon FOR FIELD print.
  PARAMETERS: print as checkbox.
SELECTION-SCREEN END OF BLOCK b2.


INITIALIZATION.
  GET PARAMETER ID 'WRK' FIELD werks.
  datum = sy-datum.
  v_icon = '@2P@'. "icon_test.


START-OF-SELECTION.

  AUTHORITY-CHECK OBJECT 'M_BEST_WRK' ID 'WERKS' FIELD werks.
  IF sy-subrc NE 0.
    MESSAGE e398(00) WITH text-001.
  ELSE.
    SELECT SINGLE * FROM zpackage WHERE
    werks = werks AND pack = pack.
    IF sy-subrc = 0.
      MESSAGE i398(00) WITH text-002.
    ELSE.
      zpackage-werks = werks.
      zpackage-datum = datum.
      zpackage-vendor = vendor.
      zpackage-pack = pack.
      zpackage-uname = sy-uname.
      zpackage-note = note.
      IF print = 'X'.
        PERFORM PREPARE_ADDR.
        PERFORM PRINT_DOCUMENT.
      ENDIF.
      INSERT zpackage.
      MESSAGE s398(00) WITH text-003.
    ENDIF.
  ENDIF.

END-OF-SELECTION.
  CLEAR vendor.
  CLEAR note.
  pack = ''.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 12:35:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770049#M645395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-31T12:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Clear PARAMETERS field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770050#M645396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use the FREE MEMORY statement at the end code execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 12:38:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770050#M645396</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-08-31T12:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Clear PARAMETERS field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770051#M645397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think da probelm is dat u've declared da fields obligatory and so dey cannot be blank..&lt;/P&gt;&lt;P&gt;check if removing da obligatory option helps or not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reward points if it helps..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 12:39:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770051#M645397</guid>
      <dc:creator>former_member188827</dc:creator>
      <dc:date>2007-08-31T12:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Clear PARAMETERS field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770052#M645398</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;PRE&gt;&lt;CODE&gt;END-OF-SELECTION.
  CLEAR vendor.
  CLEAR note.
 FREE MEMORY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 12:40:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770052#M645398</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-08-31T12:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Clear PARAMETERS field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770053#M645399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK. One more thing. I'd like to clear not all fields. Only note, pack and vendor. And the most important - when fields clears I'd like werks to set it's value on value which was inserted by user.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 12:57:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770053#M645399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-31T12:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Clear PARAMETERS field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770054#M645400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, then we are going to have to go a different way.  I'll be back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 12:59:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770054#M645400</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-08-31T12:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Clear PARAMETERS field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770055#M645401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so now we also want to use parameter ids for the WERKS and DATUM fields, so that we hold the values that the user has entered, but clear everything else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

selection-screen begin of block b1 with frame.
parameters werks like marc-werks memory id zwrk obligatory .
parameters datum like sy-datum memory id zdat  obligatory.
parameters vendor like lfa1-lifnr  obligatory.
parameters pack type char20  obligatory.
parameters note type char20.
selection-screen end of block b1 .

initialization.


start-of-selection.

  write:/ 'Start-of-selection'.

end-of-selection.

  write:/ 'End-of-selection'.
  free memory.
  set parameter id 'ZWRK' field werks.
  set parameter id 'ZDAT' field datum.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 13:04:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770055#M645401</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-08-31T13:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Clear PARAMETERS field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770056#M645402</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;see this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS:name(10),num(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ name.&lt;/P&gt;&lt;P&gt;write:/ num.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;clear name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 13:17:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770056#M645402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-31T13:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Clear PARAMETERS field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770057#M645403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It appears that you have marked Bharat's answer as solving your problem.  I can assure you that you have recieved some bad information.  Why?  Well, test that example solution.  If you enter a value into the fields and hit enter, the NAME field will be cleared.  This is no the behavior that you want, I'm sure.  I strongly suggest that you use the logic in my example above, this is the only way you will get the functionality  that you require.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 13:50:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-parameters-field/m-p/2770057#M645403</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-08-31T13:50:44Z</dc:date>
    </item>
  </channel>
</rss>

