<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3737856#M899597</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;If you are using a field name in select-options,then it has no independent existance hence we need to declare it with respect to a table( hence we do tablename-field and so we declare with keyword "tables"..)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using a domain,data element of the field then you will not require the declaration "tables"&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>Wed, 23 Apr 2008 09:25:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-23T09:25:27Z</dc:date>
    <item>
      <title>select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3737849#M899590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for select-options whether we have to give table names in TABLES statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i dont give table names it is showing error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 09:15:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3737849#M899590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T09:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3737850#M899591</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;For some fields you need to declare tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: t247.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: s_month for t247-mnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Velangini Showry Maria Kumar Bandanadham on Apr 23, 2008 11:18 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 09:17:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3737850#M899591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T09:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3737851#M899592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The FOR statement requires a reference. You will need to specify a table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you could do something like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: w_matnr type matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options s_matnr for w_matnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 09:18:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3737851#M899592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T09:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3737852#M899593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You use the statement SELECT-OPTIONS &amp;lt;seltab&amp;gt; for &amp;lt;f&amp;gt; to declare a selection table in the program that is linked to the &amp;lt;f&amp;gt; column of a database table, or to an internal &amp;lt;f&amp;gt; field in the program*. A selection table is an internal table object of the standard table type that has a standard key and a header line. Selection tables are used to store complex selections using a standardized procedure. They can be used in several ways. Their main purpose is to directly translate the selection criteria into database selections using the WHERE addition in Open SQL statements. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The basic form of the SELECT-OPTIONS statement is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS &amp;lt;seltab&amp;gt; FOR &amp;lt;f&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It declares a selection criterion &amp;lt;seltab&amp;gt; that is linked to a field &amp;lt;f&amp;gt; that has already been declared locally in the program. The names of selection criteria are currently restricted to eight characters. Valid data types of &amp;lt;f&amp;gt; include all elementary ABAP types except data type F. You cannot use data type F, references and aggregate types. If you want to use the selection criterion to restrict database selections, it is a good idea to declare &amp;lt;f&amp;gt; with reference to a column of the corresponding database table. It then inherits all of the attributes of the data type already defined in the ABAP Dictionary. In particular, the field help (F1) and the possible entries help (F4) defined for these fields in the Dictionary are available to the user on the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details have a look at below link.&lt;/P&gt;&lt;P&gt;[Selection Criteria|http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba74635c111d1829f0000e829fbfe/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vibha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark all the useful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 09:18:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3737852#M899593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T09:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3737853#M899594</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;for select-options must give tables statement, other wise it showing error.&lt;/P&gt;&lt;P&gt;if u use tables it creats default work area so it is performance issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, u do like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare a variable of that data type, and use in that select-option declaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex &lt;/P&gt;&lt;P&gt;data v_matnr type matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-option material for v_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;chandu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 09:19:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3737853#M899594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T09:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3737854#M899595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tables: ekko.&lt;/P&gt;&lt;P&gt;select-options:&lt;/P&gt;&lt;P&gt;  s_ebeln for ekko-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;data:ebeln like ekko-ebeln.&lt;/P&gt;&lt;P&gt;select-options:&lt;/P&gt;&lt;P&gt;  s_ebeln for ebeln.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 09:22:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3737854#M899595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T09:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3737855#M899596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it should have either&lt;/P&gt;&lt;P&gt;tables:mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options:matnr for mara-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA spfli_wa TYPE spfli. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS s_carrid FOR spfli_wa-carrid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * &lt;/P&gt;&lt;P&gt;       FROM spfli &lt;/P&gt;&lt;P&gt;       INTO spfli_wa &lt;/P&gt;&lt;P&gt;       WHERE carrid IN s_carrid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDSELECT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 09:23:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3737855#M899596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T09:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: select-options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3737856#M899597</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;If you are using a field name in select-options,then it has no independent existance hence we need to declare it with respect to a table( hence we do tablename-field and so we declare with keyword "tables"..)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using a domain,data element of the field then you will not require the declaration "tables"&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>Wed, 23 Apr 2008 09:25:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options/m-p/3737856#M899597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T09:25:27Z</dc:date>
    </item>
  </channel>
</rss>

