<?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: select options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/4353711#M1036665</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;No. U can give any value in select option. There must be some thing being done in AT SELECTION-SCREEN OUTPUT. like REFRESH and populate with default values.&lt;/P&gt;&lt;P&gt;Can u paste ur code???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want to achieve this requirement then in At selection screen output do like this.&lt;/P&gt;&lt;P&gt;AT SELECTION-screen output.&lt;/P&gt;&lt;P&gt;Populate default values to the select option.&lt;/P&gt;&lt;P&gt;LOOP AT screen.&lt;/P&gt;&lt;P&gt;IF screen-name EQ 'SO_MATNR-LOW' OR&lt;/P&gt;&lt;P&gt;    screen-name EQ 'SO_MATNR-HIGH' Your Selectoptionname&lt;/P&gt;&lt;P&gt;screen-input = 0. "Make it input disabled.&lt;/P&gt;&lt;P&gt;MODIFY screen.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vinod Reddy Vemuru on Sep 1, 2008 7:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Sep 2008 13:47:36 GMT</pubDate>
    <dc:creator>vinod_vemuru2</dc:creator>
    <dc:date>2008-09-01T13:47:36Z</dc:date>
    <item>
      <title>select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/4353709#M1036663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in select options , the user should not able to give other values.( i.e)he should be able to use only the default value given in the select option, not other valid values.......&lt;/P&gt;&lt;P&gt;any idea?????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2008 13:41:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/4353709#M1036663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-01T13:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/4353710#M1036664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use can deactivate it the entry field @ at selection-screen output event using loop at screen.&lt;/P&gt;&lt;P&gt;&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;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF screen-name = 'S_WERKS-LOW' OR&lt;/P&gt;&lt;P&gt;        screen-name = 'S_WERKS-HIGH'.&lt;/P&gt;&lt;P&gt;        screen-input = '0'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace S_WERKS by your select-options field name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: karthik arunachalam on Sep 1, 2008 7:21 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: karthik arunachalam on Sep 1, 2008 7:17 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2008 13:46:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/4353710#M1036664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-01T13:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/4353711#M1036665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;No. U can give any value in select option. There must be some thing being done in AT SELECTION-SCREEN OUTPUT. like REFRESH and populate with default values.&lt;/P&gt;&lt;P&gt;Can u paste ur code???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want to achieve this requirement then in At selection screen output do like this.&lt;/P&gt;&lt;P&gt;AT SELECTION-screen output.&lt;/P&gt;&lt;P&gt;Populate default values to the select option.&lt;/P&gt;&lt;P&gt;LOOP AT screen.&lt;/P&gt;&lt;P&gt;IF screen-name EQ 'SO_MATNR-LOW' OR&lt;/P&gt;&lt;P&gt;    screen-name EQ 'SO_MATNR-HIGH' Your Selectoptionname&lt;/P&gt;&lt;P&gt;screen-input = 0. "Make it input disabled.&lt;/P&gt;&lt;P&gt;MODIFY screen.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vinod Reddy Vemuru on Sep 1, 2008 7:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2008 13:47:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/4353711#M1036665</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-09-01T13:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/4353712#M1036666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for p_ccr1 the value should only be xq01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i hav used a FM 'SELECT_OPTIONS_RESTRICT'&lt;/P&gt;&lt;P&gt;but its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: p_ccr1 FOR mbew-hrkft obligatory .&lt;/P&gt;&lt;P&gt;PARAMETERS :  p_mrp2 TYPE marc-webaz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b2                              .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;  CLEAR opt_list                     .&lt;/P&gt;&lt;P&gt;  MOVE 'NOINTERVLS' TO opt_list-name .&lt;/P&gt;&lt;P&gt;  MOVE 'X' TO: opt_list-options-eq   .&lt;/P&gt;&lt;P&gt;  APPEND opt_list&lt;/P&gt;&lt;P&gt;             TO restrict-opt_list_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR ass                          .&lt;/P&gt;&lt;P&gt;  MOVE: 'S'          TO ass-kind     ,&lt;/P&gt;&lt;P&gt;        'P_CCR1'    TO ass-name     ,&lt;/P&gt;&lt;P&gt;        'I'          TO ass-sg_main  ,&lt;/P&gt;&lt;P&gt;        'N'          TO ass-sg_addy  ,&lt;/P&gt;&lt;P&gt;        'NOINTERVLS' TO ass-op_main  .&lt;/P&gt;&lt;P&gt;  APPEND ass TO restrict-ass_tab     .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      restriction                = restrict&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      too_late                   = 1&lt;/P&gt;&lt;P&gt;      repeated                   = 2&lt;/P&gt;&lt;P&gt;      not_during_submit          = 3&lt;/P&gt;&lt;P&gt;      db_call_after_report_call  = 4&lt;/P&gt;&lt;P&gt;      selopt_without_options     = 5&lt;/P&gt;&lt;P&gt;      selopt_without_signs       = 6&lt;/P&gt;&lt;P&gt;      invalid_sign               = 7&lt;/P&gt;&lt;P&gt;      report_call_after_db_error = 8&lt;/P&gt;&lt;P&gt;      empty_option_list          = 9&lt;/P&gt;&lt;P&gt;      invalid_kind               = 10&lt;/P&gt;&lt;P&gt;      repeated_kind_a            = 11&lt;/P&gt;&lt;P&gt;      OTHERS                     = 12.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2008 13:52:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/4353712#M1036666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-01T13:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/4353713#M1036667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suppose s_val is you select-option&lt;/P&gt;&lt;P&gt;Use event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN on s_val.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if s_val-low = val1.&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;error message.&lt;/P&gt;&lt;P&gt;endif.&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;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2008 13:53:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/4353713#M1036667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-01T13:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/4353714#M1036668</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 first in Initialization provide the default value...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And In AT SELECTION-SCREEN EVENT simply provide the value for that select-option so that even if you do any action on selection-screen then AT SELECTION-SCREEN EVENT gets triggered and resets the &lt;/P&gt;&lt;P&gt;value to the value you specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if you execute also then it will Trigger the AT SELECTION-SCREEN EVENT and then goes to the &lt;/P&gt;&lt;P&gt;Start-Of-Selection Event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It better if you debug the code once where exactly it triggering the events you can better understand my&lt;/P&gt;&lt;P&gt;explanation..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please revert back if any questions..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck`&lt;/P&gt;&lt;P&gt;Narin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2008 13:54:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/4353714#M1036668</guid>
      <dc:creator>narin_nandivada3</dc:creator>
      <dc:date>2008-09-01T13:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: select options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/4353715#M1036669</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;then u can validate that field in this way,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS matnr for mara-matnr default 'ABC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at SELECTION-SCREEN OUTPUT. &lt;/P&gt;&lt;P&gt;  if matnr-LOW = 'ABC'.  "here you have to decide low and high value&lt;/P&gt;&lt;P&gt;    message 'correct value'  type 'I'.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    message 'value incorrect'   type 'E'.&lt;/P&gt;&lt;P&gt;  endif.&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;Sanket.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2008 13:57:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/4353715#M1036669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-01T13:57:08Z</dc:date>
    </item>
  </channel>
</rss>

