<?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 in selection-screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-in-selection-screen/m-p/1206453#M132367</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Did you mean you have customer no as parameter on selection screen and you want only 4 values as valid input ??&lt;/P&gt;&lt;P&gt;if so you can use at selection screen on value request event that triggers when user press F4 key and than in this event you can call screen havin these four values &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Apr 2006 10:23:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-15T10:23:36Z</dc:date>
    <item>
      <title>Drop down in selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-in-selection-screen/m-p/1206451#M132365</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;suppose in the selection screen i have Customer No. and i want the result for only 4 customers like 1000, 1002, 1009, 1020. can anyone help me how to select only those in the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;swamy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Apr 2006 10:17:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-in-selection-screen/m-p/1206451#M132365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-15T10:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down in selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-in-selection-screen/m-p/1206452#M132366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Swamy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you can do that. Take a look at the usage VRM_SET_VALUES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VALUE.&lt;/P&gt;&lt;P&gt; Here you write the code and call the function, which will provide you the DROP DOWN.&lt;/P&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;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please mark the helpful answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ravikumar Allampallam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Apr 2006 10:22:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-in-selection-screen/m-p/1206452#M132366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-15T10:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down in selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-in-selection-screen/m-p/1206453#M132367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Did you mean you have customer no as parameter on selection screen and you want only 4 values as valid input ??&lt;/P&gt;&lt;P&gt;if so you can use at selection screen on value request event that triggers when user press F4 key and than in this event you can call screen havin these four values &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Apr 2006 10:23:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-in-selection-screen/m-p/1206453#M132367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-15T10:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down in selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-in-selection-screen/m-p/1206454#M132368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rashmi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u pls send me the sample code. it will be uesful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Swamy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Apr 2006 10:27:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-in-selection-screen/m-p/1206454#M132368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-15T10:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down in selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-in-selection-screen/m-p/1206455#M132369</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;Check this example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this code..&lt;/P&gt;&lt;P&gt;copy paste it and see...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZTEST_CODE_VRM.

TYPE-POOLS: VRM.

TYPES: NAME TYPE VRM_VALUE-TEXT.
DATA: V_VBELN LIKE VBAK-VBELN.
DATA: IT_VALUES TYPE STANDARD TABLE OF VRM_VALUE.
DATA: WA TYPE VRM_VALUE.
TABLES: KNA1.

SELECT-OPTIONS: S_VBELN FOR V_VBELN.
PARAMETERS: P_KUNNR AS CHECKBOX USER-COMMAND ABC.
PARAMETERS: P_CHK1 AS CHECKBOX USER-COMMAND ABC.
PARAMETERS: P_KUNNR1 TYPE NAME AS LISTBOX VISIBLE LENGTH 30.

INITIALIZATION.
  S_VBELN-LOW = '123'.
  APPEND S_VBELN.

  WA-KEY = '1'.
  WA-TEXT = 'One'.
  APPEND WA TO IT_VALUES.
  CLEAR WA.

  WA-KEY = '2'.
  WA-TEXT = 'Two'.
  APPEND WA TO IT_VALUES.
  CLEAR WA.
  READ TABLE IT_VALUES INTO WA INDEX 1.
  P_KUNNR1 = WA-KEY.
  CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
      ID              = 'P_KUNNR1'
      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.



AT SELECTION-SCREEN.
  CLEAR S_VBELN.
  REFRESH S_VBELN.
  S_VBELN-LOW = '456'.
  APPEND S_VBELN.


AT SELECTION-SCREEN ON P_KUNNR.
* This event should fire only only for parameters not for select options
  P_KUNNR = 'X'.

*
AT SELECTION-SCREEN OUTPUT.

  IF P_KUNNR = 'X'.
    P_KUNNR = ' '.
  ENDIF.
  IF P_CHK1 = ' '.
    P_CHK1 = 'X'.
  ELSE.
    P_CHK1 = ' '.
  ENDIF.&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;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Apr 2006 10:27:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-in-selection-screen/m-p/1206455#M132369</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-15T10:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down in selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-in-selection-screen/m-p/1206456#M132370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;just design one more screen having those 4 values say suppose screen no 100.&lt;/P&gt;&lt;P&gt;than in at selection-screen on value-request code like this &lt;/P&gt;&lt;P&gt;at selection-screen on value-request.&lt;/P&gt;&lt;P&gt;call screen 100 starting at x1 y1 ending at x2 y2.&lt;/P&gt;&lt;P&gt;by doing so whenever user will press F4&lt;/P&gt;&lt;P&gt;this screen will display as a window.&lt;/P&gt;&lt;P&gt;I hope you got this point&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Apr 2006 10:35:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-in-selection-screen/m-p/1206456#M132370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-15T10:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down in selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-in-selection-screen/m-p/1206457#M132371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS : VRM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : t_values type VRM_VALUES,&lt;/P&gt;&lt;P&gt;       wa_value type VRM_VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters : p_carrid type S_carrid AS LISTBOX VISIBLE LENGTH 20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh t_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_value-key = '1'.&lt;/P&gt;&lt;P&gt;wa_value-text = 'a'.&lt;/P&gt;&lt;P&gt;append wa_value to t_values.&lt;/P&gt;&lt;P&gt;clear wa_value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_value-key = '2'.&lt;/P&gt;&lt;P&gt;wa_value-text = 'B'.&lt;/P&gt;&lt;P&gt;append wa_value to t_values.&lt;/P&gt;&lt;P&gt;clear wa_value.&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_CARRID'&lt;/P&gt;&lt;P&gt;    VALUES                = t_values[].&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ID_ILLEGAL_NAME       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Apr 2006 10:41:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-in-selection-screen/m-p/1206457#M132371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-15T10:41:25Z</dc:date>
    </item>
  </channel>
</rss>

