<?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: Time out error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-error/m-p/4387159#M1043301</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If its a time out error...go for optimization techniques..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) split the joins&lt;/P&gt;&lt;P&gt;2) give approrpiate where conditions&lt;/P&gt;&lt;P&gt;3)give the where clause as of in secondary index( if any )&lt;/P&gt;&lt;P&gt;4) if no remedy execute in background&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Aug 2008 08:36:13 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2008-08-26T08:36:13Z</dc:date>
    <item>
      <title>Time out error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-error/m-p/4387154#M1043296</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;&lt;/P&gt;&lt;P&gt;The selection query with the join statement is taking too long time . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define d_select_bfo.&lt;/P&gt;&lt;P&gt;  select b&lt;SUB&gt;bukrs b&lt;/SUB&gt;gjahr b&lt;SUB&gt;belnr  b&lt;/SUB&gt;gsber b&lt;SUB&gt;prctr f&lt;/SUB&gt;blart f~bldat&lt;/P&gt;&lt;P&gt;        from  &amp;amp;1 as b&lt;/P&gt;&lt;P&gt;        inner join BKPF as f&lt;/P&gt;&lt;P&gt;           on  b&lt;SUB&gt;bukrs = f&lt;/SUB&gt;bukrs&lt;/P&gt;&lt;P&gt;           and b&lt;SUB&gt;belnr = f&lt;/SUB&gt;belnr&lt;/P&gt;&lt;P&gt;           and b&lt;SUB&gt;gjahr = f&lt;/SUB&gt;gjahr&lt;/P&gt;&lt;P&gt;        into table itb_selglob_tmp&lt;/P&gt;&lt;P&gt;        where b~bukrs   in s_bukrs&lt;/P&gt;&lt;P&gt;          and b~gjahr   in s_gjahr&lt;/P&gt;&lt;P&gt;          and b~belnr   in s_belnr&lt;/P&gt;&lt;P&gt;          and f~blart   in w_blart&lt;/P&gt;&lt;P&gt;          and ( b~gsber in l_gsber&lt;/P&gt;&lt;P&gt;             or b~prctr in l_prctr ).&lt;/P&gt;&lt;P&gt;end-of-definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;1 = BFOD_A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This query i have changed to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select bukrs belnr gjahr gsber prctr from &amp;amp;1&lt;/P&gt;&lt;P&gt;           into table itb_bfod_a&lt;/P&gt;&lt;P&gt;           where bukrs in s_bukrs&lt;/P&gt;&lt;P&gt;               and  belnr in s_belnr&lt;/P&gt;&lt;P&gt;               and  gjahr in s_gjahr&lt;/P&gt;&lt;P&gt;               and ( gsber  in l_gsber or prctr in l_prctr ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if not itb_bfod_a[] is initial.&lt;/P&gt;&lt;P&gt;       sort itb_bfod_a by bukrs belnr gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      select bukrs belnr gjahr blart bldat&lt;/P&gt;&lt;P&gt;             from bkpf into table itb_bkpf&lt;/P&gt;&lt;P&gt;             for all entries in itb_bfod_a&lt;/P&gt;&lt;P&gt;             where bukrs = itb_bfod_a-bukrs&lt;/P&gt;&lt;P&gt;                 and belnr = itb_bfod_a-belnr&lt;/P&gt;&lt;P&gt;                 and gjahr = itb_bfod_a-gjahr&lt;/P&gt;&lt;P&gt;                 and blart in w_blart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This query also is taking too long time..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me out on this issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am working on 4.C version....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudhakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 08:17:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-error/m-p/4387154#M1043296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-26T08:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Time out error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-error/m-p/4387155#M1043297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dont use joines...Because join and all performance issue...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so u need to use loop and read statement..So it avoid the timings&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;Prabu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 08:19:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-error/m-p/4387155#M1043297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-26T08:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Time out error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-error/m-p/4387156#M1043298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joins are not the sole issue to this. So do not just assume you know the answer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would first try reading BKPF table first. This will greatly reduce the number of records based on the document type field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 08:22:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-error/m-p/4387156#M1043298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-26T08:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Time out error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-error/m-p/4387157#M1043299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudhakar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my opinion, your second option is better ( for all entries ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it takes a long time, this is also because your are retrieving data in tables that are among the hugest table in SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you can try is to restrict on criteria like BLART, ...etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Erwan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 08:24:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-error/m-p/4387157#M1043299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-26T08:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Time out error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-error/m-p/4387158#M1043300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use for all entries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Murali Papana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 08:29:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-error/m-p/4387158#M1043300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-26T08:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Time out error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-error/m-p/4387159#M1043301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If its a time out error...go for optimization techniques..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) split the joins&lt;/P&gt;&lt;P&gt;2) give approrpiate where conditions&lt;/P&gt;&lt;P&gt;3)give the where clause as of in secondary index( if any )&lt;/P&gt;&lt;P&gt;4) if no remedy execute in background&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 08:36:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-error/m-p/4387159#M1043301</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-08-26T08:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Time out error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-error/m-p/4387160#M1043302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't believe the simplistic "use for all entries".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your join condition between BFOD_A and BKPF looks fine. If the selection ranges are empty when the select is executed, it will run a long time no matter what.&lt;/P&gt;&lt;P&gt;In order to use the secondary index on BKPF-BLART (in case you're dealing with just one document type) you must also select by B~BSTAT = space. Try to add this to the JOIN select statement.&lt;/P&gt;&lt;P&gt;Also, S_BUKRS should have maximum &lt;EM&gt;one&lt;/EM&gt; value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 08:47:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-error/m-p/4387160#M1043302</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-08-26T08:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Time out error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-error/m-p/4387161#M1043303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your select query looks fine even using For all entries will hardly increase performance, it is just becouse of high volume of data that it is giving time out&lt;/P&gt;&lt;P&gt;Execute the program in background or talk to basis gyes to increase the time slice for the program so that it can be executed in forgraound&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2008 08:56:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-error/m-p/4387161#M1043303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-26T08:56:19Z</dc:date>
    </item>
  </channel>
</rss>

