<?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: module pool table control drop down list in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-table-control-drop-down-list/m-p/3635640#M875573</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;&lt;STRONG&gt;Follow these steps.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;.Go to T.Code SE51 and Select Laypout for the Screen.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;.Double click on the field for which u want Dropdown box.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;.Then U will see Name ,Text ,DROPDOWN.Click on that and select List Box or ListBox with key . Better to to select first one.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4&lt;/STRONG&gt;.Save and Activate ur screen .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;5&lt;/STRONG&gt;.Enter the following piece of code in the PBO of the screen.(Change for ur &lt;/P&gt;&lt;P&gt;   requirement).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following logic needs to be written under PBO of the screen logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS :vrm.&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  i_natio TYPE vrm_values, "--&amp;gt;Table that is passed through FM vrm_set_values&lt;/P&gt;&lt;P&gt;  w_natio LIKE LINE OF i_natio.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: &lt;/P&gt;&lt;P&gt;BEGIN OF i_t005t OCCURS 0,&lt;/P&gt;&lt;P&gt;    land1 TYPE t005t-land1,&lt;/P&gt;&lt;P&gt;    natio TYPE t005t-natio,&lt;/P&gt;&lt;P&gt;END OF i_t005t.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF i_t005t[] IS INITIAL.&lt;/P&gt;&lt;P&gt;  SELECT land1 natio&lt;/P&gt;&lt;P&gt;     FROM t005t&lt;/P&gt;&lt;P&gt;       INTO TABLE i_t005t&lt;/P&gt;&lt;P&gt;   WHERE spras = sy-langu.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  LOOP AT i_t005t .&lt;/P&gt;&lt;P&gt;      w_natio-key = i_t005t-land1.&lt;/P&gt;&lt;P&gt;      w_natio-text = i_t005t-natio.&lt;/P&gt;&lt;P&gt;      APPEND w_natio TO i_natio.&lt;/P&gt;&lt;P&gt;      CLEAR w_natio.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&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 = 'I_IT0002-NATIO' "--&amp;gt;Field for which dropdown is needed.&lt;/P&gt;&lt;P&gt;                values = i_natio&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;   id_illegal_name = 1&lt;/P&gt;&lt;P&gt;            OTHERS = 2.&lt;/P&gt;&lt;P&gt;IF sy-subrc  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;&lt;/P&gt;&lt;P&gt;Make it as per ur requirement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Apr 2008 05:07:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-09T05:07:48Z</dc:date>
    <item>
      <title>module pool table control drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-table-control-drop-down-list/m-p/3635639#M875572</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; please can u provide the drop down list procedure for doing i have some 12 predefine reasons  and other is their if user select others options users can enter their own reasons &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding&lt;/P&gt;&lt;P&gt;anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 04:44:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-table-control-drop-down-list/m-p/3635639#M875572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T04:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: module pool table control drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-table-control-drop-down-list/m-p/3635640#M875573</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;&lt;STRONG&gt;Follow these steps.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;.Go to T.Code SE51 and Select Laypout for the Screen.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;.Double click on the field for which u want Dropdown box.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3&lt;/STRONG&gt;.Then U will see Name ,Text ,DROPDOWN.Click on that and select List Box or ListBox with key . Better to to select first one.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4&lt;/STRONG&gt;.Save and Activate ur screen .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;5&lt;/STRONG&gt;.Enter the following piece of code in the PBO of the screen.(Change for ur &lt;/P&gt;&lt;P&gt;   requirement).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following logic needs to be written under PBO of the screen logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS :vrm.&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  i_natio TYPE vrm_values, "--&amp;gt;Table that is passed through FM vrm_set_values&lt;/P&gt;&lt;P&gt;  w_natio LIKE LINE OF i_natio.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: &lt;/P&gt;&lt;P&gt;BEGIN OF i_t005t OCCURS 0,&lt;/P&gt;&lt;P&gt;    land1 TYPE t005t-land1,&lt;/P&gt;&lt;P&gt;    natio TYPE t005t-natio,&lt;/P&gt;&lt;P&gt;END OF i_t005t.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF i_t005t[] IS INITIAL.&lt;/P&gt;&lt;P&gt;  SELECT land1 natio&lt;/P&gt;&lt;P&gt;     FROM t005t&lt;/P&gt;&lt;P&gt;       INTO TABLE i_t005t&lt;/P&gt;&lt;P&gt;   WHERE spras = sy-langu.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  LOOP AT i_t005t .&lt;/P&gt;&lt;P&gt;      w_natio-key = i_t005t-land1.&lt;/P&gt;&lt;P&gt;      w_natio-text = i_t005t-natio.&lt;/P&gt;&lt;P&gt;      APPEND w_natio TO i_natio.&lt;/P&gt;&lt;P&gt;      CLEAR w_natio.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&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 = 'I_IT0002-NATIO' "--&amp;gt;Field for which dropdown is needed.&lt;/P&gt;&lt;P&gt;                values = i_natio&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;   id_illegal_name = 1&lt;/P&gt;&lt;P&gt;            OTHERS = 2.&lt;/P&gt;&lt;P&gt;IF sy-subrc  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;&lt;/P&gt;&lt;P&gt;Make it as per ur requirement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 05:07:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-table-control-drop-down-list/m-p/3635640#M875573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T05:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: module pool table control drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-table-control-drop-down-list/m-p/3635641#M875574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;
&lt;STRONG&gt;To get Drop Drown Box on screen .&lt;/STRONG&gt;

1.Go to T.Code SE51 and Select Laypout for the Screen.
2.Double click on the field for which u want Dropdown box.
3.Then U will see Name ,Text ,DROPDOWN.Click on that and select List Box  
    or ListBox with key . Better to to select first one.
4.Save and Activate ur screen .
5.Enter the following piece of code in the PBO of the screen.(Change for ur 
   requirement).
&lt;STRONG&gt;To get Drop Drown Box on Selection-screen for parameter.&lt;/STRONG&gt; 
1.define parameter.
   PARAMETERS: p_drop type pernr-pernr as listbox.
2.Write down the following code under the event 
   AT SELCTION-SCREEN OUTPUT.

&lt;PRE&gt;&lt;CODE&gt;TYPE-POOLS :vrm.
DATA:
  i_natio TYPE vrm_values, "--&amp;gt;Table that is passed through FM vrm_set_values
  w_natio LIKE LINE OF i_natio.
 
DATA: 
BEGIN OF i_t005t OCCURS 0,
    land1 TYPE t005t-land1,
    natio TYPE t005t-natio,
END OF i_t005t.

IF i_t005t[] IS INITIAL.
  SELECT land1 natio
     FROM t005t
       INTO TABLE i_t005t
   WHERE spras = sy-langu.
  IF sy-subrc = 0.
  LOOP AT i_t005t .
      w_natio-key = i_t005t-land1.
      w_natio-text = i_t005t-natio.
      APPEND w_natio TO i_natio.
      CLEAR w_natio.
  ENDLOOP.
  ENDIF.
ENDIF.

CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
                       id = 'I_IT0002-NATIO' "--&amp;gt;Field for which dropdown is needed.
                values = i_natio
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.&lt;/CODE&gt;&lt;/PRE&gt; 

6.Observe the above code and change as for ur requirement.

Regards,
Venkat.O
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 06:29:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-table-control-drop-down-list/m-p/3635641#M875574</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2008-04-09T06:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: module pool table control drop down list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-table-control-drop-down-list/m-p/3635642#M875575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the prdefined values in the drop down directly if they are defined in "Values" tab of the domain and then by declaring the table control table field as a type of the domain...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise as suggested above you can bring values to the screen with the function module vrm values if it is from a source like a table .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user needs to add a custom value in the dropdown..then a different functionality is to be considered..ie..we use drop down so that users cannot select extra other than those provided by us..&lt;/P&gt;&lt;P&gt;ie..if 1,2,3 ,4 are there in dropdown..user cannot enter 5 in dropdown.....if user wants 5 then it should be added manually to the domain values for the first case of it should be entered elsewhere maybe a table,internal table or another field on the same screen so that the vrm values function module can be used to display on the screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so if there is an option like (1,2,3,4,others) are there in the drop down and  when user selects "others"(we can do that by assigning function code to the drop down field in the screen painter) ...then an extra field can be shown where he can enter the remarks.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 06:37:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/module-pool-table-control-drop-down-list/m-p/3635642#M875575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T06:37:55Z</dc:date>
    </item>
  </channel>
</rss>

