<?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 list inside an ALV Grid in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-list-inside-an-alv-grid/m-p/4178425#M998854</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still have the same problem. Sorry. If you found something let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac Meléndez&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jul 2008 19:33:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-21T19:33:17Z</dc:date>
    <item>
      <title>Problem with dropdown list inside an ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-list-inside-an-alv-grid/m-p/4178418#M998847</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 have a dropdown list in a field of an ALV Grid. Before I use the method SET_TABLE_FOR_FIRST_DISPLAY, I filled the dropdown list table with some values. After that, I filled another table with the data I want to display in the ALV Grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that when I put all this together in my ALV, the dropdown list just show the Key an not the Text of the Listbox. For the dropdown list table I use the structure LVC_T_DRAL and the method like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: IT_DROPDOWN TYPE LVC_T_DRAL,
      WA_DROPDOWN TYPE LVC_S_DRAL.
  
CLEAR WA_DROPDOWN.
WA_DROPDOWN-HANDLE    = '1'.
WA_DROPDOWN-VALUE     = '000001'.
WA_DROPDOWN-INT_VALUE = 'First Option'.
APPEND WA_DROPDOWN TO IT_DROPDOWN.

CLEAR WA_DROPDOWN.
WA_DROPDOWN-HANDLE    = '1'.
WA_DROPDOWN-VALUE     = '000002'.
WA_DROPDOWN-INT_VALUE = 'Second Option'.
APPEND WA_DROPDOWN TO IT_DROPDOWN.

CALL METHOD G_GRID-&amp;gt;SET_DROP_DOWN_TABLE
  EXPORTING
    IT_DROP_DOWN_ALIAS = IT_DROPDOWN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the fields catalog I put the field of the dropdown like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;...
WA_FIELDCAT-FIELDNAME  = 'OPTION'.
WA_FIELDCAT-DRDN_HNDL  = '1'.
...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use the method SET_TABLE_FOR_FIRST_DISPLAY, it shows the data inside the dropdown list correctly, with the texts. But the selected option with the Key and not the Text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, the table that I load with the data just have one value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OPTION
------
000002&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the field of the dropdown list shows me the Key 000002 and not the Text that should be 'Second Option'. If I open the dropdown list, it shows me 'First Option' and 'Second Option', but none of this was selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somebody knows what I am doing wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac Meléndez&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 17:41:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-list-inside-an-alv-grid/m-p/4178418#M998847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T17:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with dropdown list inside an ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-list-inside-an-alv-grid/m-p/4178419#M998848</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; You need to give the handle name and values. both these fields are enough.  so the value should be populated with First option and secodng option ...not the int_value field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Kothand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 17:53:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-list-inside-an-alv-grid/m-p/4178419#M998848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T17:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with dropdown list inside an ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-list-inside-an-alv-grid/m-p/4178420#M998849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR WA_DROPDOWN.&lt;/P&gt;&lt;P&gt;WA_DROPDOWN-HANDLE    = '1'.&lt;/P&gt;&lt;P&gt;WA_DROPDOWN-VALUE     = &lt;STRONG&gt;'First Option'.&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;APPEND WA_DROPDOWN TO IT_DROPDOWN.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CLEAR WA_DROPDOWN.&lt;/P&gt;&lt;P&gt;WA_DROPDOWN-HANDLE    = '1'.&lt;/P&gt;&lt;P&gt;WA_DROPDOWN-VALUE     = &lt;STRONG&gt;'Second Option'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;APPEND WA_DROPDOWN TO IT_DROPDOWN.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CALL METHOD G_GRID-&amp;gt;SET_DROP_DOWN_TABLE&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    IT_DROP_DOWN_ALIAS = IT_DROPDOWN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Joyjit Ghosh on Jul 11, 2008 8:03 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 18:02:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-list-inside-an-alv-grid/m-p/4178420#M998849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T18:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with dropdown list inside an ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-list-inside-an-alv-grid/m-p/4178421#M998850</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; maybe this can help you as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: go_grid_ctrl TYPE REF TO cl_gui_alv_grid,


  ls_dropdown-handle = '1'.
  ls_dropdown-value = 'G'.
  APPEND ls_dropdown TO lt_dropdown.

  ls_dropdown-handle = '1'.
  ls_dropdown-value = 'H'.
  APPEND ls_dropdown TO lt_dropdown.

  ls_dropdown-handle = '1'.
  ls_dropdown-value = 'I'.
  APPEND ls_dropdown TO lt_dropdown.

  ls_dropdown-handle = '1'.
  ls_dropdown-value = 'M'.
  APPEND ls_dropdown TO lt_dropdown.

  CALL METHOD go_grid_ctrl-&amp;gt;set_drop_down_table
    EXPORTING
      it_drop_down = lt_dropdown.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 18:04:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-list-inside-an-alv-grid/m-p/4178421#M998850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T18:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with dropdown list inside an ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-list-inside-an-alv-grid/m-p/4178422#M998851</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;Thanks guys, but that do not solve my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to use an alias, because I reference the field with a key, but I want to show in the field the text that correspond to that key, like a mask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somebody have more ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac Meléndez&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 18:28:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-list-inside-an-alv-grid/m-p/4178422#M998851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T18:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with dropdown list inside an ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-list-inside-an-alv-grid/m-p/4178423#M998852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Isaac,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Maybe the form &lt;STRONG&gt;d0100_set_grid_drdn&lt;/STRONG&gt; in the program - &lt;STRONG&gt;BCALV_TEST_GRID&lt;/STRONG&gt; may help you. They used Alias in this program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Kothand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2008 18:37:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-list-inside-an-alv-grid/m-p/4178423#M998852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-11T18:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with dropdown list inside an ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-list-inside-an-alv-grid/m-p/4178424#M998853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Isaac,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any resolve on this issue? I too am having this same problem where the key field displays instead of the corresponding alias value. Unfortuantely none of the replies to this address the specific issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 17:16:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-list-inside-an-alv-grid/m-p/4178424#M998853</guid>
      <dc:creator>former_member498350</dc:creator>
      <dc:date>2008-07-21T17:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with dropdown list inside an ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-list-inside-an-alv-grid/m-p/4178425#M998854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still have the same problem. Sorry. If you found something let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac Meléndez&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 19:33:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-list-inside-an-alv-grid/m-p/4178425#M998854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T19:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with dropdown list inside an ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-list-inside-an-alv-grid/m-p/4178426#M998855</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;in your field catalog you need to set the field 'drdn_alias' to 'X', otherwise the int_value will be ignored. There is an example program 'BCALV_TEST_GRID_EDIT' that shows how to work with aliases in dropdown list boxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH, Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 12:21:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-list-inside-an-alv-grid/m-p/4178426#M998855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T12:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with dropdown list inside an ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-list-inside-an-alv-grid/m-p/4178427#M998856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Isaac,&lt;/P&gt;&lt;P&gt;I've faced the same problem and the only solution I've found for it was implementing INPUT/OUTPUT conversion routines for the required ALV field. &lt;/P&gt;&lt;P&gt;I've written quite self-explanatory article on my blog &lt;A href="http://oprsteny.com/?p=1273"&gt;oprsteny.com&lt;/A&gt; where you can check details if it's still relevant issue for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp; -- Miroslav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 08:39:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-dropdown-list-inside-an-alv-grid/m-p/4178427#M998856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-02-02T08:39:46Z</dc:date>
    </item>
  </channel>
</rss>

