<?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 tuning for BSAD table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-for-bsad-table/m-p/2782622#M648639</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How exactly it can be done using AWKEY and AWTYPE..can you elaborate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2007 14:02:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-01T14:02:09Z</dc:date>
    <item>
      <title>Performance tuning for BSAD table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-for-bsad-table/m-p/2782614#M648631</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;How can I improve performance for this select query?I have only 'Clearing Date' on my selection screen.So I can use only 1 table key out of 10 keys..please suggest if I can use BSEG table or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT augdt        "Clearing Date&lt;/P&gt;&lt;P&gt;             vbeln        "Billing Document&lt;/P&gt;&lt;P&gt;      FROM bsad&lt;/P&gt;&lt;P&gt;      INTO TABLE it_bseg&lt;/P&gt;&lt;P&gt;      WHERE augdt EQ p_date      "Parameter: Clearing Date&lt;/P&gt;&lt;P&gt;      AND   bschl IN ('01' , '02' , '11' , '12')&lt;/P&gt;&lt;P&gt;      AND   vbeln NE space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 10:49:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-for-bsad-table/m-p/2782614#M648631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T10:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Performance tuning for BSAD table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-for-bsad-table/m-p/2782615#M648632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you mentioned you can use only one key out of the following&lt;/P&gt;&lt;P&gt;MANDT&lt;/P&gt;&lt;P&gt;BUKRS&lt;/P&gt;&lt;P&gt;KUNNR&lt;/P&gt;&lt;P&gt;UMSKS&lt;/P&gt;&lt;P&gt;UMSKZ&lt;/P&gt;&lt;P&gt;AUGDT&lt;/P&gt;&lt;P&gt;AUGBL&lt;/P&gt;&lt;P&gt;ZUONR&lt;/P&gt;&lt;P&gt;GJAHR&lt;/P&gt;&lt;P&gt;BELNR&lt;/P&gt;&lt;P&gt;BUZEI&lt;/P&gt;&lt;P&gt;Please try to avoid using the non-key fields in the selection. &lt;/P&gt;&lt;P&gt;Soon after the selection is over, you can restrict your internal table as you wish. &lt;/P&gt;&lt;P&gt;Try to give more key fields so that your performance will be better. &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Baburaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 11:32:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-for-bsad-table/m-p/2782615#M648632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T11:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Performance tuning for BSAD table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-for-bsad-table/m-p/2782616#M648633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Please try to avoid using the non-key fields in the selection. &lt;/P&gt;&lt;P&gt;This is no official performance recommendation! You should always specify all your knowledge in the where condition to select only what you really need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you must try to specify also fields which are in an index and which are selective, otherwise the statement will be slow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;New indexes are only an option if the statement is very important.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 12:55:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-for-bsad-table/m-p/2782616#M648633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T12:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Performance tuning for BSAD table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-for-bsad-table/m-p/2782617#M648634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect you're going about this the wrong way. Instead of going through FI (BSAD) to get the billing document. I think you may be able to use SD document flow (VBFA) to get it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2007 13:58:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-for-bsad-table/m-p/2782617#M648634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-10T13:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Performance tuning for BSAD table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-for-bsad-table/m-p/2782618#M648635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;VBFA is not going to help much because it does not have entries for FI documents. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that author is trying to get a list of the cleared billing documents. I would suggest to check with the users if they would agree to minimize the search range. I seriously doubt that anyone is planning to look at &amp;lt;b&amp;gt;all&amp;lt;/b&amp;gt; the cleared documents for &amp;lt;b&amp;gt;all&amp;lt;/b&amp;gt; companies. Most likely the list may be narrowed down by Sales Org (VKORG) or at least Company (BUKRS).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on that, the author might want to start search from the SD tables (VBRK, for example) and then join BSAD using BUKRS and KUNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Jelena Perfiljeva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 20:05:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-for-bsad-table/m-p/2782618#M648635</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2007-09-20T20:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Performance tuning for BSAD table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-for-bsad-table/m-p/2782619#M648636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using AWTYPE and AWKEY, I think it can be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 20:09:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-for-bsad-table/m-p/2782619#M648636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T20:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Performance tuning for BSAD table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-for-bsad-table/m-p/2782620#M648637</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;you do the following syt which is not give 100% performance but it gives good than ur select statment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any way you have the CLREARING date from that u need to pick the physical year and move into one field say w_gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_gjahr = p_date +0(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT augdt "Clearing Date&lt;/P&gt;&lt;P&gt;vbeln "Billing Document&lt;/P&gt;&lt;P&gt;FROM bsad&lt;/P&gt;&lt;P&gt;INTO TABLE it_bseg&lt;/P&gt;&lt;P&gt;WHERE &amp;lt;b&amp;gt;augdt EQ p_date&amp;lt;/b&amp;gt; "Parameter: Clearing Date&lt;/P&gt;&lt;P&gt;     AND &amp;lt;b&amp;gt;gjahr  EQ w_gjahr&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;sort it_bseg by bukrs.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE it_bseg where vbeln eq space &lt;/P&gt;&lt;P&gt;                            and bschl eq '01'&lt;/P&gt;&lt;P&gt;                            and bschl eq '02'&lt;/P&gt;&lt;P&gt;                            and bschl eq '11'&lt;/P&gt;&lt;P&gt;                            and bschl eq '12'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;Reward with points if helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2007 07:27:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-for-bsad-table/m-p/2782620#M648637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-21T07:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Performance tuning for BSAD table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-for-bsad-table/m-p/2782621#M648638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) I am not sure what you are doing here. You are reading data from table BSAD and are storing it in internal table IT_BSEG. Though programmatically it will not cause a problem but it severly affects readability. If I read internal table IT_BSEG I assume that it contains data from table BSEG. It would surprise me if it contained data from BSAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) You do not have much to access BSAD with. Unless you create an index on field AUGDT and BSCHL you are pretty much doing a whole table search. There are no standard indexes (in version 4.7) that you are likely to use. There is an index in version 4.7 (Index No. 5) on fields BUKRS, BELNR, GJAHR. If you have already retrieved data from BKPF or BSEG you can use that internal table in the FOR ALL ENTRIES clause and mention the BUKRS, BELNR and GJAHR in the where clause. That way you will be using an index instead of a whole table search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plerase let me know if this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2007 13:47:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-for-bsad-table/m-p/2782621#M648638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-21T13:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Performance tuning for BSAD table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-for-bsad-table/m-p/2782622#M648639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How exactly it can be done using AWKEY and AWTYPE..can you elaborate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 14:02:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-tuning-for-bsad-table/m-p/2782622#M648639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T14:02:09Z</dc:date>
    </item>
  </channel>
</rss>

