<?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: Performance problem with table BSEG in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-table-bseg/m-p/4936013#M1151319</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;Better u can use the table bsik,bsak,bsad,bsid,bsas.&lt;/P&gt;&lt;P&gt;if u want to use the bseg table means just include the &lt;STRONG&gt;KOART&lt;/STRONG&gt; field also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;sathis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Dec 2008 11:32:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-16T11:32:46Z</dc:date>
    <item>
      <title>Performance problem with table BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-table-bseg/m-p/4936009#M1151315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guru's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the select Query which is taking much time in Production. so please help me to improve the preformance with BSEG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my select query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select  bukrs&lt;/P&gt;&lt;P&gt;              belnr&lt;/P&gt;&lt;P&gt;              gjahr&lt;/P&gt;&lt;P&gt;              bschl&lt;/P&gt;&lt;P&gt;              koart&lt;/P&gt;&lt;P&gt;              umskz&lt;/P&gt;&lt;P&gt;              shkzg&lt;/P&gt;&lt;P&gt;              dmbtr&lt;/P&gt;&lt;P&gt;              ktosl&lt;/P&gt;&lt;P&gt;              zuonr&lt;/P&gt;&lt;P&gt;              sgtxt&lt;/P&gt;&lt;P&gt;              kunnr&lt;/P&gt;&lt;P&gt;        from  bseg&lt;/P&gt;&lt;P&gt;        into  table gt_bseg1&lt;/P&gt;&lt;P&gt;         for  all entries in gt_bkpf&lt;/P&gt;&lt;P&gt;       where  bukrs eq p_bukrs&lt;/P&gt;&lt;P&gt;         and  belnr eq gt_bkpf-belnr&lt;/P&gt;&lt;P&gt;         and  gjahr eq p_gjahr&lt;/P&gt;&lt;P&gt;         and  buzei in gr_buzei&lt;/P&gt;&lt;P&gt;         and  bschl eq  '40'&lt;/P&gt;&lt;P&gt;         and  ktosl  ne  'BSP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UR's&lt;/P&gt;&lt;P&gt;GSANA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 10:25:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-table-bseg/m-p/4936009#M1151315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T10:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem with table BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-table-bseg/m-p/4936010#M1151316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gsana sana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use other tables then BSEG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;BSAD                           Accounting: Secondary Index for Customers Cleared Items
BSAK                           Accounting: Secondary Index for Vendors Cleared Items

BSID                           Accounting: Secondary Index for Customers
BSIK                           Accounting: Secondary Index for Vendors&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also have a look on other BS* tables &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will be good for performace..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope it will solve your problem..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 10:30:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-table-bseg/m-p/4936010#M1151316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T10:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem with table BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-table-bseg/m-p/4936011#M1151317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Delete the FAE clause and use the in clause in the where condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 10:34:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-table-bseg/m-p/4936011#M1151317</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2008-12-16T10:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem with table BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-table-bseg/m-p/4936012#M1151318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are using the primary key, so not much you can do, other than making sure that gt_bkpf is not empty, is sorted by belnr and contains no duplicate belnr.&lt;/P&gt;&lt;P&gt;BSEG is usually a large table, so if you have many entries in gt_bkpf going into the select, it will take time.&lt;/P&gt;&lt;P&gt;BS* tables will not help here, I cannot see any customer, vendor or g/l account in the selection criteria.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 10:36:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-table-bseg/m-p/4936012#M1151318</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-12-16T10:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem with table BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-table-bseg/m-p/4936013#M1151319</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;Better u can use the table bsik,bsak,bsad,bsid,bsas.&lt;/P&gt;&lt;P&gt;if u want to use the bseg table means just include the &lt;STRONG&gt;KOART&lt;/STRONG&gt; field also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;sathis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 11:32:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-table-bseg/m-p/4936013#M1151319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T11:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem with table BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-table-bseg/m-p/4936014#M1151320</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; BS* tables will not help here, I cannot see any customer, vendor or g/l account in the selection criteria.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the original code: and bschl eq '40' (read: posting key = 40 ==&amp;gt; G/L debit entries)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this clearly indicates that we search for G/L postings, so BSIS/BSAS could be alternatives&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 11:55:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-table-bseg/m-p/4936014#M1151320</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-12-16T11:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem with table BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-table-bseg/m-p/4936015#M1151321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, but which ones? If you don't have any account numbers to narrow down the selection, then BSIS/BSAS are pretty much useless. It seems that OP is coming from a BKPF selection, probably using BUDAT, CPUDT, BLART or the likes, and now is looking up the corresponding BSEG entries.&lt;/P&gt;&lt;P&gt;We will not know until he publishes more of his code.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 12:38:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-table-bseg/m-p/4936015#M1151321</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-12-16T12:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem with table BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-table-bseg/m-p/4936016#M1151322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How many entries are present in gt_bkpf ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All other things seems fine. But if you can give logic to fetch data in gt_bkpf - it might be possible to combine bseg and bkpf query and use Join instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohaiyuddin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2008 07:26:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-table-bseg/m-p/4936016#M1151322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-17T07:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem with table BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-table-bseg/m-p/4936017#M1151323</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; Hi Guru's&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; this is the select Query which is taking much time in Production. so please help me to improve the preformance with BSEG.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; this is my select query:&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; select  bukrs&lt;/P&gt;&lt;P&gt;&amp;gt;               belnr&lt;/P&gt;&lt;P&gt;&amp;gt;               gjahr&lt;/P&gt;&lt;P&gt;&amp;gt;               bschl&lt;/P&gt;&lt;P&gt;&amp;gt;               koart&lt;/P&gt;&lt;P&gt;&amp;gt;               umskz&lt;/P&gt;&lt;P&gt;&amp;gt;               shkzg&lt;/P&gt;&lt;P&gt;&amp;gt;               dmbtr&lt;/P&gt;&lt;P&gt;&amp;gt;               ktosl&lt;/P&gt;&lt;P&gt;&amp;gt;               zuonr&lt;/P&gt;&lt;P&gt;&amp;gt;               sgtxt&lt;/P&gt;&lt;P&gt;&amp;gt;               kunnr&lt;/P&gt;&lt;P&gt;&amp;gt;         from  bseg&lt;/P&gt;&lt;P&gt;&amp;gt;         into  table gt_bseg1&lt;/P&gt;&lt;P&gt;&amp;gt;          for  all entries in gt_bkpf&lt;/P&gt;&lt;P&gt;&amp;gt;        where  bukrs eq p_bukrs&lt;/P&gt;&lt;P&gt;&amp;gt;          and  belnr eq gt_bkpf-belnr&lt;/P&gt;&lt;P&gt;&amp;gt;          and  gjahr eq p_gjahr&lt;/P&gt;&lt;P&gt;&amp;gt;          and  buzei in gr_buzei&lt;/P&gt;&lt;P&gt;&amp;gt;          and  bschl eq  '40'&lt;/P&gt;&lt;P&gt;&amp;gt;          and  ktosl  ne  'BSP'.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; UR's&lt;/P&gt;&lt;P&gt;&amp;gt; GSANA&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I know and please if any expert think its incorrect, please do correct me.&lt;/P&gt;&lt;P&gt;BSEG is a cluster table with BUKRS, BELNR, GJAHR and BUZEI as the key whereas other key will be stored in database as raw data thus SAP apps will need to convert that raw data first if we are using other keys in where condition. Hence, I suggest to use up to buzei in the where condition and filter other condition in internal table level like using Delete statement. Hope its help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abraham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2008 09:39:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-table-bseg/m-p/4936017#M1151323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-18T09:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem with table BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-table-bseg/m-p/4936018#M1151324</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 same fields can be found in the index tables&lt;/P&gt;&lt;P&gt;BSID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BSAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BSIK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BSAK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BSIS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BSAS&lt;/P&gt;&lt;P&gt;for customers, vendors and G/L accounts seperately. Please select the data from these 6 tables or from customer and vendor related tables using appending in the select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from bsad into table i_bseg where &amp;lt;conditions&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from bsid appending table i_bseg where &amp;lt;conditions&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using these tables as surely there will be remarkable improvement in the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Thabitha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2008 10:47:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-table-bseg/m-p/4936018#M1151324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-18T10:47:42Z</dc:date>
    </item>
  </channel>
</rss>

