<?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 Reg: Drop Down in Input enabled ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-drop-down-in-input-enabled-alv/m-p/2988391#M705771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.  I created a Drop down list box for the Field vendor ( LIFNR ).&lt;/P&gt;&lt;P&gt;2. This List box contains the Vendor as well as the Vendor Description concatenated into one value.&lt;/P&gt;&lt;P&gt;3. Now when I select a value from the Drop DOwn List Box I want to get only the Vendor value into the field but not the Description .&lt;/P&gt;&lt;P&gt;4. Can anyone tell me how to acheive this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. My present code is as follows :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************************************&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;*********************************************************************************
*&amp;amp; Form        : set_drdn_table                                                  *
*&amp;amp; Description : Prepare the DropDown List for the Vendor          *
*&amp;amp;*********************************************************************************
FORM set_drdn_table .

  DATA: lt_dropdown TYPE lvc_t_drop,
        ls_dropdown TYPE lvc_s_drop.

  DATA: lt_f4 TYPE lvc_t_f4 WITH HEADER LINE.

  CLEAR lwa_lifnr.
* Populate the DD List Box with the Lifnr and Description values
  LOOP AT lt_lifnr INTO lwa_lifnr.
    ls_dropdown-handle = '1'.
    CONCATENATE lwa_lifnr-lifnr lwa_lifnr-description INTO ls_dropdown-value SEPARATED BY space.
    APPEND ls_dropdown TO lt_dropdown.
    CLEAR: ls_dropdown.
  ENDLOOP.

  CLEAR lt_f4.
  lt_f4-fieldname  = 'LIFNR'.
  lt_f4-register   = 'X'.
  lt_f4-chngeafter = 'X'.
  APPEND lt_f4.

* Call the Method and set the Dropo Down Table
  CALL METHOD gr_alvgrid-&amp;gt;set_drop_down_table
    EXPORTING
      it_drop_down = lt_dropdown.

ENDFORM.                    " set_drdn_table &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**************************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepu.K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Nov 2007 09:30:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-09T09:30:28Z</dc:date>
    <item>
      <title>Reg: Drop Down in Input enabled ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-drop-down-in-input-enabled-alv/m-p/2988391#M705771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.  I created a Drop down list box for the Field vendor ( LIFNR ).&lt;/P&gt;&lt;P&gt;2. This List box contains the Vendor as well as the Vendor Description concatenated into one value.&lt;/P&gt;&lt;P&gt;3. Now when I select a value from the Drop DOwn List Box I want to get only the Vendor value into the field but not the Description .&lt;/P&gt;&lt;P&gt;4. Can anyone tell me how to acheive this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. My present code is as follows :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************************************&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;*********************************************************************************
*&amp;amp; Form        : set_drdn_table                                                  *
*&amp;amp; Description : Prepare the DropDown List for the Vendor          *
*&amp;amp;*********************************************************************************
FORM set_drdn_table .

  DATA: lt_dropdown TYPE lvc_t_drop,
        ls_dropdown TYPE lvc_s_drop.

  DATA: lt_f4 TYPE lvc_t_f4 WITH HEADER LINE.

  CLEAR lwa_lifnr.
* Populate the DD List Box with the Lifnr and Description values
  LOOP AT lt_lifnr INTO lwa_lifnr.
    ls_dropdown-handle = '1'.
    CONCATENATE lwa_lifnr-lifnr lwa_lifnr-description INTO ls_dropdown-value SEPARATED BY space.
    APPEND ls_dropdown TO lt_dropdown.
    CLEAR: ls_dropdown.
  ENDLOOP.

  CLEAR lt_f4.
  lt_f4-fieldname  = 'LIFNR'.
  lt_f4-register   = 'X'.
  lt_f4-chngeafter = 'X'.
  APPEND lt_f4.

* Call the Method and set the Dropo Down Table
  CALL METHOD gr_alvgrid-&amp;gt;set_drop_down_table
    EXPORTING
      it_drop_down = lt_dropdown.

ENDFORM.                    " set_drdn_table &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**************************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepu.K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2007 09:30:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-drop-down-in-input-enabled-alv/m-p/2988391#M705771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-09T09:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Drop Down in Input enabled ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-drop-down-in-input-enabled-alv/m-p/2988392#M705772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This following code should work..try this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA : lif_des TYPE char30 VALUE 'ABCD100 Glass company London',
       lif_des2 TYPE char30,
       lifnr TYPE char18.

DATA : delim VALUE space.


lif_des2 = lif_des.
SHIFT lif_des UP TO delim.
REPLACE FIRST OCCURRENCE OF lif_des IN lif_des2
                                      WITH ' '.
CONDENSE lif_des2.
lifnr = lif_des2.
WRITE :/ lifnr.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2007 10:30:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-drop-down-in-input-enabled-alv/m-p/2988392#M705772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-09T10:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Drop Down in Input enabled ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-drop-down-in-input-enabled-alv/m-p/2988393#M705773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sudhakar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         May be I have to Write the code what u have specified in one of the Method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Qn was, which method shud I use for manipulating the values of a drop down list box ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepu.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2007 10:34:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-drop-down-in-input-enabled-alv/m-p/2988393#M705773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-09T10:34:39Z</dc:date>
    </item>
  </channel>
</rss>

