<?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 list in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873959#M50397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is not with the dropdown functionality. It is with the lack of proper understanding of the data-type conversions!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider the following code and see if it helps. Give particular attention to the DO...ENDDO loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data number(1) type c.

TYPE-POOLS VRM.

DATA: NAME  TYPE VRM_ID,
      LIST  TYPE VRM_VALUES,
      VALUE LIKE LINE OF LIST.



start-of-selection.

  call screen 100.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  STATUS_0100  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE STATUS_0100 OUTPUT.

IF LIST IS INITIAL.
  name = 'NUMBER'.

  DO 9 TIMES.
    MOVE SY-INDEX TO : VALUE-KEY+0(1),
                       VALUE-TEXT+0(1).
    APPEND VALUE TO LIST.
  ENDDO.

ENDIF.

CALL FUNCTION 'VRM_SET_VALUES'
  EXPORTING
    ID                    = NAME
    VALUES                = LIST
 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.


ENDMODULE.                 " STATUS_0100  OUTPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jan 2005 14:22:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-01-05T14:22:47Z</dc:date>
    <item>
      <title>Drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873943#M50381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        I am using a drop down list in a program. It has got some 10 values. How do i grab the value which user has selected and set that value to that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2005 05:30:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873943#M50381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-05T05:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873944#M50382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;R u using it abap program? is it a parameter field as list box?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using FM VRM_SET_VALUES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need more info to help you out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2005 09:23:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873944#M50382</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-01-05T09:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873945#M50383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         I am not using as parameter but using VRM_SET_VALUES to set the values for that particular field.The probem is how to grab the selected value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2005 09:42:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873945#M50383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-05T09:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873946#M50384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doesn't the "&amp;lt;b&amp;gt;particular field&amp;lt;/b&amp;gt;" have that value, when you have selected from the dropdown list ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post the code snippet ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian V.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Subramanian Venkateswaran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2005 09:46:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873946#M50384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-05T09:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873947#M50385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You would be passing the &amp;lt;b&amp;gt;"particular field"&amp;lt;/b&amp;gt; as the name property for VRM_SET_VALUES .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that particular filed will hold the selected value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2005 09:49:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873947#M50385</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-01-05T09:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873948#M50386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         I am using function VRM_SET_VALUES to set the possible values for that particular field. Now when i select a particular value from those values i am not able to see that value rather i am seeing a blank for that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2005 11:22:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873948#M50386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-05T11:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873949#M50387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not clear from your description whether you are using a selection-screen or a normal screen. Hence the confusion with the term "parameter".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you use the FM VRM_SET_VALUES, the exporting parameter NAME should contain the name of the field on the screen (in case of a selection-screen, this would generally be a &amp;lt;i&amp;gt;parameter&amp;lt;/i&amp;gt;). The exporting parameter list will contain the values to be displayed in the drop down. When the user selects a value from the dropdown, it will automatically get assigned to the field , which you have sent to the FM through the exporting parameter &amp;lt;b&amp;gt;name&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For further information, you can refer to the program DEMO_DYNPRO_DROPDOWN_LISTBOX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2005 11:33:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873949#M50387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-05T11:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873950#M50388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following link to the documentation might provide you more information: &lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/9f/dbabe435c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/9f/dbabe435c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, I would like to introduce you the SDN forums points system: You can assign points to posts you find helpful while solving your question. You can reward points by clicking the yellow star icon at header of each reply post. You can reward;&lt;/P&gt;&lt;P&gt;- one 10 points (solved)&lt;/P&gt;&lt;P&gt;- two 6 points (very helpful answer)&lt;/P&gt;&lt;P&gt;- many 2 points (helpful answer)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2005 12:25:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873950#M50388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-05T12:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873951#M50389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       I am not using any selection screen as you specified. It's a screen field and i made it as listbox.&lt;/P&gt;&lt;P&gt;I have assigned values using VRM_SET_VALUES but i am unable to select the values from the list box. what ever i select i am only getting space as value for that field.&lt;/P&gt;&lt;P&gt;I hope this is clear for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2005 12:51:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873951#M50389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-05T12:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873952#M50390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the prg. RSDEMO_DROPDOWN_LISTBOX. Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds, Murugesh AS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2005 13:00:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873952#M50390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-05T13:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873953#M50391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From your description, I suspect the problem to be with the exporting parameter VALUES of the FM VRM_SET_VALUES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us say you have a Screen Field called CARRID. and you wish to provide a dropdown with some Airline Carriers. The following code would do the trick:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

TYPE-POOLS VRM.

DATA: NAME  TYPE VRM_ID,
      LIST  TYPE VRM_VALUES,
      VALUE LIKE LINE OF LIST.

  NAME = 'CARRID'.
  
  value-key = 'LH'.
  value-text = 'Lufthansa'.
  append value to list.

  value-key = 'IA'.
  value-text = 'Indian Airlines'.
  append value to list.
 
  CALL FUNCTION 'VRM_SET_VALUES'
       EXPORTING
            ID              = NAME
            VALUES          = LIST.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, what the user will see on the screen in the dropdown list will be the &amp;lt;i&amp;gt;texts&amp;lt;/i&amp;gt;. When the user selects, for example, Lufthansa, in the program the screen variable CARRID will contain the value 'LH'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear. Please refer to the documentation in the link that I have given in my previous post. If you are still unable to achieve the result, then please paste the code you have used for this purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2005 13:08:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873953#M50391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-05T13:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873954#M50392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         I am able to do if that field is from dictionary.but here the field is user defined field.Pls suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2005 13:13:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873954#M50392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-05T13:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873955#M50393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         For your reference i am giving the code i am using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT z_dropdown .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS vrm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA  init.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA  save_ok LIKE sy-ucomm.&lt;/P&gt;&lt;P&gt;DATA  ok_code LIKE sy-ucomm.&lt;/P&gt;&lt;P&gt;DATA:values1 TYPE vrm_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*CLEAR INIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL SCREEN 100.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  fill_list  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE fill_list OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA values TYPE vrm_values WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF init IS INITIAL.&lt;/P&gt;&lt;P&gt;    DO 10 TIMES.&lt;/P&gt;&lt;P&gt;      values-text = space.&lt;/P&gt;&lt;P&gt;      values-key = sy-index.&lt;/P&gt;&lt;P&gt;      APPEND values.&lt;/P&gt;&lt;P&gt;    ENDDO.&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              = 'INPUT1'&lt;/P&gt;&lt;P&gt;              values          = values[]&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              id_illegal_name = 1&lt;/P&gt;&lt;P&gt;              OTHERS          = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;ENDMODULE.                 " fill_list  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  STATUS_0100  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE status_0100 OUTPUT.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'TEST'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " STATUS_0100  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  USER_COMMAND_0100  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE user_command_0100 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  save_ok = ok_code.&lt;/P&gt;&lt;P&gt;  CLEAR ok_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE save_ok.&lt;/P&gt;&lt;P&gt;    WHEN 'LIST'.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'VRM_GET_VALUES'&lt;/P&gt;&lt;P&gt;           EXPORTING&lt;/P&gt;&lt;P&gt;                id           = 'INPUT1'&lt;/P&gt;&lt;P&gt;           IMPORTING&lt;/P&gt;&lt;P&gt;                values       = values1&lt;/P&gt;&lt;P&gt;           EXCEPTIONS&lt;/P&gt;&lt;P&gt;                id_not_found = 1&lt;/P&gt;&lt;P&gt;                OTHERS       = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN 'BACK'.&lt;/P&gt;&lt;P&gt;      LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " USER_COMMAND_0100  INPUT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2005 13:15:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873955#M50393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-05T13:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873956#M50394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your mention to the word dictionary raises a serious doubt here. Providing the DropDown ListBox Functionality , to my knowledge , has got nothing to do with the dictionary. Are you really trying to create a drop-doun list box ? Or are you trying to code for the F4 Functionality (Input help)? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide the code you are using .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2005 13:17:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873956#M50394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-05T13:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873957#M50395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              I am using frop down functionality only. But tha values which i am setting are defined in ABAP program and those values are set to the use defined field using FM. I have given you the code i am using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2005 13:26:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873957#M50395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-05T13:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873958#M50396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this one instead - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT z_dropdown .

TYPE-POOLS vrm.

DATA init.

DATA save_ok LIKE sy-ucomm.
DATA ok_code LIKE sy-ucomm.
DATA:values1 TYPE vrm_values.

*CLEAR INIT.

CALL SCREEN 100.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Module fill_list OUTPUT
*&amp;amp;---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE fill_list OUTPUT.



DATA values TYPE vrm_values WITH HEADER LINE.

IF init IS INITIAL.
DO 10 TIMES.
values-text = sy-index.
values-key = sy-index.
APPEND values.
ENDDO.

CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'INPUT1'
values = values[]
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.


ENDIF.


ENDMODULE. " fill_list OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Module STATUS_0100 OUTPUT
*&amp;amp;---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE status_0100 OUTPUT.
SET PF-STATUS 'TEST'.


ENDMODULE. " STATUS_0100 OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Module USER_COMMAND_0100 INPUT
*&amp;amp;---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE user_command_0100 INPUT.

save_ok = ok_code.
CLEAR ok_code.

CASE save_ok.
WHEN 'LIST'.


WHEN 'BACK'.
LEAVE PROGRAM.


ENDCASE.


ENDMODULE. " USER_COMMAND_0100 INPUT 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, what do you want to do with the value you have obtained in the field ? I cannot see any processing with that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you assign the function code LIST to the dropdown listbox ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2005 13:27:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873958#M50396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-05T13:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873959#M50397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is not with the dropdown functionality. It is with the lack of proper understanding of the data-type conversions!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider the following code and see if it helps. Give particular attention to the DO...ENDDO loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data number(1) type c.

TYPE-POOLS VRM.

DATA: NAME  TYPE VRM_ID,
      LIST  TYPE VRM_VALUES,
      VALUE LIKE LINE OF LIST.



start-of-selection.

  call screen 100.
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  STATUS_0100  OUTPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE STATUS_0100 OUTPUT.

IF LIST IS INITIAL.
  name = 'NUMBER'.

  DO 9 TIMES.
    MOVE SY-INDEX TO : VALUE-KEY+0(1),
                       VALUE-TEXT+0(1).
    APPEND VALUE TO LIST.
  ENDDO.

ENDIF.

CALL FUNCTION 'VRM_SET_VALUES'
  EXPORTING
    ID                    = NAME
    VALUES                = LIST
 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.


ENDMODULE.                 " STATUS_0100  OUTPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2005 14:22:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873959#M50397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-05T14:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873960#M50398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't read all the codes you sent. However, did you set the related property of the field to get values from the flow logic of your screen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is, at screen painter, at the "DATA" tabstrip  of field properties section, you should set the relevant field to "A" which means the listbox will be filled via the VRM function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;And as a last thing, let me introduce you the SDN forums pointing system: You can assign points to posts you find helpful while solving your question. You can reward points by clicking the yellow star icon at header of each reply post. You can reward;&lt;/P&gt;&lt;P&gt;- one 10 points (solved)&lt;/P&gt;&lt;P&gt;- two 6 points (very helpful answer)&lt;/P&gt;&lt;P&gt;- many 2 points (helpful answer)&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Serdar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2005 19:25:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list/m-p/873960#M50398</guid>
      <dc:creator>ssimsekler</dc:creator>
      <dc:date>2005-01-05T19:25:06Z</dc:date>
    </item>
  </channel>
</rss>

