<?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: QUESTION ON OPEN SQL. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-open-sql/m-p/1652004#M289604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should ensure that fields in a where clause are always supported by an index, either a primary index or a secondary index. Secondary indexes are not available for cluster tables such as BSEG or pooled tables such as configuration tables &amp;amp; match code ids. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The columns belonging to a primary index have an 'X' under "Key" in the Dictionary: Table/Strucutre: Display Fields screen (SE11). They will always be the initial columns in a table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondary indexes can be found from:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dictionary: Table/Strucutre: Display Fields screen (SE11)-&amp;gt;Indexes...Indexes for Table-&amp;gt;choose an index and press enter- this will list the fields involved with a specific secondary index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SE11 (Dictionary: Table/Strucutre: Display Fields screen)-&amp;gt;Utilities-&amp;gt;Database Utility-&amp;gt;Extras-&amp;gt;Database Object-&amp;gt;Display will list all the fields and indexes for a table. Navigate to the bottom for the indexes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://web.mit.edu/sapr3/dev/select_examples.htm" target="test_blank"&gt;http://web.mit.edu/sapr3/dev/select_examples.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Nov 2006 08:35:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-27T08:35:34Z</dc:date>
    <item>
      <title>QUESTION ON OPEN SQL.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-open-sql/m-p/1652002#M289602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how 2 use secondary index 4 data retrival in case of SELECT STATEMENT?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 07:20:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-open-sql/m-p/1652002#M289602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T07:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: QUESTION ON OPEN SQL.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-open-sql/m-p/1652003#M289603</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;chk this excellent link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/cf/21eb2d446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/cf/21eb2d446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can force the sql statement to use a particular index by using %_HINTS parameter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT carrid connid cityfrom
FROM spfli INTO (xcarrid, xconnid, xcityfrom)
WHERE carrid = 'LH ' AND cityfrom = 'FRANKFURT'
%_HINTS ORACLE 'INDEX("SPFLI" "SPFLI~001")'.
WRITE: / xcarrid, xconnid, xcityfrom.
ENDSELECT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to the SAP Note #129385 and related notes for further information&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 07:22:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-open-sql/m-p/1652003#M289603</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-11-27T07:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: QUESTION ON OPEN SQL.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-open-sql/m-p/1652004#M289604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should ensure that fields in a where clause are always supported by an index, either a primary index or a secondary index. Secondary indexes are not available for cluster tables such as BSEG or pooled tables such as configuration tables &amp;amp; match code ids. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The columns belonging to a primary index have an 'X' under "Key" in the Dictionary: Table/Strucutre: Display Fields screen (SE11). They will always be the initial columns in a table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondary indexes can be found from:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dictionary: Table/Strucutre: Display Fields screen (SE11)-&amp;gt;Indexes...Indexes for Table-&amp;gt;choose an index and press enter- this will list the fields involved with a specific secondary index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SE11 (Dictionary: Table/Strucutre: Display Fields screen)-&amp;gt;Utilities-&amp;gt;Database Utility-&amp;gt;Extras-&amp;gt;Database Object-&amp;gt;Display will list all the fields and indexes for a table. Navigate to the bottom for the indexes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://web.mit.edu/sapr3/dev/select_examples.htm" target="test_blank"&gt;http://web.mit.edu/sapr3/dev/select_examples.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 08:35:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-open-sql/m-p/1652004#M289604</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T08:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: QUESTION ON OPEN SQL.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-open-sql/m-p/1652005#M289605</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;check the below link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sap.ittoolbox.com/documents/popular-q-and-a/specifying-the-index-to-be-used-2462" target="test_blank"&gt;http://sap.ittoolbox.com/documents/popular-q-and-a/specifying-the-index-to-be-used-2462&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;chandrasekar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 09:04:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-open-sql/m-p/1652005#M289605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T09:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: QUESTION ON OPEN SQL.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-open-sql/m-p/1652006#M289606</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;check this too&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eb20446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eb20446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chandrasekar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Nov 2006 09:05:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-on-open-sql/m-p/1652006#M289606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-27T09:05:40Z</dc:date>
    </item>
  </channel>
</rss>

