<?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 values in ALV grid in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-values-in-alv-grid/m-p/4195983#M1002948</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;Dropdown Listbox at Column Level:- &lt;STRONG&gt;BCALV_EDIT_06&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Dropdown Listbox at Cell Level:- &lt;STRONG&gt;BCALV_EDIT_07&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have a look at given link,&lt;/P&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="6448252"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Mamta Kumari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jul 2009 10:56:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-29T10:56:01Z</dc:date>
    <item>
      <title>Drop-down values in ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-values-in-alv-grid/m-p/4195977#M1002942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using the class CL_GUI_ALV_GRID.&lt;/P&gt;&lt;P&gt;I want to create a drop-down field on a column of the grid so to show in the ALV a text but the real value saved in the internal table is a code.&lt;/P&gt;&lt;P&gt;I'm using the method SET_DROP_DOWN_TABLE using the table parameter IT_DROP_DOWN_ALIAS: the structure of this table contains two fields, VALUE and INT_VALUE, used to contain, respectively, the value to be saved in the internal table and the text to be showed in the ALV.&lt;/P&gt;&lt;P&gt;When the drop-down is select the text is showed but after a refresh of the ALV the text is substituted by the internal value.&lt;/P&gt;&lt;P&gt;Is there a way to always show the text value and not the internal value of the drop-down ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Antonino Musciumarra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jul 2008 15:38:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-values-in-alv-grid/m-p/4195977#M1002942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-12T15:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Drop-down values in ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-values-in-alv-grid/m-p/4195978#M1002943</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;      Did you happen to find a solution to this problem? I am,too, facing this issue and seeking a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 06:00:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-values-in-alv-grid/m-p/4195978#M1002943</guid>
      <dc:creator>suhaskrishna_sondur</dc:creator>
      <dc:date>2008-07-21T06:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Drop-down values in ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-values-in-alv-grid/m-p/4195979#M1002944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the sample programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;BCALV_EDIT_06
BCALV_EDIT_07&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They are very simple to understand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 07:01:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-values-in-alv-grid/m-p/4195979#M1002944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T07:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Drop-down values in ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-values-in-alv-grid/m-p/4195980#M1002945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     The programs you mentioned use the "value" field directly. In my case, the value field will be the value that would be stored in DB but the value I want to display on the ALV screen is different. Hope you are understanding the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2008 11:38:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-values-in-alv-grid/m-p/4195980#M1002945</guid>
      <dc:creator>suhaskrishna_sondur</dc:creator>
      <dc:date>2008-08-11T11:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Drop-down values in ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-values-in-alv-grid/m-p/4195981#M1002946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can have option to Display different values outside(Alias) and Internal values inside.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of populating the IT_DROP_DOWN table populate alias table IT_DROP_DOWN_ALIAS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     LS_DRAL-HANDLE = '1'.&lt;/P&gt;&lt;P&gt;      LS_DRAL-VALUE =  'ALIASVALUE'.&lt;/P&gt;&lt;P&gt;      LS_DRAL-INT_VALUE =  'INTERNALVALUE'.&lt;/P&gt;&lt;P&gt;    APPEND LS_DRAL TO LT_DRAL.&lt;/P&gt;&lt;P&gt;Ex:-&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LS_DRAL-HANDLE = '1'.
      LS_DRAL-VALUE =  'Kilogram'.
      LS_DRAL-INT_VALUE =  'KG'.
    APPEND LS_DRAL TO LT_DRAL.

  CALL METHOD G_GRID-&amp;gt;SET_DROP_DOWN_TABLE
    EXPORTING
      IT_DROP_DOWN_ALIAS = LT_DRAL.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the fieldcatalog  for the Drop down field.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;X_FIELDCAT-DRDN_HNDL = '1'.
  X_FIELDCAT-DRDN_ALIAS = 'X'. "&amp;lt;---Important.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2008 12:29:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-values-in-alv-grid/m-p/4195981#M1002946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-11T12:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Drop-down values in ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-values-in-alv-grid/m-p/4195982#M1002947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same problem! I specified all required parameters, and the int_values are displayed in the drop-down list, but after a refresh the code values are displayed! Does anyone have a solution to this issue?&lt;/P&gt;&lt;P&gt;Thanks in advance and best regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 08:35:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-values-in-alv-grid/m-p/4195982#M1002947</guid>
      <dc:creator>frederick_dufour</dc:creator>
      <dc:date>2009-07-29T08:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Drop-down values in ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-values-in-alv-grid/m-p/4195983#M1002948</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;Dropdown Listbox at Column Level:- &lt;STRONG&gt;BCALV_EDIT_06&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Dropdown Listbox at Cell Level:- &lt;STRONG&gt;BCALV_EDIT_07&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have a look at given link,&lt;/P&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="6448252"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Mamta Kumari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 10:56:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-values-in-alv-grid/m-p/4195983#M1002948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-29T10:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Drop-down values in ALV grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-values-in-alv-grid/m-p/4195984#M1002949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bit of a late reply I know, but I had the same issue and could not find the answer in SDN, so here is what I did to solve this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the ALV grid I used in the Field catalogue field CONVEXIT to set a conversion exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created the conversion exit by copying CONVERSION_EXIT_ALV3_OUPUT and _INPUT to my own Z version (for example CONVERSION_EXIT_ZXXXX_OUPUT and _INPUT). Please note ZXXXX should be a maximum of 5 characters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Input function CONVERSION_EXIT_ZXXXX_INPUT&amp;nbsp; I coded as OUTPUT = INPUT. No other code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the output function CONVERSION_EXIT_ZXXXX_OUPUT I get the description from the INPUT value from a text table and set this as the output. e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;OUTPUT =&amp;nbsp; INPUT.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;SELECT SINGLE BEZEI FROM ZTEXTTABLE &lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;INTO OUTPUT &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; WHERE SPRAS = SY-LANGU &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp; AND ZZCODE = INPUT.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As mentioned, in the fieldcat (in your program) I then use field CONVEXIT to call the conversion exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ls_fieldcat-drdn_hndl =&lt;/SPAN&gt; '1'.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ls_fieldcat-output_len =&lt;/SPAN&gt; '35'.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ls_fieldcat-drdn_alias =&lt;/SPAN&gt; 'X'.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;ls_fieldcat-convexit =&lt;/SPAN&gt; 'ZXXXX'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will result in the ALV grid displaying descriptions instead of internal values and when selecting from the drop downs in edit mode, the description remains after a refresh. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Mar 2013 23:36:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-values-in-alv-grid/m-p/4195984#M1002949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-03-17T23:36:33Z</dc:date>
    </item>
  </channel>
</rss>

