<?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: Selection Screen Parameter behaving strangely. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-behaving-strangely/m-p/803958#M41176</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yep, that works and I tried that before but I didn't like the fact that if the checkbox was selected and you just pressed enter not execute then the checkbox is reset which makes it seems squirrelly.  maybe checking the command for enter in selection screen output and skip the setting to 'x' for enter would work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Dec 2004 20:13:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2004-12-08T20:13:14Z</dc:date>
    <item>
      <title>Selection Screen Parameter behaving strangely.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-behaving-strangely/m-p/803956#M41174</link>
      <description>&lt;P&gt;This one is too weird to believe. Here's what's happening. I have a normal abap list report with a checkbox parameter. I set the value to 'X' initialization and it works the first time the selection screen is presented. Upon running the program I turn off the checkbox. I want the value to be re-initialized to 'X' whenever the selection screen appears. The problem is when F3 is pressed on the list screen, the initialization is invoked and the parameter set to 'X' but the selection screen appears without the checkbox selected. I have verified this through the debugger. Is there a better to change the values of selection screen parameters?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2004 19:33:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-behaving-strangely/m-p/803956#M41174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-08T19:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Parameter behaving strangely.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-behaving-strangely/m-p/803957#M41175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try doing the initialization of the field in the AT SELECTION-SCREEN OUTPUT event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;p_check = 'X'.&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>Wed, 08 Dec 2004 19:46:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-behaving-strangely/m-p/803957#M41175</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2004-12-08T19:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Parameter behaving strangely.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-behaving-strangely/m-p/803958#M41176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yep, that works and I tried that before but I didn't like the fact that if the checkbox was selected and you just pressed enter not execute then the checkbox is reset which makes it seems squirrelly.  maybe checking the command for enter in selection screen output and skip the setting to 'x' for enter would work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2004 20:13:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-behaving-strangely/m-p/803958#M41176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-08T20:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Parameter behaving strangely.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-behaving-strangely/m-p/803959#M41177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm.....ok,  I really don't like it, but, try this.  Maybe someone else has a better way.&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;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZRICH_0002 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_check as checkbox default 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  case sy-ucomm.&lt;/P&gt;&lt;P&gt;   when space.&lt;/P&gt;&lt;P&gt;   when others.&lt;/P&gt;&lt;P&gt;    p_check = 'X'.&lt;/P&gt;&lt;P&gt;  endcase.&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_check.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2004 20:27:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-behaving-strangely/m-p/803959#M41177</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2004-12-08T20:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Parameter behaving strangely.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-behaving-strangely/m-p/803960#M41178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that didn't work either.  sy-ucomm is still space even when ending out of the report.  Here's what I did but it gets ugly.  it works but if someone has a better idea, please let me know. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p_check as checkbox default = 'X'.&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;  IMPORT w_from_end_of_selection FROM MEMORY ID 'key1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF w_from_end_of_selection = 'X'.&lt;/P&gt;&lt;P&gt;    p_test = 'X'.&lt;/P&gt;&lt;P&gt;    CLEAR w_from_end_of_selection.&lt;/P&gt;&lt;P&gt;    EXPORT w_from_end_of_selection TO MEMORY ID 'key1'.&lt;/P&gt;&lt;P&gt;  ENDIF.&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;  w_from_end_of_selection = 'X'.&lt;/P&gt;&lt;P&gt;  EXPORT w_from_end_of_selection TO MEMORY ID 'key1'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2004 20:49:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-behaving-strangely/m-p/803960#M41178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-08T20:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Parameter behaving strangely.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-behaving-strangely/m-p/803961#M41179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here's a cleaner solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Test Option.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;PARAMETERS: p_test  AS CHECKBOX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    w_from_initialization = 'X'.&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;  IF w_from_initialization = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;can only get here from initialization &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;use this to reset the test option to "on".   &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    p_test = 'X'.&lt;/P&gt;&lt;P&gt;    CLEAR w_from_initialization.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2004 21:04:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-behaving-strangely/m-p/803961#M41179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-08T21:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Parameter behaving strangely.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-behaving-strangely/m-p/803962#M41180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Scott,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if you know about this, so I would explain it to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of selection-screen processing, the UCOMM value is to be obtained from the structure SSCRFIELDS, as against the structure SY(ST) in case of normal screen processing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider the following code snippet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;====================================================&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

tables sscrfields.

parameters : p_check          as checkbox.
data        :w_do_not_reset type flag.


at selection-screen output.
  if w_do_not_reset eq space.
    p_check = 'X'.
  endif.

at selection-screen.
  if sscrfields-ucomm eq space.
    w_do_not_reset = 'X'.
  else.
    clear w_do_not_reset.
  endif.

start-of-selection.
  write : p_check.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;====================================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the example illustrates, we need to declare the structure SSCRFIELDS with a tables statement and use the value of SSCRFIELDS-UCOMM.&lt;/P&gt;&lt;P&gt;&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;Anand Mandalika.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. : If you are satisfied with the solution, please award the points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Dec 2004 04:13:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-behaving-strangely/m-p/803962#M41180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-12-09T04:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen Parameter behaving strangely.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-behaving-strangely/m-p/803963#M41181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not just try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : p_check as checkbox memory id xxx .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Dec 2004 07:30:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-parameter-behaving-strangely/m-p/803963#M41181</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2004-12-09T07:30:03Z</dc:date>
    </item>
  </channel>
</rss>

