<?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 Query for VBRK table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-vbrk-table/m-p/11371400#M1922923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you not check Note 185530 - Performance: Customer developments in SD?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on this you should query table VRKPA instead of VBRK when doing a select on customer from VBRK. It will definitely improve the runtime. Don't go for unnecessary secondary index creation. It might have adverse impact on the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; list-style: none; color: #000000; margin-left: 3em !important;"&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;EM&gt;a) Search for invoices with customer number ("payer") (field VBRK-KUNRG):Incorrect:&amp;nbsp;&amp;nbsp; SELECT FROM vbrk WHERE kunrg = ...&lt;/EM&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin-top: 8px; margin-bottom: 8px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; color: #000000;"&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Correct:&amp;nbsp;&amp;nbsp; SELECT FROM vrkpa WHERE kunde = ...&amp;nbsp;&amp;nbsp;&amp;nbsp; then SELECT FROM vbrk WHERE vbeln = vrkpa-vbeln&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Oct 2015 10:08:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-10-26T10:08:57Z</dc:date>
    <item>
      <title>Select Query for VBRK table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-vbrk-table/m-p/11371397#M1922920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Expert,&lt;/P&gt;&lt;P&gt;Kindly help me to sort this problem,&lt;/P&gt;&lt;P&gt;I am having requirement where I have to pass kunnr from knvv to kunag-vbrk where vbtyp EQ 'M' or 'O',.&lt;/P&gt;&lt;P&gt;where after all entries with knvv , my select query taking much more time to fetch data from vbrk as I know that key field of vbrk is VBELN but for joining knvv I had use kunag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 06:38:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-vbrk-table/m-p/11371397#M1922920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-10-26T06:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query for VBRK table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-vbrk-table/m-p/11371398#M1922921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to narrow your search conditions. Currently you have given condition on sales org only. KNVV will have massive set of data and condition on VKORG only will result into this only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check with your functional consultant, whether its possible to put some more conditions on primary keys or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Swet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 06:51:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-vbrk-table/m-p/11371398#M1922921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-10-26T06:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query for VBRK table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-vbrk-table/m-p/11371399#M1922922</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;Try using the secondary index for the field KUNRG but,&lt;/P&gt;&lt;P&gt;check if the switch is enabled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 07:08:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-vbrk-table/m-p/11371399#M1922922</guid>
      <dc:creator>sundaramoorthy_ramalingam</dc:creator>
      <dc:date>2015-10-26T07:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query for VBRK table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-vbrk-table/m-p/11371400#M1922923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you not check Note 185530 - Performance: Customer developments in SD?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on this you should query table VRKPA instead of VBRK when doing a select on customer from VBRK. It will definitely improve the runtime. Don't go for unnecessary secondary index creation. It might have adverse impact on the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; list-style: none; color: #000000; margin-left: 3em !important;"&gt;&lt;LI&gt;&lt;STRONG&gt;&lt;EM&gt;a) Search for invoices with customer number ("payer") (field VBRK-KUNRG):Incorrect:&amp;nbsp;&amp;nbsp; SELECT FROM vbrk WHERE kunrg = ...&lt;/EM&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin-top: 8px; margin-bottom: 8px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; color: #000000;"&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Correct:&amp;nbsp;&amp;nbsp; SELECT FROM vrkpa WHERE kunde = ...&amp;nbsp;&amp;nbsp;&amp;nbsp; then SELECT FROM vbrk WHERE vbeln = vrkpa-vbeln&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 10:08:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-vbrk-table/m-p/11371400#M1922923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-10-26T10:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query for VBRK table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-vbrk-table/m-p/11371401#M1922924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Thanks guys for your help,&lt;BR /&gt;Issue is solved as functional given more filters based on FKDAT in VBRK table.&lt;BR /&gt;Thanks &amp;amp; Regards.&lt;/P&gt;&lt;P class="jive-thread-reply-btn" style="margin: 26px 0 -10px; font-size: 0.9em; color: #333333;"&gt;&lt;/P&gt;&lt;DIV class="jive-thread-reply-btn-correct" style="font-weight: inherit; font-style: inherit; font-size: 11px; font-family: inherit;"&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/thread/3817310" style="margin: 0 20px 0 0; padding: 2px 14px 4px 28px; font-weight: bold; font-style: inherit; font-family: inherit; background-color: #f3f3f3; color: #3778c7;"&gt;Select Query for VBRK table&lt;/A&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 06:57:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-vbrk-table/m-p/11371401#M1922924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-10-27T06:57:16Z</dc:date>
    </item>
  </channel>
</rss>

