<?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 window in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-window/m-p/1252081#M145259</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 get that with the Help of &amp;lt;b&amp;gt;VRM_SET_VALUES&amp;lt;/b&amp;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>Mon, 27 Mar 2006 14:14:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-27T14:14:30Z</dc:date>
    <item>
      <title>Drop-down window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-window/m-p/1252080#M145258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;In a screen with a table view I want a dropdown window, but only for a specific field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;&lt;/P&gt;&lt;P&gt;field1     field2   field 3&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;Material   Vendor   Stock&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the Vendor I need a dropdown list, where I can  choose among different vendors, for the specific material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is a 4.6 version&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2006 14:02:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-window/m-p/1252080#M145258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-27T14:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Drop-down window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-window/m-p/1252081#M145259</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 get that with the Help of &amp;lt;b&amp;gt;VRM_SET_VALUES&amp;lt;/b&amp;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>Mon, 27 Mar 2006 14:14:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-window/m-p/1252081#M145259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-27T14:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Drop-down window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-window/m-p/1252082#M145260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Materials and the vendors are tied together in inforecords and that is EINA table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2006 14:15:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-window/m-p/1252082#M145260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-27T14:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Drop-down window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-window/m-p/1252083#M145261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lars,&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: name  TYPE vrm_id,&lt;/P&gt;&lt;P&gt;      list  TYPE vrm_values,&lt;/P&gt;&lt;P&gt;      value LIKE LINE OF list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PBO for screen, set the values in the dropdown.&lt;/P&gt;&lt;P&gt;  if list[] is initial.&lt;/P&gt;&lt;P&gt;    Perform InitComboBoxes.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM InitComboBoxes.&lt;/P&gt;&lt;P&gt;  move 'Commercials' to Value-Key.&lt;/P&gt;&lt;P&gt;  move 'Commercials' to Value-Text.&lt;/P&gt;&lt;P&gt;  append value to list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  move 'Communications' to Value-Key.&lt;/P&gt;&lt;P&gt;  move 'Communications' to Value-Text.&lt;/P&gt;&lt;P&gt;  append value to list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  move 'Displays' to Value-Key.&lt;/P&gt;&lt;P&gt;  move 'Displays' to Value-Text.&lt;/P&gt;&lt;P&gt;  append value to list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  move 'Other' to Value-Key.&lt;/P&gt;&lt;P&gt;  move 'Other' to Value-Text.&lt;/P&gt;&lt;P&gt;  append value to list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  move 'Product Images' to Value-Key.&lt;/P&gt;&lt;P&gt;  move 'Product Images' to Value-Text.&lt;/P&gt;&lt;P&gt;  append value to list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  move 'Reports' to Value-Key.&lt;/P&gt;&lt;P&gt;  move 'Reports' to Value-Text.&lt;/P&gt;&lt;P&gt;  append value to list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  move 'Sell Sheets' to Value-Key.&lt;/P&gt;&lt;P&gt;  move 'Sell Sheets' to Value-Text.&lt;/P&gt;&lt;P&gt;  append value to list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  move 'Shelf Sets' to Value-Key.&lt;/P&gt;&lt;P&gt;  move 'Shelf Sets' to Value-Text.&lt;/P&gt;&lt;P&gt;  append value to list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  move 'Training' to Value-Key.&lt;/P&gt;&lt;P&gt;  move 'Training' to Value-Text.&lt;/P&gt;&lt;P&gt;  append value to list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; I_PACK_ITEMS-LOCATION  is the name of the column in the grid with the dropdown.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  move 'I_PACK_ITEMS-LOCATION' to name.&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 = list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EndForm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Screen Painter, set the Dropdown property to Listbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward points accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2006 14:17:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-window/m-p/1252083#M145261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-27T14:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Drop-down window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-window/m-p/1252084#M145262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do something like this.  In your screen flow...here imdl-dplno is a field in a table control. OPTIN_VALUE_REQUEST is a module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

process on value-request.

  field imdl-dplno module optin_value_request.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The module code.  Here I'm reading the current line where the F4 help was fired, then I can use a value from &lt;/P&gt;&lt;P&gt;another field to retrieve values for this field.  You will want to use the function module highlighted in BOLD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


************************************************************************
*      Module  optin_value_request  INPUT
************************************************************************
module optin_value_request input.

  data: begin of option_help occurs 0,
        custid     type zhp_plans-custid,
        planid     type zhp_plans-planid,
        homemod    type zhp_plans-homemod,
        planno     type zhp_options-planno,
        optionid   type zhp_options-optionid,
        optionidx  type zhp_options-optionidx,
        optdesc1   type zhp_options-optdesc1,
        end of option_help.

* Read the line of the table where user has requested F4 help
  get cursor field cursorfield line cursorline value cursorvalue.
  cursorline = ( cursorline + imdlcon-top_line ) - 1.
  read table imdl index cursorline.

* Get the values..
  clear option_help.  refresh option_help.
  select zhp_plans~custid zhp_plans~planid zhp_plans~homemod
         zhp_options~planno zhp_options~optionid
         zhp_options~optionidx zhp_options~optdesc1
                into corresponding fields of table option_help
                     from zhp_plans
                        inner join zhp_options
                           on zhp_plans~planno = zhp_options~planno
                                   where zhp_plans~custid = p_cstid
                                     and zhp_plans~planid = imdl-plnid.


  sort option_help ascending by custid planid homemod
                               planno optionid optionidx optdesc1.

  delete adjacent duplicates from option_help comparing all fields.

&amp;lt;b&amp;gt;  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
       exporting
            retfield    = 'OPTIONID'
            dynprofield = 'IMDL-DPLNO'
            dynpprog    = sy-cprog
            dynpnr      = sy-dynnr
            value_org   = 'S'
       tables
            value_tab   = option_help.&amp;lt;/b&amp;gt;

endmodule.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this example code to help you thru and make sure to get your data from the EINA table for purchase info records.&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2006 14:19:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-window/m-p/1252084#M145262</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-03-27T14:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Drop-down window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-window/m-p/1252085#M145263</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;I suppose your query is how to create dropdown box for a field in table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For that, do these steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) After you drag and drop the Table control and after you have attached a dictionary object to it, select(double click) a particular field for which you want the dropdown box to come.&lt;/P&gt;&lt;P&gt;2) In that there is a field named "Dropdown" which creates a dropdown box for the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This creates a dropdown box.Now you can write the program for loading the values of the field into the listbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope your query will get solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sylendra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2006 14:34:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-window/m-p/1252085#M145263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-27T14:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Drop-down window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-window/m-p/1252086#M145264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lars,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your issue has been resolved, please reward points accordingly and close the thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, please provide more detail of the issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2006 18:08:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-window/m-p/1252086#M145264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-27T18:08:26Z</dc:date>
    </item>
  </channel>
</rss>

