<?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: Problem with Dropdown in Screen Programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-in-screen-programming/m-p/4181590#M999580</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the view that displays your matchcode if it is the same type as database field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also check the screen field properties&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sriram Chandran on Jul 18, 2008 2:53 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jul 2008 13:53:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-18T13:53:34Z</dc:date>
    <item>
      <title>Problem with Dropdown in Screen Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-in-screen-programming/m-p/4181589#M999579</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 have created a drop down list in Additional Screen B for transaction VA02. &lt;/P&gt;&lt;P&gt;The screen field which i added is Zfield (ZPERCENTAGE)added to VBAK and has its own check table with values maintained like 12.35, 15.68, 25.01, etc....&lt;/P&gt;&lt;P&gt;Using the entries from the check table, these are populated in the drop down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the problem is, the drop down is showing 2 columns, one as &lt;STRONG&gt;KEY&lt;/STRONG&gt; and the other as &lt;STRONG&gt;TEXT&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;The KEY value is not showing any decimal values but that is the actual one stored in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please help me in showing the drop down with decimals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harish Kalla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 13:32:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-in-screen-programming/m-p/4181589#M999579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T13:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Dropdown in Screen Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-in-screen-programming/m-p/4181590#M999580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the view that displays your matchcode if it is the same type as database field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also check the screen field properties&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sriram Chandran on Jul 18, 2008 2:53 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 13:53:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-in-screen-programming/m-p/4181590#M999580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T13:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Dropdown in Screen Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-in-screen-programming/m-p/4181591#M999581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harish,&lt;/P&gt;&lt;P&gt;It will display decimal values too. Check below sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably u have to change user settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: po_name(30) TYPE c VISIBLE LENGTH 20 AS LISTBOX.
TYPE-POOLS: vrm.
DATA: i_values TYPE vrm_values,
      wa_values LIKE LINE OF i_values.

AT SELECTION-SCREEN OUTPUT.

  wa_values-key = '1.1'.
  wa_values-text = 'Vinod'.
  APPEND wa_values TO  i_values.

  wa_values-key = '2.2'.
  wa_values-text = 'Kumar'.
  APPEND wa_values  TO i_values.

  wa_values-key = '3.3'.
  wa_values-text = 'Reddy'.
  APPEND wa_values  TO i_values.

  CALL FUNCTION 'VRM_SET_VALUES'
       EXPORTING
            id              = 'PO_NAME'
            values          = i_values
       EXCEPTIONS
            id_illegal_name = 1
            OTHERS          = 2.

START-OF-SELECTION.
  READ TABLE i_values INTO wa_values WITH KEY key = po_name.
  MOVE wa_values-text TO po_name.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ur code is inline with above code then check this.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In tool bar there will be 3 colored icon beside help. Click on&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;that, Options=&amp;gt;Here select the tab expert. Now check the&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;check box Show keys in all drop down lists and save.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 14:01:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-in-screen-programming/m-p/4181591#M999581</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-07-18T14:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Dropdown in Screen Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-in-screen-programming/m-p/4181592#M999582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the sample accordingly you proceed in the PBO while populating the Drop down list box fields&lt;/P&gt;&lt;P&gt;REPORT  ztest_drop_down.&lt;/P&gt;&lt;P&gt;TYPE-POOLS: vrm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: vrmval TYPE vrm_values,&lt;/P&gt;&lt;P&gt;      vmr LIKE LINE OF vrmval.&lt;/P&gt;&lt;P&gt;*data: p_menge type menge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS: p_menge AS LISTBOX VISIBLE LENGTH 10.&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;  vmr-key = '10.003'.&lt;/P&gt;&lt;P&gt;  vmr-text = '10.003'.&lt;/P&gt;&lt;P&gt;  APPEND vmr TO vrmval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  vmr-key = '16.003'.&lt;/P&gt;&lt;P&gt;  vmr-text = '16.003'.&lt;/P&gt;&lt;P&gt;  APPEND vmr TO vrmval.&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              = 'P_MENGE'&lt;/P&gt;&lt;P&gt;      values          = vrmval&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;  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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 14:13:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-in-screen-programming/m-p/4181592#M999582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T14:13:43Z</dc:date>
    </item>
  </channel>
</rss>

