<?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: SELECT-OPTIONS sel FOR Internal Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-sel-for-internal-table/m-p/1042445#M86904</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please explain your requirement with an example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Dec 2005 16:08:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-01T16:08:39Z</dc:date>
    <item>
      <title>SELECT-OPTIONS sel FOR Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-sel-for-internal-table/m-p/1042437#M86896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to use select-options. Normally you can specify a selection tab (sel) and a row of an table being registered in the ABAP dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to use an internal table instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I read data into the internal table. Next I would refer on one column of that internal using the select-options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM database-tab INTO itab&lt;/P&gt;&lt;P&gt;WHERE key1 = 'a'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: sel FOR itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does not work, although the internal table is filled!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I use internal tables with select-options?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx, holger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 07:02:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-sel-for-internal-table/m-p/1042437#M86896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T07:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS sel FOR Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-sel-for-internal-table/m-p/1042438#M86897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;       You can only use elementary types with select-options. &lt;/P&gt;&lt;P&gt;Since your internal table is not elementary type so you can't use internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rg,&lt;/P&gt;&lt;P&gt;VM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 07:06:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-sel-for-internal-table/m-p/1042438#M86897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T07:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS sel FOR Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-sel-for-internal-table/m-p/1042439#M86898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi you can only use elementary type with ur select options&lt;/P&gt;&lt;P&gt;for eg &lt;/P&gt;&lt;P&gt;SELECT-OPTIONS s1 FOR itab-kunnr.&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;Abdul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 07:08:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-sel-for-internal-table/m-p/1042439#M86898</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2005-12-01T07:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS sel FOR Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-sel-for-internal-table/m-p/1042440#M86899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Internal Table You Cannot Use ,&lt;/P&gt;&lt;P&gt;But if you have any type of that ITAB existing in sap then I think you can use .&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>Thu, 01 Dec 2005 07:12:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-sel-for-internal-table/m-p/1042440#M86899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T07:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS sel FOR Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-sel-for-internal-table/m-p/1042441#M86900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is there any other possibility to use only specified entries of a database table for the select-options?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i wanted to use an internal table, where i read in specified entries and use that table for the select-options, but this is not possible...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggesntions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx, holger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 07:15:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-sel-for-internal-table/m-p/1042441#M86900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T07:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS sel FOR Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-sel-for-internal-table/m-p/1042442#M86901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi holger,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. i could not make out ur exact requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. from ur last post, what i understood partially&lt;/P&gt;&lt;P&gt;   (may be im wrong)&lt;/P&gt;&lt;P&gt;   that u want to use a select-option on your screen.&lt;/P&gt;&lt;P&gt;   when user wants to select some value&lt;/P&gt;&lt;P&gt;    u want to show your internal table (and not the default input field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. we can use FM&lt;/P&gt;&lt;P&gt;   F4IF_FIELD_VALUE_REQUEST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   just see the documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 08:40:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-sel-for-internal-table/m-p/1042442#M86901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T08:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS sel FOR Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-sel-for-internal-table/m-p/1042443#M86902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo Holger,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think i get it now - thanks Amit !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here's an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR matnr-low.
  SELECT matnr maktg FROM m_mat1t
  INTO CORRESPONDING FIELDS OF TABLE f4_itab
  WHERE mtart = 'DIEN'.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
            retfield     = 'MATNR'
            dynpprog     = sy-repid
            dynpnr       = sy-dynnr
            dynprofield  = 'MATNR'
            window_title = 'select material no.'
            value_org    = 'S'
       TABLES
            value_tab    = f4_itab[].&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 08:50:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-sel-for-internal-table/m-p/1042443#M86902</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-12-01T08:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS sel FOR Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-sel-for-internal-table/m-p/1042444#M86903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Holger,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want the results of your db-select (e.g. you get 5 kunnr and want this 5 entries in your field) in the select-options field, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: z_kunnr TYPE dbtab-kunnr.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS so_kunnr FOR z_kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM database-tab INTO itab&lt;/P&gt;&lt;P&gt;WHERE key1 = 'a'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into wa.&lt;/P&gt;&lt;P&gt;  so_kunnr-sign = 'I'.&lt;/P&gt;&lt;P&gt;  so_kunnr-option = 'EQ'.&lt;/P&gt;&lt;P&gt;  so_kunnr-low = wa-kunnr.&lt;/P&gt;&lt;P&gt;  APPEND so_kunnr.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you have for every selected row from the db an entry in the itab so_kunnr. If you want to select datas from a db, you can use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from db into table itab where key in so_kunnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 13:29:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-sel-for-internal-table/m-p/1042444#M86903</guid>
      <dc:creator>mathias_lange3</dc:creator>
      <dc:date>2005-12-01T13:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS sel FOR Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-sel-for-internal-table/m-p/1042445#M86904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please explain your requirement with an example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2005 16:08:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-sel-for-internal-table/m-p/1042445#M86904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-01T16:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT-OPTIONS sel FOR Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-sel-for-internal-table/m-p/1042446#M86905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Andreas&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Your example is very good i got my output.&lt;/P&gt;&lt;P&gt;my requirement was,&amp;nbsp; in output screen if u press select option field then only selected fields suppose to come for display. i created internal table did select query for that and displayed my selected field in select option F4 help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ankit Rai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 11:32:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-sel-for-internal-table/m-p/1042446#M86905</guid>
      <dc:creator>activeankit</dc:creator>
      <dc:date>2013-05-14T11:32:49Z</dc:date>
    </item>
  </channel>
</rss>

