<?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: ABAP Report Performance Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-report-performance-problem/m-p/1571567#M257993</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're going against BSAK and BSIS, using the document number and fiscal year. You should be using BSEG. You also need the company code from BSIS.&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, 12 Oct 2006 13:27:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-12T13:27:40Z</dc:date>
    <item>
      <title>ABAP Report Performance Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-report-performance-problem/m-p/1571557#M257983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;Check the folowing code and suggest me a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF BSIS-BLART = 'KR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE LIFNR  AS LIFNR2   FROM BSAK  INTO CORRESPONDING FIELDS OF ITAB WHERE  BELNR = ITAB-BELNR AND GJAHR = ITAB-GJAHR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE NAME1 AS NAME2 FROM LFA1 INTO CORRESPONDING FIELDS OF ITAB WHERE LIFNR  =  ITAB-LIFNR2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE:      42 ITAB-LIFNR2,  56 ITAB-NAME2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSEIF BSIS-BLART = 'SA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  SINGLE HKONT FROM BSIS INTO CORRESPONDING FIELDS OF ITAB WHERE BELNR = ITAB-BELNR  AND GJAHR =&lt;/P&gt;&lt;P&gt;ITAB-GJAHR AND  BUKRS = ITAB-BUKRS .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  SINGLE TXT20 FROM SKAT INTO CORRESPONDING FIELDS OF ITAB WHERE SAKNR = BSIS-HKONT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above query, the table BSAK, BSIS and SKAT contains lakhs and lakhs of record, its give time out dump in test server. Kindly provide me a solution for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Senthil Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2006 07:10:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-report-performance-problem/m-p/1571557#M257983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-12T07:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Report Performance Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-report-performance-problem/m-p/1571558#M257984</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;Avoid usage of INTO CORRESPONDING FIELDS of ITAB as this is a costly statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also make sure these are outside LOOP / ENDLOOP if at all its within .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See if you can use the index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;HR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2006 07:16:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-report-performance-problem/m-p/1571558#M257984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-12T07:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Report Performance Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-report-performance-problem/m-p/1571559#M257985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have changed like this, however in se30 it shows database as 75%. Suggest me some other alternative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if  itab-blart = 'KR'.&lt;/P&gt;&lt;P&gt;select single * from bsip where belnr = itab-refbn and gjahr =  itab-gjahr.&lt;/P&gt;&lt;P&gt;itab-lifnr2 = bsip-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from lfa1 where lifnr = itab-lifnr2.&lt;/P&gt;&lt;P&gt;itab-name2 = lfa1-name1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif itab-blart =  'SA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from bsis where belnr = itab-refbn and gjahr = itab-gjahr    .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-hkont = bsis-hkont.&lt;/P&gt;&lt;P&gt;select single * from skat where saknr = itab-hkont.&lt;/P&gt;&lt;P&gt;itab-txt20 = skat-txt20.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Senthil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2006 07:27:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-report-performance-problem/m-p/1571559#M257985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-12T07:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Report Performance Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-report-performance-problem/m-p/1571560#M257986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using these select statement in Loop...Endloop?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes, then instead of that use select...for all entries in ITAB...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha Deshmukh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2006 07:39:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-report-performance-problem/m-p/1571560#M257986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-12T07:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Report Performance Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-report-performance-problem/m-p/1571561#M257987</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;its inside a Select .. endselect.  like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from covp where kokrs eq itab-kokrs and&lt;/P&gt;&lt;P&gt;                             lednr eq '00' and&lt;/P&gt;&lt;P&gt;                             objnr eq itab-objnr and&lt;/P&gt;&lt;P&gt;                             versn eq '000' and&lt;/P&gt;&lt;P&gt;                             wrttp eq '04' and&lt;/P&gt;&lt;P&gt;                             gjahr ge fyr.&lt;/P&gt;&lt;P&gt;                               itab-belnr = covp-refbn.&lt;/P&gt;&lt;P&gt;      if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;        itab-kstar = covp-kstar.&lt;/P&gt;&lt;P&gt;        itab-budat = covp-budat.&lt;/P&gt;&lt;P&gt;        itab-refbn = covp-refbn.&lt;/P&gt;&lt;P&gt;        itab-gjahr = covp-gjahr.&lt;/P&gt;&lt;P&gt;       itab-ebeln = covp-ebeln.&lt;/P&gt;&lt;P&gt;        itab-ebelp = covp-ebelp.&lt;/P&gt;&lt;P&gt;        itab-awtyp = covp-awtyp.&lt;/P&gt;&lt;P&gt;        itab-mbgbtr = covp-mbgbtr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the above coding comes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, How can i proceed wit this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2006 07:58:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-report-performance-problem/m-p/1571561#M257987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-12T07:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Report Performance Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-report-performance-problem/m-p/1571562#M257988</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;Avoid using select-endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead, create an itab with the same structure as covp and use 'into table'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_covp like table of covp with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * &lt;/P&gt;&lt;P&gt;from covp &lt;/P&gt;&lt;P&gt;into table it_covp&lt;/P&gt;&lt;P&gt;where kokrs eq itab-kokrs and&lt;/P&gt;&lt;P&gt;lednr eq '00' and&lt;/P&gt;&lt;P&gt;objnr eq itab-objnr and&lt;/P&gt;&lt;P&gt;versn eq '000' and&lt;/P&gt;&lt;P&gt;wrttp eq '04' and&lt;/P&gt;&lt;P&gt;gjahr ge fyr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandeep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls mark helpful answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: sandeep kumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2006 08:27:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-report-performance-problem/m-p/1571562#M257988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-12T08:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Report Performance Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-report-performance-problem/m-p/1571563#M257989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Senthil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My advice would be to use internal tables...So you can collect all the information from covp into itab first. Next So use the select with for all entries in itab variation to realise your objective.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2006 08:31:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-report-performance-problem/m-p/1571563#M257989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-12T08:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Report Performance Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-report-performance-problem/m-p/1571564#M257990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As it is likly you get the same Vendor or Account several times. The SKAT and LFA1 selects should be done outside of any loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or create reference tables as you you loop. and check those tables before you go to the DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MattG.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2006 08:35:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-report-performance-problem/m-p/1571564#M257990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-12T08:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Report Performance Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-report-performance-problem/m-p/1571565#M257991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    If you are sure that you mostly access one record at a time from these tables Enable Single Record Buffering for these tables and use primary key to select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want multiple rows create a local structure and its internaltable with the fileds you want and use SELECT INTO TABLE itab instead of select endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are only few records in the table and you mostly read from it use full table buffering.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make your Where clause as simple as possible avoid LIKE, NOT etc and have all the primay key fields in the Where clause if possible this will use primary index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2006 08:40:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-report-performance-problem/m-p/1571565#M257991</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2006-10-12T08:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Report Performance Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-report-performance-problem/m-p/1571566#M257992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U haven't used the key feilds in the LFA1.There should be the key feild lifnr followed by your required feild to enhance the performance because it retreives values from DB based on the Primary index or the secondary indexes. Also in the BSAK table try using the Bukrs feild and then followed by your LIFNR feild. this will certainly enhance your select statement performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still if you face the same probelm , try creating secondary indexes for both the tables with the key feilds followed by your required feilds.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2006 08:52:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-report-performance-problem/m-p/1571566#M257992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-12T08:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Report Performance Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-report-performance-problem/m-p/1571567#M257993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're going against BSAK and BSIS, using the document number and fiscal year. You should be using BSEG. You also need the company code from BSIS.&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, 12 Oct 2006 13:27:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-report-performance-problem/m-p/1571567#M257993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-12T13:27:40Z</dc:date>
    </item>
  </channel>
</rss>

