<?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 Make a SELECT statement using an INDEX in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-a-select-statement-using-an-index/m-p/6521475#M1425181</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 need to read data from LTAP, using an index that i've in table structure.&lt;/P&gt;&lt;P&gt;i've M,V and Z1 index and i need to use 'Z1' at this particulary SELECT. How can i do this ? ...it's the first time that i've to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jan 2010 13:29:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-21T13:29:32Z</dc:date>
    <item>
      <title>Make a SELECT statement using an INDEX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-a-select-statement-using-an-index/m-p/6521475#M1425181</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 need to read data from LTAP, using an index that i've in table structure.&lt;/P&gt;&lt;P&gt;i've M,V and Z1 index and i need to use 'Z1' at this particulary SELECT. How can i do this ? ...it's the first time that i've to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 13:29:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-a-select-statement-using-an-index/m-p/6521475#M1425181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T13:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Make a SELECT statement using an INDEX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-a-select-statement-using-an-index/m-p/6521476#M1425182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Are you sure that your query is written correctly in order to use your index? Generally, databases use the correct index if the query is correct too!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  But if you really want to force an index, you have to use database hints. For example, for Oracle database, you will have something like this :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * FROM ltap
  %_HINTS ORACLE 'INDEX("LTAP", "LTAP~Z1")'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Samuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 13:59:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-a-select-statement-using-an-index/m-p/6521476#M1425182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T13:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Make a SELECT statement using an INDEX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-a-select-statement-using-an-index/m-p/6521477#M1425183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a database hint is the last choice, you should write your WHERE-.clause and design your index in such a way, that the optimzer chooses the correct index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy your WHERE clause and show the available indexes including statistics.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 14:26:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-a-select-statement-using-an-index/m-p/6521477#M1425183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T14:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Make a SELECT statement using an INDEX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-a-select-statement-using-an-index/m-p/6521478#M1425184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I've this at select stament&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  SELECT tanum vbeln matnr vlpla nsola ndifa posnr tapos APPENDING&lt;/P&gt;&lt;P&gt;CORRESPONDING&lt;/P&gt;&lt;P&gt;       FIELDS OF TABLE lt_ltap  FROM ltap&lt;/P&gt;&lt;P&gt;      WHERE lgnum EQ l_lgnum AND&lt;/P&gt;&lt;P&gt;            vbeln EQ lt_aux-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this index at table structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M index&lt;/P&gt;&lt;P&gt;MANDT&lt;/P&gt;&lt;P&gt;LGNUM&lt;/P&gt;&lt;P&gt;PQUIT&lt;/P&gt;&lt;P&gt;MATNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V Index&lt;/P&gt;&lt;P&gt;MANDT&lt;/P&gt;&lt;P&gt;LGNUM&lt;/P&gt;&lt;P&gt;PQUIT&lt;/P&gt;&lt;P&gt;VLTYP&lt;/P&gt;&lt;P&gt;VLPLA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Z1 Index&lt;/P&gt;&lt;P&gt;MANDT&lt;/P&gt;&lt;P&gt;VBELN&lt;/P&gt;&lt;P&gt;POSNR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 14:34:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-a-select-statement-using-an-index/m-p/6521478#M1425184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T14:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Make a SELECT statement using an INDEX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-a-select-statement-using-an-index/m-p/6521479#M1425185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is your database, check system, status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you run an SQL Trace, (tcode ST05) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does the explain for this statement show?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simple test, use SE16 (table data), type in lgnum und vbeln (first get existing numbers),&lt;/P&gt;&lt;P&gt;open in other mode ST05, start, ... stop when finished, display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check for OPEN line for this table and show 'explain'. Search which index is mentioned (I can hardly say more as there&lt;/P&gt;&lt;P&gt;six different databases with very different explains).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 14:41:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-a-select-statement-using-an-index/m-p/6521479#M1425185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T14:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Make a SELECT statement using an INDEX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/make-a-select-statement-using-an-index/m-p/6521480#M1425186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I've made what you said and my report are using correct index (Z1). I'm going analyze my ABAP, trying to find my performance problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 15:00:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/make-a-select-statement-using-an-index/m-p/6521480#M1425186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T15:00:53Z</dc:date>
    </item>
  </channel>
</rss>

