<?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 Initialize select-option-low when radio button selected. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/initialize-select-option-low-when-radio-button-selected/m-p/7008315#M1496276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the "AT SELECTION-SCREEN OUTPUT" event I am initializing both a parameter and a select-option-low field based on the value of a radio-button. In the debugger I can see that both of these fields are set to their initial value. But the select-option-low field retains the value, rather than resetting to its initial state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following code displays the problem. Is anyone aware of a way to correct this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
tables: bkpf.
*
PARAMETERS: p_lstrun RADIOBUTTON GROUP bydt USER-COMMAND xyz
                                            DEFAULT 'X'.
PARAMETERS: p_yr_prd RADIOBUTTON GROUP bydt .

PARAMETERS:     p_gjahr TYPE bkpf-gjahr                MODIF ID abc.
SELECT-OPTIONS: S_MONAT FOR  bkpf-monat  NO INTERVALS  MODIF ID abc.

PARAMETERS: p_updzlr AS CHECKBOX
                     DEFAULT 'X'  MODIF ID sel
                     USER-COMMAND ucom .
*
***************************
AT SELECTION-SCREEN OUTPUT.
***************************
*
  IF p_yr_prd = 'X'.            " Select by screen Year/period
*
    p_updzlr = ' '.             " uncheck "update ZLSTRUN table"
*
    LOOP AT SCREEN.
      IF screen-group1 = 'SEL'.
*
        screen-input     = 0.          " prevent input
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
*
  ELSEIF p_lstrun = 'X'.            " Select by ZLSTRUN table"
*
    p_gjahr     = ' '.
    S_MONAT-low = ' '.

    LOOP AT SCREEN.
      IF screen-group1 = 'ABC'.
*
        screen-input     = 0.          " prevent input
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
*
    LOOP AT SCREEN.
      IF screen-group1 = 'SEL'.
*
        screen-input     = 1.          " allow input
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
*
  ENDIF.  " p_yr_prd = 'X'.  &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jun 2010 18:51:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-04T18:51:27Z</dc:date>
    <item>
      <title>Initialize select-option-low when radio button selected.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initialize-select-option-low-when-radio-button-selected/m-p/7008315#M1496276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the "AT SELECTION-SCREEN OUTPUT" event I am initializing both a parameter and a select-option-low field based on the value of a radio-button. In the debugger I can see that both of these fields are set to their initial value. But the select-option-low field retains the value, rather than resetting to its initial state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following code displays the problem. Is anyone aware of a way to correct this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
tables: bkpf.
*
PARAMETERS: p_lstrun RADIOBUTTON GROUP bydt USER-COMMAND xyz
                                            DEFAULT 'X'.
PARAMETERS: p_yr_prd RADIOBUTTON GROUP bydt .

PARAMETERS:     p_gjahr TYPE bkpf-gjahr                MODIF ID abc.
SELECT-OPTIONS: S_MONAT FOR  bkpf-monat  NO INTERVALS  MODIF ID abc.

PARAMETERS: p_updzlr AS CHECKBOX
                     DEFAULT 'X'  MODIF ID sel
                     USER-COMMAND ucom .
*
***************************
AT SELECTION-SCREEN OUTPUT.
***************************
*
  IF p_yr_prd = 'X'.            " Select by screen Year/period
*
    p_updzlr = ' '.             " uncheck "update ZLSTRUN table"
*
    LOOP AT SCREEN.
      IF screen-group1 = 'SEL'.
*
        screen-input     = 0.          " prevent input
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
*
  ELSEIF p_lstrun = 'X'.            " Select by ZLSTRUN table"
*
    p_gjahr     = ' '.
    S_MONAT-low = ' '.

    LOOP AT SCREEN.
      IF screen-group1 = 'ABC'.
*
        screen-input     = 0.          " prevent input
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
*
    LOOP AT SCREEN.
      IF screen-group1 = 'SEL'.
*
        screen-input     = 1.          " allow input
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
*
  ENDIF.  " p_yr_prd = 'X'.  &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 18:51:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initialize-select-option-low-when-radio-button-selected/m-p/7008315#M1496276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-04T18:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Initialize select-option-low when radio button selected.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initialize-select-option-low-when-radio-button-selected/m-p/7008316#M1496277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very basic question.&lt;/P&gt;&lt;P&gt;Im afraid to answer this, but still i ll give the hint &lt;/P&gt;&lt;P&gt;select option is similar to a internal table, use the same method you do for clearing internal table body.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 19:02:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initialize-select-option-low-when-radio-button-selected/m-p/7008316#M1496277</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-06-04T19:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Initialize select-option-low when radio button selected.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/initialize-select-option-low-when-radio-button-selected/m-p/7008317#M1496278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Keshav.T   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your very basic answer to my very basic question solved my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jun 2010 19:18:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/initialize-select-option-low-when-radio-button-selected/m-p/7008317#M1496278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-04T19:18:43Z</dc:date>
    </item>
  </channel>
</rss>

