<?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: Dropdown in module pool screen. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dropdown-in-module-pool-screen/m-p/3405891#M817934</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;first write this in screen's flow logic after PAI...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS ON VALUE-REQUEST.&lt;/P&gt;&lt;P&gt;  FIELD ifmtp-form_type MODULE fm_drop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MODULE fm_drop INPUT.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR ifmtp.&lt;/P&gt;&lt;P&gt;  REFRESH ifmtp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ifmtp-form_type = 'C'.&lt;/P&gt;&lt;P&gt;  APPEND ifmtp.&lt;/P&gt;&lt;P&gt;  ifmtp-form_type = 'F'.&lt;/P&gt;&lt;P&gt;  APPEND ifmtp.&lt;/P&gt;&lt;P&gt;  ifmtp-form_type = 'H'.&lt;/P&gt;&lt;P&gt;  APPEND ifmtp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      retfield  = 'FORM_TYPE'&lt;/P&gt;&lt;P&gt;      value_org = 'S'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      value_tab = ifmtp.&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;&lt;STRONG&gt;ENDMODULE.                 " fm_drop  INPUT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here &lt;STRONG&gt;ifmtp-form_type&lt;/STRONG&gt; is my field which i have declared as listbox....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my dexlaration in TOP Module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF ifmtp OCCURS 0,&lt;/P&gt;&lt;P&gt;          form_type LIKE zform_track_mast-form_type,&lt;/P&gt;&lt;P&gt;       END OF ifmtp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if usefull......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Feb 2008 11:00:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-11T11:00:28Z</dc:date>
    <item>
      <title>Dropdown in module pool screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dropdown-in-module-pool-screen/m-p/3405886#M817929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have taken text box on the screen and assigned dropdown option to it.&lt;/P&gt;&lt;P&gt;Now in drop down i want to give two values (Yes, No).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how the values are assigned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me with code if possible.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have your points.!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2008 09:44:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dropdown-in-module-pool-screen/m-p/3405886#M817929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-11T09:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dropdown in module pool screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dropdown-in-module-pool-screen/m-p/3405887#M817930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Here is the example code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ZLIST.

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.

START-OF-SELECTION.
WRITE: / 'PARAMETER:', PS_PARM..&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;[http://sap.niraj.tripod.com/id38.html]&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2008 09:49:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dropdown-in-module-pool-screen/m-p/3405887#M817930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-11T09:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dropdown in module pool screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dropdown-in-module-pool-screen/m-p/3405888#M817931</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 the code in RSDEMO_DROPDOWN_LISTBOX program and u will find how to set the values in a list box. The same functionality can be written in u'r module pool program to set the values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if its useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2008 09:51:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dropdown-in-module-pool-screen/m-p/3405888#M817931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-11T09:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dropdown in module pool screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dropdown-in-module-pool-screen/m-p/3405889#M817932</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;In your report declare &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOL : VRM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ws_name   TYPE vrm_id,&lt;/P&gt;&lt;P&gt;      ws_list   TYPE vrm_values,&lt;/P&gt;&lt;P&gt;      ws_value  LIKE LINE OF ws_list,&lt;/P&gt;&lt;P&gt;      ws_name2   TYPE vrm_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under PBO  event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ws_value-key  = '1'.&lt;/P&gt;&lt;P&gt;ws_value-text = 'YES'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND ws_value TO ws_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ws_value-key  = '2'.&lt;/P&gt;&lt;P&gt;  ws_value-text = 'NO'.&lt;/P&gt;&lt;P&gt;  APPEND ws_value TO ws_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ws_name = your list box field name .&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              = ws_name&lt;/P&gt;&lt;P&gt;            values          = ws_list&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;&lt;/P&gt;&lt;P&gt;Don't forget to reward if useful....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2008 09:51:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dropdown-in-module-pool-screen/m-p/3405889#M817932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-11T09:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dropdown in module pool screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dropdown-in-module-pool-screen/m-p/3405890#M817933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the flow logiv under POV.* &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;process on value-request.&lt;/P&gt;&lt;P&gt;field wa_scr1-auart module create_dropdown_box1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the code under the above mentioned module * &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module create_dropdown_box1 input.&lt;/P&gt;&lt;P&gt;select distinct auart into corresponding fields of table it_auart from TVAK.&lt;/P&gt;&lt;P&gt;sort it_auart by auart.&lt;/P&gt;&lt;P&gt;call function 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;retfield = 'AUART'&lt;/P&gt;&lt;P&gt;value_org = 'S'&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;value_tab = it_auart&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;parameter_error = 1&lt;/P&gt;&lt;P&gt;no_values_found = 2&lt;/P&gt;&lt;P&gt;others = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc 0. &lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;endmodule. " CREATE_DROPDOWN_BOX1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declaration of the it_auart. * &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of t_auart,&lt;/P&gt;&lt;P&gt;auart type auart,&lt;/P&gt;&lt;P&gt;end of t_auart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_auart type standard table of t_auart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What actually this code is doing is that we are declaring a module "create_dropdown_box1" under POV.&lt;/P&gt;&lt;P&gt;Whenever we do that ,the POV is triggered at PBO and the module is executed.&lt;/P&gt;&lt;P&gt;On the execution of the module,the function 'F4IF_INT_TABLE_VALUE_REQUEST' populates the drop-down with the values in the internal table it_auart here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2008 09:52:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dropdown-in-module-pool-screen/m-p/3405890#M817933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-11T09:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dropdown in module pool screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dropdown-in-module-pool-screen/m-p/3405891#M817934</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;first write this in screen's flow logic after PAI...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS ON VALUE-REQUEST.&lt;/P&gt;&lt;P&gt;  FIELD ifmtp-form_type MODULE fm_drop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MODULE fm_drop INPUT.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR ifmtp.&lt;/P&gt;&lt;P&gt;  REFRESH ifmtp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ifmtp-form_type = 'C'.&lt;/P&gt;&lt;P&gt;  APPEND ifmtp.&lt;/P&gt;&lt;P&gt;  ifmtp-form_type = 'F'.&lt;/P&gt;&lt;P&gt;  APPEND ifmtp.&lt;/P&gt;&lt;P&gt;  ifmtp-form_type = 'H'.&lt;/P&gt;&lt;P&gt;  APPEND ifmtp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      retfield  = 'FORM_TYPE'&lt;/P&gt;&lt;P&gt;      value_org = 'S'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      value_tab = ifmtp.&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;&lt;STRONG&gt;ENDMODULE.                 " fm_drop  INPUT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here &lt;STRONG&gt;ifmtp-form_type&lt;/STRONG&gt; is my field which i have declared as listbox....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my dexlaration in TOP Module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF ifmtp OCCURS 0,&lt;/P&gt;&lt;P&gt;          form_type LIKE zform_track_mast-form_type,&lt;/P&gt;&lt;P&gt;       END OF ifmtp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if usefull......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2008 11:00:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dropdown-in-module-pool-screen/m-p/3405891#M817934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-11T11:00:28Z</dc:date>
    </item>
  </channel>
</rss>

