<?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: Problem while selecting BELNR from BSEG in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-selecting-belnr-from-bseg/m-p/2552396#M581357</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi neeraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. One thing which can be done is to create a secondary index on BUZID field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Also i assume that the select query is a simple one without any join.&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2007 12:26:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-11T12:26:11Z</dc:date>
    <item>
      <title>Problem while selecting BELNR from BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-selecting-belnr-from-bseg/m-p/2552395#M581356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a report performance problem while fetching BELNR from BSEG table.&lt;/P&gt;&lt;P&gt;I have to print latest BELNR from BSEG where BUZID = &amp;#145;M&amp;#146; but at the time of execution of report, It is taking too much time (More that hour and sometimes it gets hanged).&lt;/P&gt;&lt;P&gt;I have also gone through the comments provided by experts for previous problems asked in this forum e.g. BSEG is a cluster table that is why data retrieval takes long time etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one has any other idea or suggestion  or any other way to solve this problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neeraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 12:22:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-selecting-belnr-from-bseg/m-p/2552395#M581356</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T12:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while selecting BELNR from BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-selecting-belnr-from-bseg/m-p/2552396#M581357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi neeraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. One thing which can be done is to create a secondary index on BUZID field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Also i assume that the select query is a simple one without any join.&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 12:26:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-selecting-belnr-from-bseg/m-p/2552396#M581357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T12:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while selecting BELNR from BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-selecting-belnr-from-bseg/m-p/2552397#M581358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;BSEG is basically clusture table.&lt;/P&gt;&lt;P&gt;Use relevenat table instead of that &lt;/P&gt;&lt;P&gt;BSAD&lt;/P&gt;&lt;P&gt;BSAK&lt;/P&gt;&lt;P&gt;BSAS&lt;/P&gt;&lt;P&gt;BSID&lt;/P&gt;&lt;P&gt;BSIK&lt;/P&gt;&lt;P&gt;BSIM&lt;/P&gt;&lt;P&gt;BSIP&lt;/P&gt;&lt;P&gt;BSIS&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;Reward if useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 12:26:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-selecting-belnr-from-bseg/m-p/2552397#M581358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T12:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while selecting BELNR from BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-selecting-belnr-from-bseg/m-p/2552398#M581359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try using the keys(BUKRS,BELNR,GJAHR,BUZEI) of the table BSEG in the where condition.&lt;/P&gt;&lt;P&gt;Generally the performance does improve if you utilize as many keys as possible in the where condition while selecting from a database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 12:28:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-selecting-belnr-from-bseg/m-p/2552398#M581359</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T12:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while selecting BELNR from BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-selecting-belnr-from-bseg/m-p/2552399#M581360</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;1) Try to create an index on BUZID field&lt;/P&gt;&lt;P&gt;2) Don't use SELECT/ENDSELECT statement. Instead of that extract all the concerned entries from BSEG into an internal table :&lt;/P&gt;&lt;P&gt;select belnr from bseg appending table itab where buzid = 'M'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then do this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab by belnr.&lt;/P&gt;&lt;P&gt;describe itab lines n.&lt;/P&gt;&lt;P&gt;read table itab index n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nicolas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 12:43:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-selecting-belnr-from-bseg/m-p/2552399#M581360</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T12:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while selecting BELNR from BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-selecting-belnr-from-bseg/m-p/2552400#M581361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a combination of Sandeep and Nicolas's suggestions.&lt;/P&gt;&lt;P&gt;Definately try to narrow the selection by BUKRS,BELNR,GJAHR,BUZEI and read the result into an internal table before sorting for latest BELNR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 12:51:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-selecting-belnr-from-bseg/m-p/2552400#M581361</guid>
      <dc:creator>che_eky</dc:creator>
      <dc:date>2007-07-11T12:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while selecting BELNR from BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-selecting-belnr-from-bseg/m-p/2552401#M581362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, BSEG is a cluster table, so you probably can't create a secondary index on it. I don't think there's much you can do here except run it in the bachground overnight when system load is light.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 13:26:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-selecting-belnr-from-bseg/m-p/2552401#M581362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T13:26:41Z</dc:date>
    </item>
  </channel>
</rss>

