<?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: Database load on BKPF table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-load-on-bkpf-table/m-p/4518980#M1068445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the internal table IST_EKBE is not intital.&lt;/P&gt;&lt;P&gt;if IST_EKBE is not initial.&lt;/P&gt;&lt;P&gt; write the select quiry here.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here if we wont check this, Where condition in the select quiry will fail and large amount of data will be fetched.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bharani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Sep 2008 13:41:17 GMT</pubDate>
    <dc:creator>BH2408</dc:creator>
    <dc:date>2008-09-24T13:41:17Z</dc:date>
    <item>
      <title>Database load on BKPF table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-load-on-bkpf-table/m-p/4518977#M1068442</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 am trying to reduce the databse load on BKPF table in my program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written the select as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT BUKRS BELNR GJAHR BLART BUDAT AWKEY FROM BKPF&lt;/P&gt;&lt;P&gt;                                           INTO TABLE IST_BKPF&lt;/P&gt;&lt;P&gt;                                           FOR ALL ENTRIES IN IST_EKBE&lt;/P&gt;&lt;P&gt;                                           WHERE BUKRS IN S_BUKRS AND&lt;/P&gt;&lt;P&gt;                                                 GJAHR = IST_EKBE-GJAHR AND&lt;/P&gt;&lt;P&gt;                                                 AWKEY = IST_EKBE-AWKEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AWKEY is obtained as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT  IST_EKBE INTO WA_EKBE.&lt;/P&gt;&lt;P&gt;        CONCATENATE WA_EKBE-BELNR WA_EKBE-GJAHR INTO  WA_EKBE-AWKEY.&lt;/P&gt;&lt;P&gt;        MODIFY IST_EKBE FROM WA_EKBE TRANSPORTING AWKEY.&lt;/P&gt;&lt;P&gt;        CLEAR : WA_EKBE.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used all the primary keys available on BKPF table,please suggest me as to how i can reduce the load on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Presently the load is around 85% on BKPF table itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;/P&gt;&lt;P&gt;Rehman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 07:13:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-load-on-bkpf-table/m-p/4518977#M1068442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T07:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Database load on BKPF table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-load-on-bkpf-table/m-p/4518978#M1068443</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;First of all put the select query inside &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if IST_EKBE is initial.


endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as in case of FOR ALL ENTRIES, if the mother internal table is NULL, it will fetch all the data of BKPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Anirban&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 07:15:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-load-on-bkpf-table/m-p/4518978#M1068443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-24T07:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Database load on BKPF table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-load-on-bkpf-table/m-p/4518979#M1068444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to include BKPF-AWTYP in the WHERE-conditions, so secondary index BKPF~4 can be used for quick access.&lt;/P&gt;&lt;P&gt;AWTYP will have a fixed value for all these documents, which one it is I don't know by heart (maybe RMRP) but you can find out yourself by looking at a single BKPF row via SE16.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 07:59:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-load-on-bkpf-table/m-p/4518979#M1068444</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-09-24T07:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Database load on BKPF table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-load-on-bkpf-table/m-p/4518980#M1068445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the internal table IST_EKBE is not intital.&lt;/P&gt;&lt;P&gt;if IST_EKBE is not initial.&lt;/P&gt;&lt;P&gt; write the select quiry here.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here if we wont check this, Where condition in the select quiry will fail and large amount of data will be fetched.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bharani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2008 13:41:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-load-on-bkpf-table/m-p/4518980#M1068445</guid>
      <dc:creator>BH2408</dc:creator>
      <dc:date>2008-09-24T13:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Database load on BKPF table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-load-on-bkpf-table/m-p/4518981#M1068446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Your code is perfect but, i think the problem is something else. test by useing a if statement that your internal table is inital or not. but i dont think it will help you more..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Nov 2008 10:21:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-load-on-bkpf-table/m-p/4518981#M1068446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-01T10:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Database load on BKPF table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-load-on-bkpf-table/m-p/4518982#M1068447</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;First make sure that your driver Table is not Empty......This is a Thumb rule for For all Entries...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, I would suggest you to not go for FOR ALL ENTIRES with BKPF..Unless and untill you are very sure that your driver Table is not going to have a large number of records.....In case your Table is going to get a huge no of rows.....you will be getting a Short Dump in Production.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your Driver Table is having Large no of records, then your Workprocess may require the system resources(Memory &amp;amp; CPU time) more than what is fixed for any APPlication Server WorkProcess and hence you may get a Short Dump. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bettre you go for Select ...Endselect....this may take time but will save you from the more worst condition of getting a Shortdump in production server...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Nov 2008 17:48:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-load-on-bkpf-table/m-p/4518982#M1068447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-02T17:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Database load on BKPF table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-load-on-bkpf-table/m-p/4518983#M1068448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Do as Thomas has adviced. The records will be fetched much faster than before. I'm using the same logic in one of my program too. And of course check that it_ekbe is not empty before running the query on BKPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ajay,&lt;/P&gt;&lt;P&gt;In one of your posts I saw this statment given by you :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go with the Thumb rule of Performance Tunning: The number of Database Intercations should be minimal at the runtime, and use Field Symbols more and more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What will select...endselect do then ?&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;Advait&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Advait Gode on Nov 2, 2008 7:17 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Nov 2008 18:14:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-load-on-bkpf-table/m-p/4518983#M1068448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-02T18:14:24Z</dc:date>
    </item>
  </channel>
</rss>

