<?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 BSAD table performance in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bsad-table-performance/m-p/2603767#M596584</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 performance issue with the table BSAD.&lt;/P&gt;&lt;P&gt;I have an excel which has nearly 1660 records with ZUONR - Assignment number only in that records&lt;/P&gt;&lt;P&gt;But on the report selection screen i have UMSKZ - Special G/L Indicator and in the select query where clause i use AUGDT	- Clearing Date &amp;amp; BLDAT - Document date in document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With these fields i query on the BSAD table using for all entries of the excel internal table which has 1660 records.&lt;/P&gt;&lt;P&gt;But seems that this is taking long time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any body increase the performance of this query. &lt;/P&gt;&lt;P&gt;More over i have been using &amp;lt;b&amp;gt;Appending table&amp;lt;/b&amp;gt; for it_accnt&lt;/P&gt;&lt;P&gt;see my query below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Selecting Data from BSID and BSAD tables
  select bukrs kunnr umskz zuonr gjahr belnr bldat
         xblnr shkzg dmbtr wrbtr sgtxt zfbdt
         from bsid
         into table it_accnt
         for all entries in it_tab1 " IT_TAB1 HAS 1660 RECORDS
         where umskz in so_umskz
           and zuonr eq it_tab1-zuonr
           and bldat le p_date.

  select bukrs kunnr umskz zuonr gjahr belnr bldat
         xblnr shkzg dmbtr wrbtr sgtxt zfbdt
         from bsad
         appending table it_accnt
         for all entries in it_tab1 " IT_TAB1 HAS 1660 RECORDS
         where umskz in so_umskz
           and zuonr eq it_tab1-zuonr
           and bldat le p_date
           and augdt ge p_date.

  if not it_accnt[] is initial.
    sort it_accnt by bukrs kunnr zuonr.
  endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pratyusha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jul 2007 02:26:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-31T02:26:10Z</dc:date>
    <item>
      <title>BSAD table performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bsad-table-performance/m-p/2603767#M596584</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 performance issue with the table BSAD.&lt;/P&gt;&lt;P&gt;I have an excel which has nearly 1660 records with ZUONR - Assignment number only in that records&lt;/P&gt;&lt;P&gt;But on the report selection screen i have UMSKZ - Special G/L Indicator and in the select query where clause i use AUGDT	- Clearing Date &amp;amp; BLDAT - Document date in document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With these fields i query on the BSAD table using for all entries of the excel internal table which has 1660 records.&lt;/P&gt;&lt;P&gt;But seems that this is taking long time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any body increase the performance of this query. &lt;/P&gt;&lt;P&gt;More over i have been using &amp;lt;b&amp;gt;Appending table&amp;lt;/b&amp;gt; for it_accnt&lt;/P&gt;&lt;P&gt;see my query below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Selecting Data from BSID and BSAD tables
  select bukrs kunnr umskz zuonr gjahr belnr bldat
         xblnr shkzg dmbtr wrbtr sgtxt zfbdt
         from bsid
         into table it_accnt
         for all entries in it_tab1 " IT_TAB1 HAS 1660 RECORDS
         where umskz in so_umskz
           and zuonr eq it_tab1-zuonr
           and bldat le p_date.

  select bukrs kunnr umskz zuonr gjahr belnr bldat
         xblnr shkzg dmbtr wrbtr sgtxt zfbdt
         from bsad
         appending table it_accnt
         for all entries in it_tab1 " IT_TAB1 HAS 1660 RECORDS
         where umskz in so_umskz
           and zuonr eq it_tab1-zuonr
           and bldat le p_date
           and augdt ge p_date.

  if not it_accnt[] is initial.
    sort it_accnt by bukrs kunnr zuonr.
  endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pratyusha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 02:26:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bsad-table-performance/m-p/2603767#M596584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-31T02:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: BSAD table performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bsad-table-performance/m-p/2603768#M596585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the values of any additional key fields of the tables are available, please include in the where clause. this will improve performance. try fields like BUKRS, GJAHR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 02:43:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bsad-table-performance/m-p/2603768#M596585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-31T02:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: BSAD table performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bsad-table-performance/m-p/2603769#M596586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at the indexes on BSAD and consider its primary purpose - i.e. it is designed to give you a way of getting cleared lines for a customer... therefore your selects should, if possible, contain as many of the following as possible:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;BUKRS    
KUNNR    
UMSKS    
UMSKZ    
AUGDT    
AUGBL    
ZUONR    
GJAHR    
BELNR    
BUZEI   &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically if you don't have the customer number, then you may be better off first identifying matching documents from BKPF (e.g. doc type and date range) and then getting the associated customer lines from BSEG.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 03:02:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bsad-table-performance/m-p/2603769#M596586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-31T03:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: BSAD table performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bsad-table-performance/m-p/2603770#M596587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree to both of you Sudhir and Jonathan,&lt;/P&gt;&lt;P&gt;But in my case i only have the Assignment Number(ZUONR), Special G/L Indicator(UMSKZ)&lt;/P&gt;&lt;P&gt;Other than these two fields i dont have any other inputs for this table. So this is taking time infact i never executed the program totally, i always had to interrupt the transaction in between coz it went running for hours together.&lt;/P&gt;&lt;P&gt;If this is the case can i insist to get more inputs like BUKRS KUNNR from the user side. Will this improve my performance to an extent?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pratyusha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 03:10:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bsad-table-performance/m-p/2603770#M596587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-31T03:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: BSAD table performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bsad-table-performance/m-p/2603771#M596588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pratyusha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even with all those details there will always be a performance issue with this table, but it will be less.&lt;/P&gt;&lt;P&gt;This table is containing huge amount of data in production so it is not advisable to query this table without all key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 03:47:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bsad-table-performance/m-p/2603771#M596588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-31T03:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: BSAD table performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bsad-table-performance/m-p/2603772#M596589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pratya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create an index (to avoid full table scan) in table BSAD with key umskz, zuonr, bldat, augdt.&lt;/P&gt;&lt;P&gt;You can try it in you Development System and see how fast is it..&lt;/P&gt;&lt;P&gt;If the speed is not as expected than you can delete the index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hendy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 04:09:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bsad-table-performance/m-p/2603772#M596589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-31T04:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: BSAD table performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bsad-table-performance/m-p/2603773#M596590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used the primary keys BUKRS KUNNR, and it solved to a maximum extent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2007 02:21:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bsad-table-performance/m-p/2603773#M596590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-01T02:21:55Z</dc:date>
    </item>
  </channel>
</rss>

