<?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: INDEX in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3338289#M800236</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Understand My QUERY plz!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Feb 2008 05:18:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-01T05:18:14Z</dc:date>
    <item>
      <title>INDEX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3338285#M800232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Plz find my SELECT query below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select    w~mandt&lt;/P&gt;&lt;P&gt;                w&lt;SUB&gt;vbeln  w&lt;/SUB&gt;posnr  w&lt;SUB&gt;meins w&lt;/SUB&gt;matnr w&lt;SUB&gt;werks  w&lt;/SUB&gt;netwr&lt;/P&gt;&lt;P&gt;                w&lt;SUB&gt;kwmeng w&lt;/SUB&gt;vrkme  w&lt;SUB&gt;matwa  w&lt;/SUB&gt;charg w~pstyv&lt;/P&gt;&lt;P&gt;                w&lt;SUB&gt;posar  w&lt;/SUB&gt;prodh  w&lt;SUB&gt;grkor  w&lt;/SUB&gt;antlf  w&lt;SUB&gt;kztlf w&lt;/SUB&gt;lprio&lt;/P&gt;&lt;P&gt;                w&lt;SUB&gt;vstel  w&lt;/SUB&gt;route  w&lt;SUB&gt;umvkz  w&lt;/SUB&gt;umvkn  w&lt;SUB&gt;abgru w&lt;/SUB&gt;untto&lt;/P&gt;&lt;P&gt;                w&lt;SUB&gt;awahr  w&lt;/SUB&gt;erdat  w&lt;SUB&gt;erzet  w&lt;/SUB&gt;fixmg  w&lt;SUB&gt;prctr  w&lt;/SUB&gt;vpmat&lt;/P&gt;&lt;P&gt;                w&lt;SUB&gt;vpwrk  w&lt;/SUB&gt;mvgr1  w&lt;SUB&gt;mvgr2  w&lt;/SUB&gt;mvgr3  w&lt;SUB&gt;mvgr4  w&lt;/SUB&gt;mvgr5&lt;/P&gt;&lt;P&gt;                                           w&lt;SUB&gt;bedae w&lt;/SUB&gt;cuobj w~mtvfp&lt;/P&gt;&lt;P&gt;                x&lt;SUB&gt;etenr x&lt;/SUB&gt;wmeng x&lt;SUB&gt;bmeng   x&lt;/SUB&gt;ettyp  x&lt;SUB&gt;wepos  x&lt;/SUB&gt;abart&lt;/P&gt;&lt;P&gt;                                                            x~edatu&lt;/P&gt;&lt;P&gt;                x&lt;SUB&gt;tddat x&lt;/SUB&gt;mbdat   x&lt;SUB&gt;lddat  x&lt;/SUB&gt;wadat  x&lt;SUB&gt;abruf x&lt;/SUB&gt;etart&lt;/P&gt;&lt;P&gt;                x~ezeit&lt;/P&gt;&lt;P&gt;                into table t_vbap&lt;/P&gt;&lt;P&gt;               from  vbap as w&lt;/P&gt;&lt;P&gt;                       inner join vbep as x on x&lt;SUB&gt;vbeln = w&lt;/SUB&gt;vbeln and&lt;/P&gt;&lt;P&gt;                                               x&lt;SUB&gt;posnr = w&lt;/SUB&gt;posnr and&lt;/P&gt;&lt;P&gt;                                               x&lt;SUB&gt;mandt = w&lt;/SUB&gt;mandt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         for all entries in t_vbak&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         where&lt;/P&gt;&lt;P&gt;                       w~vbeln in s_ordno and&lt;/P&gt;&lt;P&gt;                       w~vbeln = t_vbak-vbeln and&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           ( ( w&lt;SUB&gt;erdat &amp;gt; pre_dat ) and ( w&lt;/SUB&gt;erdat &amp;lt;= w_date  ) ) and&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;            ( ( ( erdat &amp;gt; pre_dat  and  erdat &amp;lt; p_syndt ) or&lt;/P&gt;&lt;P&gt;            ( erdat = p_syndt and erzet &amp;lt;= p_syntm ) ) ) and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                       w~matnr in s_matnr and&lt;/P&gt;&lt;P&gt;                       w~pstyv in s_itmcat and&lt;/P&gt;&lt;P&gt;                       w~lfrel in s_lfrel and&lt;/P&gt;&lt;P&gt;                       w~abgru = '  ' and&lt;/P&gt;&lt;P&gt;                       w~kwmeng &amp;gt; 0   and&lt;/P&gt;&lt;P&gt;                       w~mtvfp in w_mtvfp  and&lt;/P&gt;&lt;P&gt;                       x~ettyp in w_ettyp  and&lt;/P&gt;&lt;P&gt;                       x~bdart in s_req_tp and&lt;/P&gt;&lt;P&gt;                       x~plart in s_pln_tp and&lt;/P&gt;&lt;P&gt;                       x~etart in s_etart and&lt;/P&gt;&lt;P&gt;                       x~abart in s_abart and&lt;/P&gt;&lt;P&gt;                       ( ( x&lt;SUB&gt;lifsp in s_lifsp ) or ( x&lt;/SUB&gt;lifsp = ' ' ) ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Could u please suggest an Index that can reduce the DB Access time for the above Query?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;On what fields I should specify the Index&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2008 05:01:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3338285#M800232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-01T05:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: INDEX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3338286#M800233</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 u have check the where contion without primary key u may create index. that is called the secondary index. &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;S.Nehru.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2008 05:04:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3338286#M800233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-01T05:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: INDEX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3338287#M800234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;instead of using joins between vbap and vbep &lt;/P&gt;&lt;P&gt;fecth VBAP entries for all the selected entries in VBAK &lt;/P&gt;&lt;P&gt;and then fecth VBEP entries for all the selected entires in VBAP. Then club both vbap and vbep entires into single internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2008 05:14:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3338287#M800234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-01T05:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: INDEX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3338288#M800235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Understand My QUERY plz!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2008 05:17:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3338288#M800235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-01T05:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: INDEX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3338289#M800236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Understand My QUERY plz!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2008 05:18:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3338289#M800236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-01T05:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: INDEX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3338290#M800237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No useful answers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 08:50:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3338290#M800237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T08:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: INDEX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3338291#M800238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that your VBAP table is w in the query.&lt;/P&gt;&lt;P&gt;Now try creating a secondary index for VBAP.&lt;/P&gt;&lt;P&gt;Go to se11 and create index for VBAP in the order of your query. This will surely speed up DB access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On what fields I should specify the Index?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maintain the same query sequence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: rohitaash sharma on Feb 6, 2008 9:56 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2008 08:56:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/index/m-p/3338291#M800238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-06T08:56:08Z</dc:date>
    </item>
  </channel>
</rss>

