<?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: Listbox for Select Option in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-option/m-p/6675360#M1448673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shankar,&lt;/P&gt;&lt;P&gt;thank you for your answer. It solved my first problem but not completely. If i dont enter a parameter now I get no records. But I want to have all data records if i dont type any parameters in. How does this work?&lt;/P&gt;&lt;P&gt;Thank you &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT 1: I did a second select. Now i can look after problem 2 ;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT 2: I think SELECT_OPTIONS_RESTRICT is not the right way to solve problem 2. It restricts intervals etc. and I use intervals. any other idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT 3: Okay guys I solved the problem. Instead of select options I build parameters. Then I worked with Concatenate and condense so there is no problem anymore.&lt;/P&gt;&lt;P&gt;Thanks &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: markok on Feb 25, 2010 2:32 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Feb 2010 09:23:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-25T09:23:41Z</dc:date>
    <item>
      <title>Listbox for Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-option/m-p/6675355#M1448668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;i've got two questions. &lt;/P&gt;&lt;P&gt;My first question is: How can I bind a listbox in a select option?? I created the listbox and bind it in a dynpro field ( [Look here|http://f.imagehost.org/download/0895/problem123] ). Not so difficult ;). But now i want to bind it in this select option field ([Look here|http://f.imagehost.org/download/0214/problem124] ). Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second question: Is there an easy way to disable the * function in a select option? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is an example phrase. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i want to find "example" in this phrase i have to type in my select field "* example *" but i want that you have to type "example" only. Is there an easy way to handle this?&lt;/P&gt;&lt;P&gt;Thank you very much guys &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2010 07:22:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-option/m-p/6675355#M1448668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-25T07:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox for Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-option/m-p/6675356#M1448669</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;Try the followind code. It will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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.

PARAMETERS: ps_parm(10) AS LISTBOX VISIBLE LENGTH 10.

AT SELECTION-SCREEN OUTPUT.
  name = 'PS_PARM'.
  value-key = '1'.
  value-text = 'Line 1'.
  APPEND value TO list.
  value-key = '2'.
  value-text = 'Line 2'.
  APPEND value TO list.
  CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING id     = name
              values = list.

AT SELECTION-SCREEN ON PS_PARM.

IF PS_PARM EQ ''.
MESSAGE 'SELECT ANY ONE OPTION IN PS_PARM' TYPE 'E'.
ENDIF.

START-OF-SELECTION.
  Write: / 'Selected options'.
  WRITE: / 'List box1:', ps_parm.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shankar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2010 07:56:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-option/m-p/6675356#M1448669</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-25T07:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox for Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-option/m-p/6675357#M1448670</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;PRE&gt;&lt;CODE&gt;&lt;P&gt;My first question is: How can I bind a listbox in a select option?? I created the listbox and bind it in a dynpro field ( Look here ). Not so difficult ;). But now i want to bind it in this select option field (Look here ). Any idea? &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I donot think you can bind the Listbox to a select-option. Alternatively try building your internal table for F4 values &amp;amp; use the FM: F4IF_INT_TABLE_VALUE_REQUEST to provide the F4 help. In your START-OF-SELECTION you can check if the values enter in the SELECT-OPTION matches that in your internal table. Hope i am clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Is there an easy way to disable the * function in a select option? &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can achieve this using the FM: SELECT_OPTIONS_RESTRICT. Search SDN or read the FM documentation for details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2010 08:03:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-option/m-p/6675357#M1448670</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-02-25T08:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox for Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-option/m-p/6675358#M1448671</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 can put listbox in select-options using this sample code.  &lt;/P&gt;&lt;P&gt;This drill down don't work with extension.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.
   IF SCREEN-NAME(8) = 'SO_MERKM'    "Your variable name
       MOVE '1' TO SCREEN-VALUES_IN_COMBO. " Drilldown List allow
  ENDIF.
   MODIFY SCREEN.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in Initizialisation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECTION-SCREEN BEGIN OF BLOCK B08 WITH FRAME TITLE TEXT-B08.
* Master Inspection Characteristics
SELECT-OPTIONS SO_MERKM FOR QAMV-VERWMERKM               MEMORY ID PMK.
SELECTION-SCREEN END OF BLOCK B08.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
INITIALIZATION.
  PERFORM SET_VALUE_MERKM USING 'SO_MERKM-LOW'.
  PERFORM SET_VALUE_MERKM USING 'SO_MERKM-HIGH'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM SET_VALUE_MERKM  USING    VALUE(I_ID)  TYPE  VRM_ID.

  DATA IT_VALUES TYPE  VRM_VALUES.

  REFRESH IT_VALUES.

* get value to populate drill down list
  SELECT MKMNR    AS KEY
         KURZTEXT AS TEXT
    INTO CORRESPONDING FIELDS OF TABLE IT_VALUES
    FROM V_QPMK
    WHERE ZAEHLER IN SO_WERK
      AND SPRACHE EQ SY-LANGU
    ORDER BY KURZTEXT.

* call function to populate field
  CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
      ID              = I_ID
      VALUES          = IT_VALUES
    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.

ENDFORM.                    " SET_VALUE_MERKM
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2010 08:18:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-option/m-p/6675358#M1448671</guid>
      <dc:creator>StMou</dc:creator>
      <dc:date>2010-02-25T08:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox for Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-option/m-p/6675359#M1448672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Stephane,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this !!! Nice piece of info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2010 08:21:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-option/m-p/6675359#M1448672</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-02-25T08:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox for Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-option/m-p/6675360#M1448673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shankar,&lt;/P&gt;&lt;P&gt;thank you for your answer. It solved my first problem but not completely. If i dont enter a parameter now I get no records. But I want to have all data records if i dont type any parameters in. How does this work?&lt;/P&gt;&lt;P&gt;Thank you &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT 1: I did a second select. Now i can look after problem 2 ;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT 2: I think SELECT_OPTIONS_RESTRICT is not the right way to solve problem 2. It restricts intervals etc. and I use intervals. any other idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT 3: Okay guys I solved the problem. Instead of select options I build parameters. Then I worked with Concatenate and condense so there is no problem anymore.&lt;/P&gt;&lt;P&gt;Thanks &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: markok on Feb 25, 2010 2:32 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2010 09:23:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-option/m-p/6675360#M1448673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-25T09:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Listbox for Select Option</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-option/m-p/6675361#M1448674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank for your answer &lt;SPAN style="color: #333333; font-size: 12px;"&gt;Stephane&lt;/SPAN&gt;, it works&amp;nbsp; perfectly for me. Because in my case, I need to use select-options, not parameters&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 16:31:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/listbox-for-select-option/m-p/6675361#M1448674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-23T16:31:49Z</dc:date>
    </item>
  </channel>
</rss>

