<?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 with  selection fields having drop down list . in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-with-selection-fields-having-drop-down-list/m-p/3486336#M838242</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;Please refer the code below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS:
listbox(1) AS LISTBOX VISIBLE LENGTH 10 DEFAULT 'N'.
AT SELECTION-SCREEN OUTPUT.
DATA:
name TYPE vrm_id,
list TYPE vrm_values,
value TYPE vrm_value.
name = 'LISTBOX'. " Name should be in UPPER CASE

value-key = '1'.
value-text = 'Text 1'.
APPEND value TO list.
value-key = '2'.
value-text = 'Text 2'.
APPEND value TO list.

CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = name
values = list
EXCEPTIONS
id_illegal_name = 0
OTHERS = 0. 
 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Mar 2008 13:05:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-06T13:05:20Z</dc:date>
    <item>
      <title>Selection Screen with  selection fields having drop down list .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-with-selection-fields-having-drop-down-list/m-p/3486335#M838241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends ,&lt;/P&gt;&lt;P&gt;As per my requirement , i need 3 selection parameters on my selection screen all mandatory . All the 3 selection parameter should have drop down list.&lt;/P&gt;&lt;P&gt;Although i am getting the dropdown list for the 3 fields , the problem is that ,whatever i am selecting from the dropdown list and try to execute , it's throwing an Error message "Fill in all required field Entries ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i make the 3 fields non-mandatory ,this problem is solved ,but a new issue comes up , the values selected from the drop down is not getting assigned to the parameter .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the screen format .&lt;/P&gt;&lt;P&gt;MOU Type                  |  1   MON  |              &lt;/P&gt;&lt;P&gt;                                                          &lt;/P&gt;&lt;P&gt;Customer Type            |  2     FR |              &lt;/P&gt;&lt;P&gt;                                                          &lt;/P&gt;&lt;P&gt;Product                       |  6  DO |         &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please send some relevant codes if possible..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 13:02:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-with-selection-fields-having-drop-down-list/m-p/3486335#M838241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T13:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen with  selection fields having drop down list .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-with-selection-fields-having-drop-down-list/m-p/3486336#M838242</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;Please refer the code below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS:
listbox(1) AS LISTBOX VISIBLE LENGTH 10 DEFAULT 'N'.
AT SELECTION-SCREEN OUTPUT.
DATA:
name TYPE vrm_id,
list TYPE vrm_values,
value TYPE vrm_value.
name = 'LISTBOX'. " Name should be in UPPER CASE

value-key = '1'.
value-text = 'Text 1'.
APPEND value TO list.
value-key = '2'.
value-text = 'Text 2'.
APPEND value TO list.

CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = name
values = list
EXCEPTIONS
id_illegal_name = 0
OTHERS = 0. 
 &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 13:05:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-with-selection-fields-having-drop-down-list/m-p/3486336#M838242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T13:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen with  selection fields having drop down list .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-with-selection-fields-having-drop-down-list/m-p/3486337#M838243</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;With in at selection-screen event the values will not be populated..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the FM DYNPRO_VALUES_READ to read the values entered by the user and then validate that they are having a mandatory value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 13:09:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-with-selection-fields-having-drop-down-list/m-p/3486337#M838243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T13:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Screen with  selection fields having drop down list .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-with-selection-fields-having-drop-down-list/m-p/3486338#M838244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sir,&lt;/P&gt;&lt;P&gt;Thanks for the reply .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i think u did't go thru the q'n properly ,&lt;/P&gt;&lt;P&gt;i know all these , i mean i have already used this , &lt;/P&gt;&lt;P&gt;the problem comes after this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. if u keep the parameter as obligatory ,&lt;/P&gt;&lt;P&gt;it won't allow you to execute .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. if u make the parameter non-obligatry ,&lt;/P&gt;&lt;P&gt;the values selected from the drop down is not getting assigned &lt;/P&gt;&lt;P&gt;to the parameter varaible, which we require for further processing in the programme.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 13:12:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-with-selection-fields-having-drop-down-list/m-p/3486338#M838244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T13:12:28Z</dc:date>
    </item>
  </channel>
</rss>

