<?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 list in Screen. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534414#M575019</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the below programs to fill the field with a valid listbox value, for example, in this program, I am building the listbox in the program and just assign P_FIELD a valid value from internal table'ivrm_values' . Create screen 100 and create a field call P_FIELD, make sure to select "ListBox" from the DropDown Field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report zdrop_list_0001.&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: p_field(20) type c.&lt;/P&gt;&lt;P&gt;data: ivrm_values type vrm_values.&lt;/P&gt;&lt;P&gt;data: xvrm_values like line of ivrm_values.&lt;/P&gt;&lt;P&gt;data: name type vrm_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set default value, before calling the screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;p_field = 'DEF'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call screen 100.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Module STATUS_0100 OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module status_0100 output.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SET PF-STATUS 'xxxxxxxx'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SET TITLEBAR 'xxx'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;name = 'P_FIELD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xvrm_values-key = 'ABC'.&lt;/P&gt;&lt;P&gt;xvrm_values-text = 'ABC'.&lt;/P&gt;&lt;P&gt;append xvrm_values to ivrm_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xvrm_values-key = 'DEF'.&lt;/P&gt;&lt;P&gt;xvrm_values-text = 'DEF'.&lt;/P&gt;&lt;P&gt;append xvrm_values to ivrm_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xvrm_values-key = 'GHI'.&lt;/P&gt;&lt;P&gt;xvrm_values-text = 'GHI'.&lt;/P&gt;&lt;P&gt;append xvrm_values to ivrm_values.&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 = name&lt;/P&gt;&lt;P&gt;values = ivrm_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule. " STATUS_0100 OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Module USER_COMMAND_0100 INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module user_command_0100 input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule. " USER_COMMAND_0100 INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points to all useful answers.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SaiRam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2007 07:10:53 GMT</pubDate>
    <dc:creator>former_member196280</dc:creator>
    <dc:date>2007-07-18T07:10:53Z</dc:date>
    <item>
      <title>Drop down list in Screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534408#M575013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a requirement where i have to select material no from mara and populate in the drop down list based on the mtart entered in a text box. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have written follwong code but F4 key doesnt fetch any value is enter is not pressed.&lt;/P&gt;&lt;P&gt;screen has got 2 fields.&lt;/P&gt;&lt;P&gt;T_MAT_TYP  - Inpu/output field&lt;/P&gt;&lt;P&gt;MARA-MATNR - list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;  MODULE status_0100.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;  MODULE user_command_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS ON VALUE-REQUEST.&lt;/P&gt;&lt;P&gt;  FIELD mara-matnr MODULE generate_mat_drop_down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE generate_mat_drop_down INPUT.&lt;/P&gt;&lt;P&gt;  IF NOT t_mat_typ IS INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT matnr mtart FROM mara INTO TABLE itab_mara&lt;/P&gt;&lt;P&gt;    WHERE mtart = t_mat_typ.&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        = 'MATNR'&lt;/P&gt;&lt;P&gt;        value_org       = 'S'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        value_tab       = itab_mara&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;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      ...&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " generate_mat_drop_down  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;request you help me..&lt;/P&gt;&lt;P&gt;Thankx in advance&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 07:02:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534408#M575013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T07:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list in Screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534409#M575014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     You can use it in the process on value request.It will help you to fetch the values as per your wish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 07:05:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534409#M575014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T07:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list in Screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534410#M575015</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;Use FM VRM_SET_VALUES &lt;/P&gt;&lt;P&gt;Chck&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/ab012.htm" target="test_blank"&gt;http://www.sap-img.com/ab012.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;REWARDS IF USEFUL,&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;SWATI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 07:05:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534410#M575015</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T07:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list in Screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534411#M575016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Debug and see whether the values are coming into internal table itab_mara from MARA?&lt;/P&gt;&lt;P&gt;I doubt it. check&lt;/P&gt;&lt;P&gt;see the sample doc for this type of requirement&lt;/P&gt;&lt;P&gt;For F4 Values on Screen:&lt;/P&gt;&lt;P&gt;PROCESS ON VALUE_REQUEST &lt;/P&gt;&lt;P&gt;using module call starting with FIELD i.e FIELD field MODULE module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are number of function modules that can be used for the purpose, but these&lt;/P&gt;&lt;P&gt;can fullfill the task easily or combination of them. &lt;/P&gt;&lt;P&gt;DYNP_VALUE_READ&lt;/P&gt;&lt;P&gt;F4IF_FIELD_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;F4IF_INT_TABLE_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;POPUP_WITH_TABLE_DISPLAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DYNP_VALUE_READ&lt;/P&gt;&lt;P&gt;This function module is used to read values in the screen fields. Use of this &lt;/P&gt;&lt;P&gt;FM causes forced transfer of data from screen fields to ABAP fields.&lt;/P&gt;&lt;P&gt;There are 3 exporting parameters &lt;/P&gt;&lt;P&gt;DYNAME = program name = SY-CPROG&lt;/P&gt;&lt;P&gt;DYNUMB = Screen number = SY-DYNNR&lt;/P&gt;&lt;P&gt;TRANSLATE_TO_UPPER = 'X'&lt;/P&gt;&lt;P&gt;and one importing TABLE parameter &lt;/P&gt;&lt;P&gt;DYNPFIELDS = Table of TYPE DYNPREAD&lt;/P&gt;&lt;P&gt;The DYNPFIELDS parameter is used to pass internal table of type DYNPREAD&lt;/P&gt;&lt;P&gt;to this FM and the values read from the screen will be stored in this table.This&lt;/P&gt;&lt;P&gt;table consists of two fields:&lt;/P&gt;&lt;P&gt;FIELDNAME : Used to pass the name of screen field for which the value is to&lt;/P&gt;&lt;P&gt;be read.&lt;/P&gt;&lt;P&gt;FIELDVALUE : Used to read the value of the field in the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;DATA: SCREEN_VALUES TYPE TABLE OF DYNPREAD ,&lt;/P&gt;&lt;P&gt;SCREEN_VALUE LIKE LINE OF SCREEN_VALUES. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SCREEN_VALUE-FIELDNAME = 'KUNNR' . * Field to be read&lt;/P&gt;&lt;P&gt;APPEND SCREEN_VALUE TO SCREEN_VALUES. * Fill the table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;DYNAME = SY-CPROG&lt;/P&gt;&lt;P&gt;DYNUMB = SY-DYNNR&lt;/P&gt;&lt;P&gt;TRANSLATE_TO_UPPER = 'X'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;DYNPFIELDS = SCREEN_VALUES.&lt;/P&gt;&lt;P&gt;READ TABLE SCREEN_VALUES INDEX 1 INTO SCREEN_VALUE.Now the screen value for field KUNNR is in the SCREEN_VALUE-FIELDVALUE and can be used for further processing like using it to fill the internal table to be used as parameter in F4IF_INT_TABLE_VALUE_REQUEST ETC. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F4IF_FIELD_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;This FM is used to display value help or input from ABAP dictionary.We have to pass the name of the structure or table(TABNAME) along with the field name(FIELDNAME) . The selection can be returned to the specified screen field if three&lt;/P&gt;&lt;P&gt;parameters DYNPNR,DYNPPROG,DYNPROFIELD are also specified or to a table if RETRN_TAB is specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;TABNAME = table/structure&lt;/P&gt;&lt;P&gt;FIELDNAME = 'field name'&lt;/P&gt;&lt;P&gt;DYNPPROG = SY-CPROG&lt;/P&gt;&lt;P&gt;DYNPNR = SY-DYNR&lt;/P&gt;&lt;P&gt;DYNPROFIELD = 'screen field'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;RETURN_TAB = table of type DYNPREAD&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F4IF_INT_TABLE_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;This FM is used to dsiplay values stored in an internal table as input&lt;/P&gt;&lt;P&gt;help.This FM is used to program our own custom help if no such input help&lt;/P&gt;&lt;P&gt;exists in ABAP dictionary for a particular field. The parameter VALUE_TAB is used to pass the internal table containing input values.The parameter RETFIELD&lt;/P&gt;&lt;P&gt;is used to specify the internal table field whose value will be returned to the screen field or RETURN_TAB. &lt;/P&gt;&lt;P&gt;If DYNPNR,DYNPPROG and DYNPROFIELD are specified than the user selection is passed to the screen field specified in the DYNPROFIELD. If RETURN_TAB is specified the selectionis returned in a table.&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 = field from int table whose value will be returned &lt;/P&gt;&lt;P&gt;DYNPPROG = SY-CPROG&lt;/P&gt;&lt;P&gt;DYNPNR = SY-DYNNR&lt;/P&gt;&lt;P&gt;DYNPROFIELD = 'screen field'&lt;/P&gt;&lt;P&gt;VALUE_ORG = 'S'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;VALUE_TAB = internal table whose values will be shown.&lt;/P&gt;&lt;P&gt;RETURN_TAB = internal table of type DDSHRETVAL &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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POPUP_WITH_TABLE_DISPLAY&lt;/P&gt;&lt;P&gt;This FM is used to display the contents of an internal table in a popup window.The user can select a row and the index of that is returned in the CHOISE&lt;/P&gt;&lt;P&gt;parameter.The VALUETAB is used to pass the internal table.&lt;/P&gt;&lt;P&gt;A suitable title can be set using TITLETEXT parameter. The starting and end position of the popup can be specified by the parameters STARTPOS_COL / ROW and ENDPOS_ROW / COL .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;ENDPOS_COL = &lt;/P&gt;&lt;P&gt;ENDPOS_ROW = &lt;/P&gt;&lt;P&gt;STARTPOS_COL = &lt;/P&gt;&lt;P&gt;STARTPOS_ROW = &lt;/P&gt;&lt;P&gt;TITLETEXT = 'title text'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;CHOISE = &lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;VALUETAB = &lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;BREAK_OFF = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: w_choice TYPE SY-TABIX.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF i_values OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;values TYPE I,&lt;/P&gt;&lt;P&gt;END OF i_values.&lt;/P&gt;&lt;P&gt;PARAMETRS : id TYPE I. &lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_values-values = '0001'.&lt;/P&gt;&lt;P&gt;APPEND i_values.&lt;/P&gt;&lt;P&gt;i_values-values = '0002'.&lt;/P&gt;&lt;P&gt;APPEND i_values.&lt;/P&gt;&lt;P&gt;i_values-values = '0003'.&lt;/P&gt;&lt;P&gt;APPEND i_values.&lt;/P&gt;&lt;P&gt;i_values-values = '0004'.&lt;/P&gt;&lt;P&gt;APPEND i_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY' &lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;ENDPOS_COL = 40 &lt;/P&gt;&lt;P&gt;ENDPOS_ROW = 12 &lt;/P&gt;&lt;P&gt;STARTPOS_COL = 20 &lt;/P&gt;&lt;P&gt;STARTPOS_ROW = 5 &lt;/P&gt;&lt;P&gt;TITLETEXT = 'Select an ID' &lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;CHOISE = w_choice &lt;/P&gt;&lt;P&gt;TABLES &lt;/P&gt;&lt;P&gt;VALUETAB = i_values &lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;BREAK_OFF = 1 &lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;CHECK w_choice &amp;gt; 0.&lt;/P&gt;&lt;P&gt;READ TABLE i_values INDEX w_choice....now we can process the selection as it is contained&lt;/P&gt;&lt;P&gt;...in the structure i_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other FM that may be used to provide input help is HELP_START .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points for useful Answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 07:07:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534411#M575016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T07:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list in Screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534412#M575017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give Return Tabv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA t_1 LIKE ddshretval OCCURS 0 WITH HEADER LINE..&lt;/P&gt;&lt;P&gt;&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DDIC_STRUCTURE         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      retfield               = 'KWMENG'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PVALKEY                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DYNPPROG               = SY-&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DYNPNR                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DYNPROFIELD            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  STEPL                  = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WINDOW_TITLE           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VALUE                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     value_org              = 'S'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MULTIPLE_CHOICE        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DISPLAY                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALLBACK_PROGRAM       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALLBACK_FORM          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MARK_TAB               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  USER_RESET             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      value_tab              = ITAB&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FIELD_TAB              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     return_tab             = t_1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DYNPFLD_MAPPING        =&lt;/P&gt;&lt;/LI&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;  PARAMETER_ERROR        = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_VALUES_FOUND        = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                 = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    T_MAT-KWMENG = t_1-fieldval.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 07:07:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534412#M575017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T07:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list in Screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534413#M575018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vivek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;fill your table.&lt;/P&gt;&lt;P&gt;SELECT matnr mtart FROM mara INTO TABLE itab_mara.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT_SELECTION_SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF  T_MAT_TYP is not initial.&lt;/P&gt;&lt;P&gt;DELETE from itab_mara WHERE mtart &amp;lt;&amp;gt; T_MAT_TYP .&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Azad.&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 07:08:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534413#M575018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T07:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list in Screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534414#M575019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the below programs to fill the field with a valid listbox value, for example, in this program, I am building the listbox in the program and just assign P_FIELD a valid value from internal table'ivrm_values' . Create screen 100 and create a field call P_FIELD, make sure to select "ListBox" from the DropDown Field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report zdrop_list_0001.&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: p_field(20) type c.&lt;/P&gt;&lt;P&gt;data: ivrm_values type vrm_values.&lt;/P&gt;&lt;P&gt;data: xvrm_values like line of ivrm_values.&lt;/P&gt;&lt;P&gt;data: name type vrm_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set default value, before calling the screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;p_field = 'DEF'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call screen 100.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Module STATUS_0100 OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module status_0100 output.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SET PF-STATUS 'xxxxxxxx'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SET TITLEBAR 'xxx'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;name = 'P_FIELD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xvrm_values-key = 'ABC'.&lt;/P&gt;&lt;P&gt;xvrm_values-text = 'ABC'.&lt;/P&gt;&lt;P&gt;append xvrm_values to ivrm_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xvrm_values-key = 'DEF'.&lt;/P&gt;&lt;P&gt;xvrm_values-text = 'DEF'.&lt;/P&gt;&lt;P&gt;append xvrm_values to ivrm_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xvrm_values-key = 'GHI'.&lt;/P&gt;&lt;P&gt;xvrm_values-text = 'GHI'.&lt;/P&gt;&lt;P&gt;append xvrm_values to ivrm_values.&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 = name&lt;/P&gt;&lt;P&gt;values = ivrm_values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule. " STATUS_0100 OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Module USER_COMMAND_0100 INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module user_command_0100 input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule. " USER_COMMAND_0100 INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points to all useful answers.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SaiRam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 07:10:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534414#M575019</guid>
      <dc:creator>former_member196280</dc:creator>
      <dc:date>2007-07-18T07:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list in Screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534415#M575020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for the first time when the screen is loaded the mtart field is initial. so the the selection doesnt fetch any data. that is correct. but when i press F4 the program should fetch values from mara on basis of value entered in Mtart. after activating debug when i press F4 nothing is triggered. please tell me where i am wrong.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 07:29:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534415#M575020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T07:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list in Screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534416#M575021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Vivek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection screen event. when you press f4 before calling that function module.&lt;/P&gt;&lt;P&gt;fill your table based on mtype.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then pass it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should work man.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Azad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 07:32:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534416#M575021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T07:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list in Screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534417#M575022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;when i am pressing F4 nothing is getting trigerred. I want the data fetch should happen when i press F4. please tell me where i am wrong.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 07:44:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534417#M575022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T07:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list in Screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534418#M575023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vivek,&lt;/P&gt;&lt;P&gt;               Can you tell me when you press f4 for the material,the module &amp;lt;b&amp;gt;generate_mat_drop_down&amp;lt;/b&amp;gt; which you are created is not at all called in debugging mode or not?. If it called,but there is no values in itab,then you have to use 'DYNP_VALUES_READ' statement to read the  t_mat_typ value in screen.Then only the latest value in the screen for this field will come in  t_mat_typ variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the followin code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA:BEGIN OF  itab OCCURS 0,&lt;/P&gt;&lt;P&gt;  matnr TYPE  marc-matnr,&lt;/P&gt;&lt;P&gt;  END OF itab.&lt;/P&gt;&lt;P&gt;  DATA: it_ret LIKE	TABLE OF ddshretval WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA:it_dyfld LIKE TABLE OF dynpread WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  it_dyfld-fieldname = 'P_WERKS'.&lt;/P&gt;&lt;P&gt;  APPEND it_dyfld.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'DYNP_VALUES_READ'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      dyname     = sy-repid&lt;/P&gt;&lt;P&gt;      dynumb     = sy-dynnr&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      dynpfields = it_dyfld.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE it_dyfld INDEX 1.&lt;/P&gt;&lt;P&gt;  p_werks = it_dyfld-fieldvalue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT matnr&lt;/P&gt;&lt;P&gt;FROM marc&lt;/P&gt;&lt;P&gt;INTO TABLE itab WHERE werks = p_werks  .&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        = 'ITAB'&lt;/P&gt;&lt;P&gt;      dynpprog        = sy-repid&lt;/P&gt;&lt;P&gt;      dynpnr          = sy-dynnr&lt;/P&gt;&lt;P&gt;      dynprofield     = 'P_MATNR'&lt;/P&gt;&lt;P&gt;      value_org       = 'S'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      value_tab       = itab&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     return_tab	=      it_ret&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 08:02:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534418#M575023</guid>
      <dc:creator>former_member491305</dc:creator>
      <dc:date>2007-07-18T08:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list in Screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534419#M575024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijneswaran,&lt;/P&gt;&lt;P&gt;The module &amp;lt;b&amp;gt;generate_mat_drop_down &amp;lt;/b&amp;gt; is not at all called in the debugging mode when i press F4.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 08:39:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534419#M575024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T08:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list in Screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534420#M575025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   May be you might have given incorrect field name in screen.Just make sure that both screen field name(MARA-MATNR) and variable name(MARA-MATNR) which you have declared should be same.Otherwise this module will not trigger.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 08:52:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534420#M575025</guid>
      <dc:creator>former_member491305</dc:creator>
      <dc:date>2007-07-18T08:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list in Screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534421#M575026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used same field name as in the screen still it is not getting triggered,&lt;/P&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 09:30:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534421#M575026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T09:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list in Screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534422#M575027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;kwmeng like vbap-kwmeng,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt; DATA t_1 LIKE ddshretval OCCURS 0 WITH HEADER LINE..&lt;/P&gt;&lt;P&gt;refresh itab.&lt;/P&gt;&lt;P&gt;clear itab.&lt;/P&gt;&lt;P&gt;refresh t_1.&lt;/P&gt;&lt;P&gt;clear t_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-kwmeng = '1'.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;itab-kwmeng = '2'.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-kwmeng = '3'.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-kwmeng = '4'.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DDIC_STRUCTURE         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      retfield               = 'KWMENG'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PVALKEY                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DYNPPROG               = SY-&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DYNPNR                 = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DYNPROFIELD            = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  STEPL                  = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WINDOW_TITLE           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VALUE                  = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     value_org              = 'S'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MULTIPLE_CHOICE        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DISPLAY                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALLBACK_PROGRAM       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALLBACK_FORM          = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MARK_TAB               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  USER_RESET             =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      value_tab              = ITAB&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FIELD_TAB              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;lt;b&amp;gt;     return_tab             = t_1&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DYNPFLD_MAPPING        =&lt;/P&gt;&lt;/LI&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;  PARAMETER_ERROR        = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_VALUES_FOUND        = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                 = 3&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    T_MAT-KWMENG = t_1-fieldval.&lt;/P&gt;&lt;P&gt;  ENDIF.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 09:35:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534422#M575027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T09:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list in Screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534423#M575028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Sumi,&lt;/P&gt;&lt;P&gt;my problem is that once F4 is pressed no code is getting activated.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 09:40:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534423#M575028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T09:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list in Screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534424#M575029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vivek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont give it as list box.If it is a list box then that module will trigger only when some event is triggered  say 'Enter' or any othe function code(not for F4 or F1).So instead of giving it as list box  just leave it as normat i/o field.Then it will work.If you still want listbox,Then you have to press 'ENTER' every time, after you have entered material type to see the updated search help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 09:51:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534424#M575029</guid>
      <dc:creator>former_member491305</dc:creator>
      <dc:date>2007-07-18T09:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list in Screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534425#M575030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Call the code in a PROCESS ON VALUE REQUEST module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not in PROCESS AFTER INPUT module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you want this to execute after F4 you need to assign a module of type Process on value request for this field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS ON VALUE-REQUEST.&lt;/P&gt;&lt;P&gt;  FIELD CARRIER MODULE VALUE_CARRIER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE value_carrier INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            tabname     = 'DEMOF4HELP'&lt;/P&gt;&lt;P&gt;            fieldname   = 'CARRIER1'&lt;/P&gt;&lt;P&gt;            dynpprog    = progname&lt;/P&gt;&lt;P&gt;            dynpnr      = dynnum&lt;/P&gt;&lt;P&gt;            dynprofield = 'CARRIER'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 09:55:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534425#M575030</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-07-18T09:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Drop down list in Screen.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534426#M575031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx&lt;/P&gt;&lt;P&gt;Changing List box to Input/output&lt;/P&gt;&lt;P&gt;worked.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 10:22:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-list-in-screen/m-p/2534426#M575031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T10:22:18Z</dc:date>
    </item>
  </channel>
</rss>

