<?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 taking more time when selecting data fromVBRP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-taking-more-time-when-selecting-data-fromvbrp/m-p/632752#M26593</link>
    <description>&lt;P&gt;Dear Vidhya,&lt;/P&gt;
  &lt;P&gt;Try this,&lt;/P&gt;
  &lt;P&gt;Data: zimp_mat type zimport_matnr-matnr. &lt;/P&gt;
  &lt;P&gt;SELECT fkimg matnr werks edatu&lt;/P&gt;
  &lt;P&gt;FROM vbrp&lt;BR /&gt;INTO TABLE gt_vbrp&lt;BR /&gt;FOR ALL ENTRIES IN zimport_matnr&lt;BR /&gt;WHERE matnr = zimp_mat&lt;/P&gt;
  &lt;P&gt;AND edatu &amp;gt;= zstart_edatu&lt;BR /&gt;AND edatu &amp;lt;= zend_edatu&lt;BR /&gt;AND fkimg &amp;gt; 0.&lt;/P&gt;</description>
    <pubDate>Thu, 03 May 2018 11:52:01 GMT</pubDate>
    <dc:creator>gaurav09</dc:creator>
    <dc:date>2018-05-03T11:52:01Z</dc:date>
    <item>
      <title>Select taking more time when selecting data fromVBRP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-taking-more-time-when-selecting-data-fromvbrp/m-p/632749#M26590</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Below query is taking more time.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;SELECT fkimg matnr werks edatu&lt;BR /&gt; FROM vbrp&lt;BR /&gt; INTO TABLE gt_vbrp&lt;BR /&gt; FOR ALL ENTRIES IN zimport_matnr&lt;BR /&gt; WHERE matnr = zimport_matnr-matnr&lt;BR /&gt; AND edatu &amp;gt;= zstart_edatu&lt;BR /&gt; AND edatu &amp;lt;= zend_edatu&lt;BR /&gt; AND fkimg &amp;gt; 0.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Can someone help in getting time reduced for the above query.&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 06:51:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-taking-more-time-when-selecting-data-fromvbrp/m-p/632749#M26590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-05-03T06:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Select taking more time when selecting data fromVBRP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-taking-more-time-when-selecting-data-fromvbrp/m-p/632750#M26591</link>
      <description>&lt;P&gt;Are you Interested in single records or multiple records?&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 09:16:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-taking-more-time-when-selecting-data-fromvbrp/m-p/632750#M26591</guid>
      <dc:creator>gaurav09</dc:creator>
      <dc:date>2018-05-03T09:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Select taking more time when selecting data fromVBRP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-taking-more-time-when-selecting-data-fromvbrp/m-p/632751#M26592</link>
      <description>&lt;P&gt;We are selecting multiple records for last 4 years.. We are selection year by year.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;As you can see that we are having where condition on Non-key fields..&lt;/P&gt;
  &lt;P&gt;We even tried with secondary index. but not helpful.&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 10:04:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-taking-more-time-when-selecting-data-fromvbrp/m-p/632751#M26592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-05-03T10:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Select taking more time when selecting data fromVBRP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-taking-more-time-when-selecting-data-fromvbrp/m-p/632752#M26593</link>
      <description>&lt;P&gt;Dear Vidhya,&lt;/P&gt;
  &lt;P&gt;Try this,&lt;/P&gt;
  &lt;P&gt;Data: zimp_mat type zimport_matnr-matnr. &lt;/P&gt;
  &lt;P&gt;SELECT fkimg matnr werks edatu&lt;/P&gt;
  &lt;P&gt;FROM vbrp&lt;BR /&gt;INTO TABLE gt_vbrp&lt;BR /&gt;FOR ALL ENTRIES IN zimport_matnr&lt;BR /&gt;WHERE matnr = zimp_mat&lt;/P&gt;
  &lt;P&gt;AND edatu &amp;gt;= zstart_edatu&lt;BR /&gt;AND edatu &amp;lt;= zend_edatu&lt;BR /&gt;AND fkimg &amp;gt; 0.&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 11:52:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-taking-more-time-when-selecting-data-fromvbrp/m-p/632752#M26593</guid>
      <dc:creator>gaurav09</dc:creator>
      <dc:date>2018-05-03T11:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select taking more time when selecting data fromVBRP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-taking-more-time-when-selecting-data-fromvbrp/m-p/632753#M26594</link>
      <description>&lt;P&gt;Hi Vidyaprasanna,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;However, check the possibility to retrieve using primary key. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Depends on the scenario implement ABAP Inner JOIN reading header Vs Item.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Also consider working with SAP transaction ST05 (SQL trace) and analysing the explain. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;After that you can determine which secondary index is better for this scenario as well as If will be possible to implement %_HINTS...&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Sat, 05 May 2018 01:20:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-taking-more-time-when-selecting-data-fromvbrp/m-p/632753#M26594</guid>
      <dc:creator>roberto_forti</dc:creator>
      <dc:date>2018-05-05T01:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Select taking more time when selecting data fromVBRP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-taking-more-time-when-selecting-data-fromvbrp/m-p/632754#M26595</link>
      <description>&lt;P&gt;This is always going to take a long time as you are reading VBRP without the main key fields - VBELN and POSNR. You should look to read VBRK first based on some selections you can make and then read the VBRP for the records you retrieved. This will speed your selection considerably. &lt;/P&gt;
  &lt;P&gt;Never a good idea to read an item table before reading the header table. You should read HEADER then ITEM or both if you have a join and have fields to select records on. &lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;
  &lt;P&gt;Phil Cooley&lt;/P&gt;</description>
      <pubDate>Sat, 05 May 2018 02:27:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-taking-more-time-when-selecting-data-fromvbrp/m-p/632754#M26595</guid>
      <dc:creator>pjcools</dc:creator>
      <dc:date>2018-05-05T02:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Select taking more time when selecting data fromVBRP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-taking-more-time-when-selecting-data-fromvbrp/m-p/632755#M26596</link>
      <description>&lt;P&gt;exactly, we are talking about Best practices!&lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 01:42:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-taking-more-time-when-selecting-data-fromvbrp/m-p/632755#M26596</guid>
      <dc:creator>roberto_forti</dc:creator>
      <dc:date>2018-05-07T01:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select taking more time when selecting data fromVBRP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-taking-more-time-when-selecting-data-fromvbrp/m-p/632756#M26597</link>
      <description>&lt;P&gt;Good Luck. You need to change your requirement to read the VBRK record first as I stated previously. Going down this path will not get the results you want. &lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 10:30:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-taking-more-time-when-selecting-data-fromvbrp/m-p/632756#M26597</guid>
      <dc:creator>pjcools</dc:creator>
      <dc:date>2018-05-08T10:30:07Z</dc:date>
    </item>
  </channel>
</rss>

