<?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 drop down box in table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-box-in-table-control/m-p/3667678#M883419</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gurus ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hw to make the drop down box in table control , plz send me some code for that  .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I m waiting for that , its an urjent .&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joy Chakravorty .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 Apr 2008 05:54:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-05T05:54:29Z</dc:date>
    <item>
      <title>drop down box in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-box-in-table-control/m-p/3667678#M883419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gurus ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hw to make the drop down box in table control , plz send me some code for that  .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I m waiting for that , its an urjent .&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joy Chakravorty .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2008 05:54:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-box-in-table-control/m-p/3667678#M883419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-05T05:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: drop down box in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-box-in-table-control/m-p/3667679#M883420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Joy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this out,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have your fields in the Table control screen painter...double click on the field you need to change as drop down box...a pop up comes and there is a field called "DropDown"  -&amp;gt; select -&amp;gt;  Listbox with key&lt;/P&gt;&lt;P&gt;After that assign a function code to it.....XXXX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you need to fill the values in list box there are mutliple ways&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(1) Fixed values in domain(static method)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    If this field has fixed values in the domain created and you have defined the field used in the table control using a data element of this domain..fields will automatically come&lt;/P&gt;&lt;P&gt;For this in the domain we are using..click on the "field values"&lt;/P&gt;&lt;P&gt;tab and fill the value and the text associated with it&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(2) Dynamic values are used&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    if you are not using the static method and not filling anything in domain and need values from a specific table on a specific criteria&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the PBO write the code as follows&lt;/P&gt;&lt;P&gt;TYPE-POOLS vrm.&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;name = name of the field on the screen of table control&lt;/P&gt;&lt;P&gt;eg: ZFIELD&lt;/P&gt;&lt;P&gt;name = ZFIELD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;do your select query and fill the internal table with the fields we want....&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT  ZFIELD&lt;/P&gt;&lt;P&gt;    FROM  spfli&lt;/P&gt;&lt;P&gt;    INTO  CORRESPONDING FIELDS OF table int_spfli&lt;/P&gt;&lt;P&gt;   WHERE  carrid = demof4help-carrier2.  *do your filter here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;fill the key field of the list box from the internal table&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;if you append only the fields will be seen on screen in drop down&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at int_spfli into wa_spfli.&lt;/P&gt;&lt;P&gt;    value-key  = wa_spfli-ZFIELD.&lt;/P&gt;&lt;P&gt;    APPEND value TO list.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;this displays value on the screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;IN PAI..&lt;/P&gt;&lt;P&gt;Case sy-ucomm.&lt;/P&gt;&lt;P&gt;When  'XXXX'.&lt;/P&gt;&lt;P&gt;The field on the screen / name of the field on the screen of table control will contain what the user has selected and you can do validation of further processing accordingly,,,&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution suggested works fine..as long as the field you are selecting is a key field..if it is a non-key field..please do the statement&lt;/P&gt;&lt;P&gt;Sort the internal table&lt;/P&gt;&lt;P&gt;Delete adjacent duplicates from internal table&lt;/P&gt;&lt;P&gt;comparing the field you are displaying on the screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls check and revert&lt;/P&gt;&lt;P&gt;Reward if helpful&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>Sat, 05 Apr 2008 07:17:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/drop-down-box-in-table-control/m-p/3667679#M883420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-05T07:17:16Z</dc:date>
    </item>
  </channel>
</rss>

