<?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 + Drop Down! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-drop-down/m-p/2381627#M528660</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;It is not possible for select-options. But you can use two parameters instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this sample codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
tables: mara.
type-pools: vrm.
 
ranges: r_matnr for mara-matnr.
 
selection-screen begin of line.
selection-screen comment (10) ff_text.
parameters: p_fld1 type mara-matnr as listbox visible length 20.
selection-screen position 50.
selection-screen comment (10) tf_text.
parameters: p_fld2 type mara-matnr as listbox visible length 20.
selection-screen end of line.
 
initialization.
 
  ff_text = 'From Field'.
  tf_text = 'To Field'.
 
  perform build_user_drop_down_list.
 
start-of-selection.
 
  r_matnr-sign = 'I'.
  r_matnr-option = 'BT'.
  r_matnr-low = p_fld1.
  r_matnr-high = p_fld2.
  append r_matnr.
 
* Now you can use the R_MATNR in a select statement.
 
 
************************************************************************
* build user_drop_down_list
************************************************************************
form build_user_drop_down_list.
 
  data: name type vrm_id,
        list type vrm_values,
        value like line of list.
 
  clear list. refresh list.
 
  clear value.
  value-key = 'MATA'.
  value-text = 'Material A'.
  append value to list.
  clear value.
  value-key = 'MATB'.
  value-text = 'Material B'.
  append value to list.
  clear value.
  value-key = 'MATC'.
  value-text = 'Material C'.
  append value to list.
  clear value.
  value-key = 'MATD'.
  value-text = 'Material D'.
  append value to list.
  clear value.
  value-key = 'MATE'.
  value-text = 'Material E'.
  append value to list.
 
 
* Set the values for P_FLD1
  name = 'P_FLD1'.
  call function 'VRM_SET_VALUES'
       exporting
            id     = name
            values = list.
 
* Set values for P_FLD2
  name = 'P_FLD2'.
  call function 'VRM_SET_VALUES'
       exporting
            id     = name
            values = list.
 
endform.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jun 2007 17:54:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-04T17:54:16Z</dc:date>
    <item>
      <title>SELECT-OPTIONS + Drop Down!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-drop-down/m-p/2381625#M528658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to add the feature of Drop Down-List Box to a SELECT-OPTIONS field in selection screen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) If so, How it can be achieved?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanq.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 17:49:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-drop-down/m-p/2381625#M528658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T17:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS + Drop Down!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-drop-down/m-p/2381626#M528659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sridhar,&lt;/P&gt;&lt;P&gt;   It is not possible.&lt;/P&gt;&lt;P&gt;as an alternative, you can have two separate Parameters serving as a range.&lt;/P&gt;&lt;P&gt;Once the user enters the vlaues using the drop down, you can move the values in the parameters into a Range and then use it in the select statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the sample program: DEMO_DROPDOWN_LIST_BOX as a referance.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 17:53:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-drop-down/m-p/2381626#M528659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T17:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS + Drop Down!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-drop-down/m-p/2381627#M528660</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;It is not possible for select-options. But you can use two parameters instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this sample codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
tables: mara.
type-pools: vrm.
 
ranges: r_matnr for mara-matnr.
 
selection-screen begin of line.
selection-screen comment (10) ff_text.
parameters: p_fld1 type mara-matnr as listbox visible length 20.
selection-screen position 50.
selection-screen comment (10) tf_text.
parameters: p_fld2 type mara-matnr as listbox visible length 20.
selection-screen end of line.
 
initialization.
 
  ff_text = 'From Field'.
  tf_text = 'To Field'.
 
  perform build_user_drop_down_list.
 
start-of-selection.
 
  r_matnr-sign = 'I'.
  r_matnr-option = 'BT'.
  r_matnr-low = p_fld1.
  r_matnr-high = p_fld2.
  append r_matnr.
 
* Now you can use the R_MATNR in a select statement.
 
 
************************************************************************
* build user_drop_down_list
************************************************************************
form build_user_drop_down_list.
 
  data: name type vrm_id,
        list type vrm_values,
        value like line of list.
 
  clear list. refresh list.
 
  clear value.
  value-key = 'MATA'.
  value-text = 'Material A'.
  append value to list.
  clear value.
  value-key = 'MATB'.
  value-text = 'Material B'.
  append value to list.
  clear value.
  value-key = 'MATC'.
  value-text = 'Material C'.
  append value to list.
  clear value.
  value-key = 'MATD'.
  value-text = 'Material D'.
  append value to list.
  clear value.
  value-key = 'MATE'.
  value-text = 'Material E'.
  append value to list.
 
 
* Set the values for P_FLD1
  name = 'P_FLD1'.
  call function 'VRM_SET_VALUES'
       exporting
            id     = name
            values = list.
 
* Set values for P_FLD2
  name = 'P_FLD2'.
  call function 'VRM_SET_VALUES'
       exporting
            id     = name
            values = list.
 
endform.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 17:54:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-drop-down/m-p/2381627#M528660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T17:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS + Drop Down!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-drop-down/m-p/2381628#M528661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks familiar.   &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&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>Mon, 04 Jun 2007 18:04:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-drop-down/m-p/2381628#M528661</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-06-04T18:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS + Drop Down!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-drop-down/m-p/2381629#M528662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ahhh yes,  here it is......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="210900"&gt;&lt;/A&gt;&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>Mon, 04 Jun 2007 18:10:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-drop-down/m-p/2381629#M528662</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-06-04T18:10:08Z</dc:date>
    </item>
  </channel>
</rss>

