<?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 Performance Issue while accessing table BSEG in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683439#M1576237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see a performance issue when accessing tables BSEG using the data from table BKPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I extracted the fields from BKPF table and then made the following statemnt :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select bukrs, belnr, gjahr, buzei, hkont, txjcd, mwart&lt;/P&gt;&lt;P&gt;           from bseg&lt;/P&gt;&lt;P&gt;           for all entries in it_bkpf&lt;/P&gt;&lt;P&gt;           where bukrs EQ it_bkpf-BUKRS AND&lt;/P&gt;&lt;P&gt;                       belnr EQ it_bkpf-belnr AND&lt;/P&gt;&lt;P&gt;                       gjahr EQ it_bkpf-gjahr AND&lt;/P&gt;&lt;P&gt;                       buzei EQ it_bkpf-buzei AND&lt;/P&gt;&lt;P&gt;                       hkont EQ it_bkpf-hkont.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this statement causes a serious performance issue and my program stops working from here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone please help me out with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sushanth Hulkod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Feb 2011 20:08:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-14T20:08:54Z</dc:date>
    <item>
      <title>Performance Issue while accessing table BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683439#M1576237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see a performance issue when accessing tables BSEG using the data from table BKPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I extracted the fields from BKPF table and then made the following statemnt :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select bukrs, belnr, gjahr, buzei, hkont, txjcd, mwart&lt;/P&gt;&lt;P&gt;           from bseg&lt;/P&gt;&lt;P&gt;           for all entries in it_bkpf&lt;/P&gt;&lt;P&gt;           where bukrs EQ it_bkpf-BUKRS AND&lt;/P&gt;&lt;P&gt;                       belnr EQ it_bkpf-belnr AND&lt;/P&gt;&lt;P&gt;                       gjahr EQ it_bkpf-gjahr AND&lt;/P&gt;&lt;P&gt;                       buzei EQ it_bkpf-buzei AND&lt;/P&gt;&lt;P&gt;                       hkont EQ it_bkpf-hkont.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this statement causes a serious performance issue and my program stops working from here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone please help me out with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sushanth Hulkod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 20:08:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683439#M1576237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-14T20:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue while accessing table BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683440#M1576238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="Blue" __jive_macro_name="color"&gt;&lt;SPAN __default_attr="Calibri" __jive_macro_name="font"&gt;
Make sure that you're checking that the internal table with BKPF entries is not empty. I hope you know what happens if that is the case. 

That apart, since you are using the key BUKRS/BELNR/GJAHR, am sure there shouldn't be an issue. Also, do make sure that the index based on the key fields is active. This is generally a BASIS job. Generally this index should be ON.
&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 20:17:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683440#M1576238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-14T20:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue while accessing table BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683441#M1576239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this statement causes a serious performance issue and my program stops working from here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, for how many entries in your table?  It certainly would not be an issue for only a few entries.  Why are you using BUZEI and HKONT in the FOR ALL ENTRIES construct - they aren't BKPF fields?  Why aren't those fields processed against parameters or select-options?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 20:44:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683441#M1576239</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2011-02-14T20:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue while accessing table BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683442#M1576240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sushanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also remove the BUZEI and HKONT from the WHERE clause since these fields are not part of the BKPF table and therefore blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you are only interested in GL account items(KOART = S as opposed to vendor/customer postings), you should use table BSIS to get the open items.  Use BSAS to get the cleared items. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS. Sorry Brad did not want to repeat you, was in the middle of a my reply when you replied.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Edited by: RJ. Schamhart on Feb 14, 2011 2:54 PM&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 22:54:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683442#M1576240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-14T22:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue while accessing table BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683443#M1576241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your source table for the FAE clause should be sorted to get good performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, as BRAD AND rj HAVE POINTED OUT, SOME OF THE FIELDS YOU ARE USING INTHE SQL WILL NOT HAVE VALUES............. but WHAT PUZZLES ME IS HOW YOU ARE getting any results at all as the null values for these fields will not be very helpful to the select.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 23:13:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683443#M1576241</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2011-02-14T23:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue while accessing table BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683444#M1576242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add below code, it may solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF not it_bkpf[] is initial. &amp;lt;-- Add&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select bukrs, belnr, gjahr, buzei, hkont, txjcd, mwart
from bseg
for all entries in it_bkpf
where bukrs EQ it_bkpf-BUKRS AND
belnr EQ it_bkpf-belnr AND
gjahr EQ it_bkpf-gjahr AND
buzei EQ it_bkpf-buzei AND
hkont EQ it_bkpf-hkont.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ENDIF. &amp;lt;-- Add&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SaiRam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 02:12:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683444#M1576242</guid>
      <dc:creator>former_member196280</dc:creator>
      <dc:date>2011-02-15T02:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue while accessing table BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683445#M1576243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though my query now is :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it_bkpf[] is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select bukrs belnr gjahr buzei&lt;/P&gt;&lt;P&gt;           from bseg into&lt;/P&gt;&lt;P&gt;           corresponding fields of table it_bseg&lt;/P&gt;&lt;P&gt;           for all entries in table it_bkpf&lt;/P&gt;&lt;P&gt;           where bukrs = it_bkpf-bukrs&lt;/P&gt;&lt;P&gt;                and belnr = it_bkpf-belnr&lt;/P&gt;&lt;P&gt;                and gjahr = it_bkpf-gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There still seems to be a performance issue and my pgm stops at this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone help me out with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sushanth Hulkod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 03:06:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683445#M1576243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-15T03:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue while accessing table BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683446#M1576244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see nothing wrong with your code. Are you sure this is where the problem is?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you run ST05 to analyze this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How many entries in IT_BKPF?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 03:23:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683446#M1576244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-15T03:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue while accessing table BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683447#M1576245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your source table for the FAE clause should be sorted to get good performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie sort it_bkpf by bukrs belnr gjahr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 03:40:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683447#M1576245</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2011-02-15T03:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue while accessing table BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683448#M1576246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Your source table for the FAE clause should be sorted to get good performance.&lt;/P&gt;&lt;P&gt;&amp;gt; ie sort it_bkpf by bukrs belnr gjahr&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition to what Neil has added for FAE to work effeciently; you need to perform a D.A.D on the source table based on the fields which are used in the WHERE clause. (Of couse the check for the emptiness of the table is a MUST)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 05:02:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683448#M1576246</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-02-15T05:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue while accessing table BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683449#M1576247</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;Declare your it_bseg with &lt;STRONG&gt;only required&lt;/STRONG&gt; fields i.e  bukrs belnr gjahr buzei.&lt;/P&gt;&lt;P&gt;and remove"into corresponding fields of".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use open cursor method.&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;Ganesh Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 05:14:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683449#M1576247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-15T05:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue while accessing table BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683450#M1576248</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;The query you have written is fetching all the records exist in BSEG table. You have to excecute this only if there is atleast a single entry in it_bkpf. Write if condition as below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it_bkpf[] is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select bukrs, belnr, gjahr, buzei, hkont, txjcd, mwart&lt;/P&gt;&lt;P&gt;from bseg&lt;/P&gt;&lt;P&gt;for all entries in it_bkpf&lt;/P&gt;&lt;P&gt;where bukrs EQ it_bkpf-BUKRS AND&lt;/P&gt;&lt;P&gt;belnr EQ it_bkpf-belnr AND&lt;/P&gt;&lt;P&gt;gjahr EQ it_bkpf-gjahr AND&lt;/P&gt;&lt;P&gt;buzei EQ it_bkpf-buzei AND&lt;/P&gt;&lt;P&gt;hkont EQ it_bkpf-hkont.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 05:23:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683450#M1576248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-15T05:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue while accessing table BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683451#M1576249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sushanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Always check for all entries table is initial or not, then apply the selection.&lt;/P&gt;&lt;P&gt;Like in your case.&lt;/P&gt;&lt;P&gt;if it_bkpf is  not initial.&lt;/P&gt;&lt;P&gt;do your selection here.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Sort your for all entries table as well.&lt;/P&gt;&lt;P&gt;3. Use operators instead of character statements,&lt;/P&gt;&lt;P&gt;   like BELNR = it_bkpf-belrn not belnr EQ it_bkpf-belnr.&lt;/P&gt;&lt;P&gt;4. in where condition the sequence should be same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why are you selecting BUKRS BELNR GJAHR and BUZEI again from BSEG table though you have selected them from BKPF table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why are you using into corresponding fields of table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you need to take care of all the above points and your query seems ok to me,&lt;/P&gt;&lt;P&gt;please debugg and check where is the problem exactly accuring?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lalit Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 05:27:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683451#M1576249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-15T05:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue while accessing table BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683452#M1576250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the below code, it may improve the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * INTO TABLE it_bkpf FROM bkpf
            WHERE belnr = '0100000000'
              AND bukrs = 'XXXX'
              AND gjahr = '2011'.

IF NOT it_bkpf[] IS INITIAL.

  SELECT bukrs  belnr  gjahr  txjcd  mwart
  INTO CORRESPONDING FIELDS OF TABLE it_bseg  &amp;lt;-- Try to push the contents to internal table or work area
  FROM bseg
  FOR ALL ENTRIES IN it_bkpf
  WHERE bukrs EQ it_bkpf-bukrs AND
  belnr EQ it_bkpf-belnr AND
  gjahr EQ it_bkpf-gjahr.

ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SaiRam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 05:45:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683452#M1576250</guid>
      <dc:creator>former_member196280</dc:creator>
      <dc:date>2011-02-15T05:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue while accessing table BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683453#M1576251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it's Possible Avoid Using BSEG table it's Cluster Table , in place of that Use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bsis    "Accounting: Secondary Index for G/L Accounts&lt;/P&gt;&lt;P&gt;bsas   "Secondary Index for G/L Accounts (Cleared Items)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bsid     " Accounting: Secondary Index for Customers&lt;/P&gt;&lt;P&gt;bsad   " Secondary Index for Customers (Cleared Items)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BSAK  " Accounting: Secondary Index for Vendors (Cleared Items)&lt;/P&gt;&lt;P&gt;BSIK   "Accounting: Secondary Index for Vendors&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Shailesh Dhanani on Feb 15, 2011 7:41 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 06:41:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683453#M1576251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-15T06:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue while accessing table BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683454#M1576252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Shailesh Dhanani  - &lt;/P&gt;&lt;P&gt;&amp;gt; If it's Possible Avoid Using BSEG table it's Cluster Table , in place of that Use...&lt;/P&gt;&lt;P&gt;Absolutely incorrect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Gamesh Reddy - how would OPEN CURSOR help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@LalitG - INTO CORRESPONDING adds a very small bi of overhead but is not really a performance issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 14:07:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683454#M1576252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-15T14:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue while accessing table BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683455#M1576253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LalitG wrote:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Use operators instead of character statements,&lt;/P&gt;&lt;P&gt;like BELNR = it_bkpf-belrn not belnr EQ it_bkpf-belnr.&lt;/P&gt;&lt;P&gt;4. in where condition the sequence should be same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not really valid suggestions...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To the poster, some of the suggestions provided are valid and some are not; the valid ones are not likely to increase your performance by an order of magnitude.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You haven't answered the simple questions posed to you, such as the one both Rob and I asked - how many entries in the driver table?  If you dump every single BKPF line into an internal table, it stands to reason that the performance on the BSEG SELECT would be bad, NO MATTER WHAT YOU DO.  How do you know the BSEG read is the cause of the issue - have you traced the program?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 14:38:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-accessing-table-bseg/m-p/7683455#M1576253</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2011-02-15T14:38:23Z</dc:date>
    </item>
  </channel>
</rss>

