<?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: Drop Down for Select-Options? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-for-select-options/m-p/2242560#M483622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the below code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report yo_maint_zv_024 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Table diclaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;tables: tvdir.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Add values to list box&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;  type-pools: vrm.&lt;/P&gt;&lt;P&gt;  data: name  type vrm_id,&lt;/P&gt;&lt;P&gt;        list  type vrm_values,&lt;/P&gt;&lt;P&gt;        value like line of list.&lt;/P&gt;&lt;P&gt;  name = 'P_TABNM'.&lt;/P&gt;&lt;P&gt;  refresh list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  value-key = 'V_024'.&lt;/P&gt;&lt;P&gt;  value-text = text-002. "'V_024-Purchasing Groups'.&lt;/P&gt;&lt;P&gt;  append value to list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  value-key = 'V_T024D'.&lt;/P&gt;&lt;P&gt;  value-text = text-003. "'V_T024D-MRP Controllers'.&lt;/P&gt;&lt;P&gt;  append value to list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  value-key = 'ZT604'.&lt;/P&gt;&lt;P&gt;  value-text = text-004. "'T604-Commodity Codes'.&lt;/P&gt;&lt;P&gt;  append value to list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  value-key = 'T179'.&lt;/P&gt;&lt;P&gt;  value-text = text-005. "'T179-Product Hierarchies'.&lt;/P&gt;&lt;P&gt;  append value to list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  value-key = 'TVM1T'.&lt;/P&gt;&lt;P&gt;  value-text = text-006. "'TVM1T-Business Manager'.&lt;/P&gt;&lt;P&gt;  append value to list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  value-key = 'TVM2T'.&lt;/P&gt;&lt;P&gt;  value-text = text-007. "'TVM2T-Division manager'.&lt;/P&gt;&lt;P&gt;  append value to list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  value-key = 'TVM3T'.&lt;/P&gt;&lt;P&gt;  value-text = text-008. "'TVM3T-Director'.&lt;/P&gt;&lt;P&gt;  append value to list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  value-key = 'V_TVV2'.&lt;/P&gt;&lt;P&gt;  value-text = text-009. "'V_TVV2-Customer Group 2'.&lt;/P&gt;&lt;P&gt;  append value to list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'VRM_SET_VALUES'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            id     = name&lt;/P&gt;&lt;P&gt;            values = list.&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;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Selection screento table View&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  selection-screen skip 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  parameter p_tabnm(30) as listbox visible length 30 obligatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  selection-screen skip 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  selection-screen begin of block s1 with frame title text-001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  parameter: p_radio1 radiobutton group g1,&lt;/P&gt;&lt;P&gt;             p_radio radiobutton group g1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  selection-screen end of block s1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Get flag of corresponding table view&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  select single tabname flag from tvdir into tvdir&lt;/P&gt;&lt;P&gt;                where tabname = p_tabnm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Set flag of corresponding table view&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if p_radio1 eq 'X'.&lt;/P&gt;&lt;P&gt;    if tvdir-flag ne 'X'.&lt;/P&gt;&lt;P&gt;      update tvdir set: flag  = 'X'&lt;/P&gt;&lt;P&gt;                 where tabname = p_tabnm.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  if p_radio eq 'X'.&lt;/P&gt;&lt;P&gt;    if tvdir-flag eq 'X'.&lt;/P&gt;&lt;P&gt;      update tvdir set: flag  = ''&lt;/P&gt;&lt;P&gt;                   where tabname = p_tabnm.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Execute View/Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'VIEW_MAINTENANCE_CALL'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      action                               = 'U'&lt;/P&gt;&lt;P&gt;      view_name                            = p_tabnm&lt;/P&gt;&lt;P&gt;   exceptions&lt;/P&gt;&lt;P&gt;     client_reference                     = 1&lt;/P&gt;&lt;P&gt;     foreign_lock                         = 2&lt;/P&gt;&lt;P&gt;     invalid_action                       = 3&lt;/P&gt;&lt;P&gt;     no_clientindependent_auth            = 4&lt;/P&gt;&lt;P&gt;     no_database_function                 = 5&lt;/P&gt;&lt;P&gt;     no_editor_function                   = 6&lt;/P&gt;&lt;P&gt;     no_show_auth                         = 7&lt;/P&gt;&lt;P&gt;     no_tvdir_entry                       = 8&lt;/P&gt;&lt;P&gt;     no_upd_auth                          = 9&lt;/P&gt;&lt;P&gt;     only_show_allowed                    = 10&lt;/P&gt;&lt;P&gt;     system_failure                       = 11&lt;/P&gt;&lt;P&gt;     unknown_field_in_dba_sellist         = 12&lt;/P&gt;&lt;P&gt;     view_not_found                       = 13&lt;/P&gt;&lt;P&gt;     others                               = 14.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Reset flag of corresponding table view&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  update tvdir set: flag  = tvdir-flag&lt;/P&gt;&lt;P&gt;                where tabname = p_tabnm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it is helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 May 2007 14:17:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-17T14:17:00Z</dc:date>
    <item>
      <title>Drop Down for Select-Options?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-for-select-options/m-p/2242556#M483618</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 create a Drop Down feature to SELECT-OPTIONS in selection screen? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, How?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or I must go for Ranges!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanq.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 14:11:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-for-select-options/m-p/2242556#M483618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T14:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Drop Down for Select-Options?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-for-select-options/m-p/2242557#M483619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What exactly you mean by drop down feature.&lt;/P&gt;&lt;P&gt;If it is for the F4 help then yes we can create it.&lt;/P&gt;&lt;P&gt;And if it is for the Listbox like thing they can be created.&lt;/P&gt;&lt;P&gt;Check the links -&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2951646"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3457535"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="117817"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpful replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 14:14:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-for-select-options/m-p/2242557#M483619</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-05-17T14:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Drop Down for Select-Options?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-for-select-options/m-p/2242558#M483620</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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the below Example &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report zrich_0001.
 
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;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2951786"&gt;&lt;/A&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;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 14:14:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-for-select-options/m-p/2242558#M483620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T14:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Drop Down for Select-Options?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-for-select-options/m-p/2242559#M483621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your selection screen statements use something like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: zrunmode(1) AS LISTBOX VISIBLE LENGTH 25 DEFAULT 'R'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case I'm determining a runmode for a BDC (three choices, 1 char long)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then below add the following event.. Assigning the drop down list items w/text descriptions&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;  name = 'ZRUNMODE'.&lt;/P&gt;&lt;P&gt;  value-key = 'R'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  value-text = '(R)  Run Direct Update'.&lt;/P&gt;&lt;P&gt;  APPEND value TO list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  value-key = 'S'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  value-text = '(S)  Show Records and Confirm Update'.&lt;/P&gt;&lt;P&gt;  APPEND value TO list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  value-key = 'T'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  value-text = '(T)  Run in Test Mode (No Update)'.&lt;/P&gt;&lt;P&gt;  APPEND value TO list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'VRM_SET_VALUES'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            id     = name&lt;/P&gt;&lt;P&gt;            values = list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 14:16:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-for-select-options/m-p/2242559#M483621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T14:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Drop Down for Select-Options?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-for-select-options/m-p/2242560#M483622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See the below code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report yo_maint_zv_024 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Table diclaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;tables: tvdir.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Add values to list box&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;  type-pools: vrm.&lt;/P&gt;&lt;P&gt;  data: name  type vrm_id,&lt;/P&gt;&lt;P&gt;        list  type vrm_values,&lt;/P&gt;&lt;P&gt;        value like line of list.&lt;/P&gt;&lt;P&gt;  name = 'P_TABNM'.&lt;/P&gt;&lt;P&gt;  refresh list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  value-key = 'V_024'.&lt;/P&gt;&lt;P&gt;  value-text = text-002. "'V_024-Purchasing Groups'.&lt;/P&gt;&lt;P&gt;  append value to list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  value-key = 'V_T024D'.&lt;/P&gt;&lt;P&gt;  value-text = text-003. "'V_T024D-MRP Controllers'.&lt;/P&gt;&lt;P&gt;  append value to list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  value-key = 'ZT604'.&lt;/P&gt;&lt;P&gt;  value-text = text-004. "'T604-Commodity Codes'.&lt;/P&gt;&lt;P&gt;  append value to list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  value-key = 'T179'.&lt;/P&gt;&lt;P&gt;  value-text = text-005. "'T179-Product Hierarchies'.&lt;/P&gt;&lt;P&gt;  append value to list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  value-key = 'TVM1T'.&lt;/P&gt;&lt;P&gt;  value-text = text-006. "'TVM1T-Business Manager'.&lt;/P&gt;&lt;P&gt;  append value to list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  value-key = 'TVM2T'.&lt;/P&gt;&lt;P&gt;  value-text = text-007. "'TVM2T-Division manager'.&lt;/P&gt;&lt;P&gt;  append value to list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  value-key = 'TVM3T'.&lt;/P&gt;&lt;P&gt;  value-text = text-008. "'TVM3T-Director'.&lt;/P&gt;&lt;P&gt;  append value to list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  value-key = 'V_TVV2'.&lt;/P&gt;&lt;P&gt;  value-text = text-009. "'V_TVV2-Customer Group 2'.&lt;/P&gt;&lt;P&gt;  append value to list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'VRM_SET_VALUES'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            id     = name&lt;/P&gt;&lt;P&gt;            values = list.&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;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Selection screento table View&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  selection-screen skip 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  parameter p_tabnm(30) as listbox visible length 30 obligatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  selection-screen skip 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  selection-screen begin of block s1 with frame title text-001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  parameter: p_radio1 radiobutton group g1,&lt;/P&gt;&lt;P&gt;             p_radio radiobutton group g1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  selection-screen end of block s1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Get flag of corresponding table view&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  select single tabname flag from tvdir into tvdir&lt;/P&gt;&lt;P&gt;                where tabname = p_tabnm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Set flag of corresponding table view&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if p_radio1 eq 'X'.&lt;/P&gt;&lt;P&gt;    if tvdir-flag ne 'X'.&lt;/P&gt;&lt;P&gt;      update tvdir set: flag  = 'X'&lt;/P&gt;&lt;P&gt;                 where tabname = p_tabnm.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  if p_radio eq 'X'.&lt;/P&gt;&lt;P&gt;    if tvdir-flag eq 'X'.&lt;/P&gt;&lt;P&gt;      update tvdir set: flag  = ''&lt;/P&gt;&lt;P&gt;                   where tabname = p_tabnm.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Execute View/Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'VIEW_MAINTENANCE_CALL'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      action                               = 'U'&lt;/P&gt;&lt;P&gt;      view_name                            = p_tabnm&lt;/P&gt;&lt;P&gt;   exceptions&lt;/P&gt;&lt;P&gt;     client_reference                     = 1&lt;/P&gt;&lt;P&gt;     foreign_lock                         = 2&lt;/P&gt;&lt;P&gt;     invalid_action                       = 3&lt;/P&gt;&lt;P&gt;     no_clientindependent_auth            = 4&lt;/P&gt;&lt;P&gt;     no_database_function                 = 5&lt;/P&gt;&lt;P&gt;     no_editor_function                   = 6&lt;/P&gt;&lt;P&gt;     no_show_auth                         = 7&lt;/P&gt;&lt;P&gt;     no_tvdir_entry                       = 8&lt;/P&gt;&lt;P&gt;     no_upd_auth                          = 9&lt;/P&gt;&lt;P&gt;     only_show_allowed                    = 10&lt;/P&gt;&lt;P&gt;     system_failure                       = 11&lt;/P&gt;&lt;P&gt;     unknown_field_in_dba_sellist         = 12&lt;/P&gt;&lt;P&gt;     view_not_found                       = 13&lt;/P&gt;&lt;P&gt;     others                               = 14.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;Reset flag of corresponding table view&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  update tvdir set: flag  = tvdir-flag&lt;/P&gt;&lt;P&gt;                where tabname = p_tabnm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it is helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 14:17:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-for-select-options/m-p/2242560#M483622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T14:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Drop Down for Select-Options?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-for-select-options/m-p/2242561#M483623</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;I dont think this is possible in case of select options, as select options already displays a list of valid values when you go for F4 Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now even still you want to have this functionality then you will have to create two parameters on the same line, provide drop down for each and in the program get there values and populate a range and then use this range for further processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPE-POOLS : VRM.
TABLES : T134.
DATA : IT_1 TYPE VRM_VALUES ,
       V_INDEX TYPE I ,
       WA LIKE LINE OF IT_1.
selection-screen begin of line.
SELECTION-SCREEN COMMENT 10(25) TEXT-003 "TEXT-003 is material Type
                   FOR FIELD S_MTART.
parameter: S_MTART like T134-MTART AS LISTBOX  VISIBLE
               LENGTH 6  OBLIGATORY.
 
SELECTION-SCREEN COMMENT 45(5) TEXT-004 " TEXT-004 IS TO
                   FOR FIELD S_MTART1.
*"You can adjust the coordinates 45(5) , it is basically xpos and lenght
parameter: S_MTART1 like T134-MTART AS LISTBOX  VISIBLE
               LENGTH 6  OBLIGATORY.
 
selection-screen end of line.
 
INITIALIZATION.
CLEAR V_INDEX.
* "Populate the drop down
SELECT MTART INTO T134-MTART FROM T134.
WA-KEY = T134-MTART.
APPEND WA TO IT_1.
ENDSELECT.
 
 
CALL FUNCTION 'VRM_SET_VALUES'
  EXPORTING
    ID                    = 'S_MTART'
    VALUES                = IT_1
* EXCEPTIONS
*   ID_ILLEGAL_NAME       = 1
*   OTHERS                = 2
          .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
 
CALL FUNCTION 'VRM_SET_VALUES'
  EXPORTING
    ID                    = 'S_MTART1'
    VALUES                = IT_1
* EXCEPTIONS
*   ID_ILLEGAL_NAME       = 1
*   OTHERS                = 2
          .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*" Youcan also add validation to check if the lower value is greater than higher 
*" same as that in select-options , but this is optionsl
 
start-of-selection.
* "Declare the range
ranges : r_mtart for mara-mtart .
 
 
*" Populate the range.
r_mtart-sign = 'I'.  " Include option of select options
r_mtart-option = 'BT'. " Same to select option , indiating get values
*between
r_mtart-low = S_MTART.
r_mtart-high = s_mtart1.
append r_mtart.
 
* Get data from MARA.
Data : it_2 type table of mara ,
       wa_2 like line of it_2.
*"use the range to get the data from table 
select * into table it_2
from mara
where mtart in r_mtart.
 
loop at it_2 into wa_2.
write :/ wa_2-matnr ,wa_2-mtart.
endloop.
&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>Thu, 17 May 2007 14:18:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-for-select-options/m-p/2242561#M483623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T14:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Drop Down for Select-Options?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-for-select-options/m-p/2242562#M483624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are looking for LIST box use the example by Sudheer. If you are looking for F4 Help on the selection screen please use this function module,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS:    variant  LIKE disvariant-variant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR variant.&lt;/P&gt;&lt;P&gt;  PERFORM f4_display_variant USING variant 'U'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f4_display_variant USING varname LIKE disvariant-variant&lt;/P&gt;&lt;P&gt;                              save    TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  disvariant-report = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_VARIANT_F4'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      is_variant    = disvariant&lt;/P&gt;&lt;P&gt;      i_save        = save&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      es_variant    = disvariant&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      not_found     = 1&lt;/P&gt;&lt;P&gt;      program_error = 2&lt;/P&gt;&lt;P&gt;      OTHERS        = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    varname = disvariant-variant.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    MESSAGE s245(56).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Keine Anzeigevariante(n) vorhanden&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                               " F4_DISPLAY_VARIANT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shreekant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 14:19:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-for-select-options/m-p/2242562#M483624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T14:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Drop Down for Select-Options?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-for-select-options/m-p/2242563#M483625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use addition as LISTBOX in parameters.&lt;/P&gt;&lt;P&gt;parameters : p_mat type matnr as listbox visible length 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In select-options its not possible to display dropdown box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 14:21:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-for-select-options/m-p/2242563#M483625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T14:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Drop Down for Select-Options?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-for-select-options/m-p/2242564#M483626</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;I dont think this is possible in case of select options , as select options already displays a list of valid values when you go for F4 Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now even still you want to have this functionality then you will ahve to create two parameters on the same line , provide drop down for each and in the program get there values and populate a range and then use this range for further processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 14:31:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-for-select-options/m-p/2242564#M483626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T14:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Drop Down for Select-Options?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-for-select-options/m-p/2242565#M483627</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;Go through the code snippet,&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/display/Snippets/Drop-down" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/display/Snippets/Drop-down&lt;/A&gt;&lt;EM&gt;List&lt;/EM&gt;Box&lt;EM&gt;in&lt;/EM&gt;the&lt;EM&gt;Selection&lt;/EM&gt;Screen&lt;EM&gt;for&lt;/EM&gt;Windows&lt;EM&gt;NT%2C&lt;/EM&gt;R3&lt;EM&gt;Release&lt;/EM&gt;4.7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Azaz Ali.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 14:31:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-for-select-options/m-p/2242565#M483627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T14:31:31Z</dc:date>
    </item>
  </channel>
</rss>

