<?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: Strange performance for BSEG in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508245#M234611</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob - of course it should be slower in case of using or. But  &lt;/P&gt;&lt;P&gt;Max write "very slow" for only a few sinlge records... For me it still is strange behaviour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've checked standard bseg read (SE16N) and select options with some values. It works very fast and my optimiser works fine: results of explanation :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;  "MANDT" , "BUKRS" , "BELNR" , "GJAHR" , "PAGENO" , "TIMESTMP" , "PAGELG" , "VARDATA"&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;  "RFBLG"&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;  "MANDT" = ? AND "BUKRS" = ? AND ( "BELNR" = ? OR "BELNR" = ? OR "BELNR" = ? OR "BELNR" = ? OR&lt;/P&gt;&lt;P&gt;  "BELNR" = ? )&lt;/P&gt;&lt;P&gt;ORDER BY&lt;/P&gt;&lt;P&gt;  "MANDT" , "BUKRS" , "BELNR" , "GJAHR" , "PAGENO"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execution Plan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OWNER              TABLENAME                      COLUMN OR INDEX                STRATEGY                                 PAGECOUNT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAPEHD             RFBLG                                                         DIFFERENT STRATEGIES FOR OR-TERMS              1592&lt;/P&gt;&lt;P&gt;                                                                                RANGE CONDITION FOR KEY&lt;/P&gt;&lt;P&gt;                                                  MANDT                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                  BUKRS                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                  BELNR                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                                                RANGE CONDITION FOR KEY&lt;/P&gt;&lt;P&gt;                                                  MANDT                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                  BUKRS                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                  BELNR                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                                                RANGE CONDITION FOR KEY&lt;/P&gt;&lt;P&gt;                                                  MANDT                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                  BUKRS                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                  BELNR                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                                                RANGE CONDITION FOR KEY&lt;/P&gt;&lt;P&gt;                                                  MANDT                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                  BUKRS                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                  BELNR                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                                                RANGE CONDITION FOR KEY&lt;/P&gt;&lt;P&gt;                                                  MANDT                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                  BUKRS                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                  BELNR                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                                                RESULT IS COPIED   , COSTVALUE IS           25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it works fine at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Jacek Slowikowski&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Aug 2006 14:49:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-31T14:49:05Z</dc:date>
    <item>
      <title>Strange performance for BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508236#M234602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a simple query on BSEG:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select belnr buzei bschl umskz from bseg&lt;/P&gt;&lt;P&gt;  into (bseg-belnr, bseg-buzei, bseg-bschl, bseg-umskz)&lt;/P&gt;&lt;P&gt;               where bukrs = p_bukrs&lt;/P&gt;&lt;P&gt;                 and belnr in s_belnr.&lt;/P&gt;&lt;P&gt;    move-corresponding bseg to appo_bseg.&lt;/P&gt;&lt;P&gt;    append appo_bseg.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the select-option S_BELNR is filled with:&lt;/P&gt;&lt;P&gt;from &amp;lt;number&amp;gt; to &amp;lt;number&amp;gt;, the select is very fast.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the select-option S_BELNR is filled with only some single values (number), the select becomes very slow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does any of you know the why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 13:34:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508236#M234602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T13:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Strange performance for BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508237#M234603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;probpably the optimizer is doing optimisation in bad way.&lt;/P&gt;&lt;P&gt;When getting a list of values in S_BELNR, optimizer is doing or statment.&lt;/P&gt;&lt;P&gt;...where S_belnr1 or s_belnr2. MAybe some in that step is going not well.&lt;/P&gt;&lt;P&gt;TO work fast it should be interpreted as &lt;/P&gt;&lt;P&gt;select....where ( bukrs = xy and belnr = zz ) or ( bukrs = xy and belnr = zz2 )  and so on to use primary key of that table . If it isnt done that way by optimiser , it is doing sequential read of table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried STO5N trace and Explanation of that query ??&lt;/P&gt;&lt;P&gt;What results about optimiser strategy it gives back ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&amp;lt; JAcek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Jacek Slowikowski&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 13:41:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508237#M234603</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T13:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Strange performance for BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508238#M234604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sometime is use to happend with the select statement, sometime though we use to give the right data in the selection screen the select statement takes more time to get the data from the database.&lt;/P&gt;&lt;P&gt;You try with correspoing field statement and check the changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 13:52:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508238#M234604</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T13:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Strange performance for BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508239#M234605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i don't understand , why do'nt you fill gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is your selection over several fiscal years?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt; without gjahr you can get duplicate doc-no's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Andreas Mann&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 13:57:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508239#M234605</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2006-08-31T13:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Strange performance for BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508240#M234606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andreas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're right I'm not using fiscal year, but I've to update an old program reading BSEG table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The old select I found didn't use the company code, it was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select belnr buzei bschl umskz from bseg&lt;/P&gt;&lt;P&gt;    into (bseg-belnr, bseg-buzei, bseg-bschl, bseg-umskz)&lt;/P&gt;&lt;P&gt;               where belnr in s_belnr.&lt;/P&gt;&lt;P&gt;    move-corresponding bseg to appo_bseg.&lt;/P&gt;&lt;P&gt;    append appo_bseg.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a second step the program checks company code and fiscal year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I added the company code in WHERE condition to improve the performance and after I noticed the strange behavior I wrote above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I only would like to understand that behavior and the fiscal year is not interesting for this question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Jacek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe it's a problem on optimisation of SQL query too, but I've not ST05N in &lt;/P&gt;&lt;P&gt;my release (4.6C) and trx ST05 doesn't work very well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 14:17:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508240#M234606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T14:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Strange performance for BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508241#M234607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree that it's a database issue - so your best bet is just to take it to your DBAs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran your code with no real differences that I could see.&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, 31 Aug 2006 14:21:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508241#M234607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T14:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Strange performance for BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508242#M234608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi MAx !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will check st05 on our old 4.6 C. (currently i am workin on 4.7 but our 4.6 C is still running :).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&amp;lt; JAcek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 14:26:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508242#M234608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T14:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Strange performance for BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508243#M234609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok you have right. ST05 isnt working fine with cluster tables on 46 C.&lt;/P&gt;&lt;P&gt;But i have proposal for you. Check what DB you have and try tu use HINTS in your abap query to force db to use rigt optimisation method. You have to check what are supported hints for your db.&lt;/P&gt;&lt;P&gt;in abap it looks like&lt;/P&gt;&lt;P&gt;select.....from....&lt;/P&gt;&lt;P&gt;where....&lt;/P&gt;&lt;P&gt;%_HINTS ADABAS 'INDEX("SPFLI" "SPFLI~001")'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is put after where statement. (in 4.7 - MaxDB)&lt;/P&gt;&lt;P&gt;Very often it is a good solution to force the optimiser to work fine &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&amp;lt; JAcek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Jacek Slowikowski&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Jacek Slowikowski&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 14:32:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508243#M234609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T14:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Strange performance for BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508244#M234610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I take it back - both selects ran pretty quickly and that fooled me, but when I looked at the EXPLAIN, the indivdual values took about twice as long to run as the between.&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, 31 Aug 2006 14:44:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508244#M234610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T14:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Strange performance for BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508245#M234611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob - of course it should be slower in case of using or. But  &lt;/P&gt;&lt;P&gt;Max write "very slow" for only a few sinlge records... For me it still is strange behaviour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've checked standard bseg read (SE16N) and select options with some values. It works very fast and my optimiser works fine: results of explanation :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;  "MANDT" , "BUKRS" , "BELNR" , "GJAHR" , "PAGENO" , "TIMESTMP" , "PAGELG" , "VARDATA"&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;  "RFBLG"&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;  "MANDT" = ? AND "BUKRS" = ? AND ( "BELNR" = ? OR "BELNR" = ? OR "BELNR" = ? OR "BELNR" = ? OR&lt;/P&gt;&lt;P&gt;  "BELNR" = ? )&lt;/P&gt;&lt;P&gt;ORDER BY&lt;/P&gt;&lt;P&gt;  "MANDT" , "BUKRS" , "BELNR" , "GJAHR" , "PAGENO"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execution Plan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OWNER              TABLENAME                      COLUMN OR INDEX                STRATEGY                                 PAGECOUNT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAPEHD             RFBLG                                                         DIFFERENT STRATEGIES FOR OR-TERMS              1592&lt;/P&gt;&lt;P&gt;                                                                                RANGE CONDITION FOR KEY&lt;/P&gt;&lt;P&gt;                                                  MANDT                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                  BUKRS                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                  BELNR                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                                                RANGE CONDITION FOR KEY&lt;/P&gt;&lt;P&gt;                                                  MANDT                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                  BUKRS                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                  BELNR                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                                                RANGE CONDITION FOR KEY&lt;/P&gt;&lt;P&gt;                                                  MANDT                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                  BUKRS                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                  BELNR                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                                                RANGE CONDITION FOR KEY&lt;/P&gt;&lt;P&gt;                                                  MANDT                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                  BUKRS                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                  BELNR                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                                                RANGE CONDITION FOR KEY&lt;/P&gt;&lt;P&gt;                                                  MANDT                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                  BUKRS                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                  BELNR                               (USED KEY COLUMN)&lt;/P&gt;&lt;P&gt;                                                                                RESULT IS COPIED   , COSTVALUE IS           25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it works fine at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Jacek Slowikowski&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 14:49:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508245#M234611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T14:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Strange performance for BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508246#M234612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your DB version &amp;gt; oracle 8i?&lt;/P&gt;&lt;P&gt;When you use range for BELNR, native SQL uses operator BETWEEN in the where condition and uses FILTER operation to select records, and when single values are used, Operator IN is used in the where condition and operation INLIST ITERATIOR is used.&lt;/P&gt;&lt;P&gt;INLIST ITERATOR iterates over each value afte IN in the where condition. &lt;/P&gt;&lt;P&gt;Before 8i there was no INLIST ITERATOR and IN used to take more time.&lt;/P&gt;&lt;P&gt;I think same number of single values takes more time than using range even with INLIST ITERATOr being used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 15:37:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508246#M234612</guid>
      <dc:creator>sridhar_k1</dc:creator>
      <dc:date>2006-08-31T15:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Strange performance for BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508247#M234613</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;"Very slow" means you can go to wash your car while the select is running and I'm not sure it'll be finised as soon as you come back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank Jacek, but HINTS seems not to find out any positive effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 15:40:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508247#M234613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T15:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Strange performance for BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508248#M234614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sridhar &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My DB is ORACLE version 9.2.0.5.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 15:44:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508248#M234614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T15:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Strange performance for BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508249#M234615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, as I said earlier - it's a DBA issue. When was the last time they did an index or database re-org?&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, 31 Aug 2006 15:49:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508249#M234615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T15:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Strange performance for BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508250#M234616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;:/. I don't have any more ideas. I have MaxDB not Oracle sa i cant help any more with that topic.&lt;/P&gt;&lt;P&gt;But if you will find a solution or a bug please describe it here. I'm very interested in the reason of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wishing luck, Jacek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 15:51:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508250#M234616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T15:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Strange performance for BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508251#M234617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Rob cites... you need to start by running "stats" (a table re-org) on the table to guarantee that the table and indexes are built to maximize performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way, the Optimizer has the best chance of using the best index for record extraction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 15:54:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508251#M234617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T15:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Strange performance for BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508252#M234618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know, but I can ask it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working as freelance for a big company where several consulting  companies are working too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of these consulting companies manages SAP system administration and, if the problem is not very important, it usually takes a long time to give an answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I tried to find a solution by myself and with your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 16:04:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508252#M234618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T16:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Strange performance for BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508253#M234619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If performance is poor on BSEG, it's probably not a small problem. Fixing it may speed up other programs.&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, 31 Aug 2006 16:16:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508253#M234619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T16:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Strange performance for BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508254#M234620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully, the client is running "stats" on highly, dynamic tables (like VBAK, VBAP, EKKO, EKPO, BESG, BKPF, etc) on a regularly, scheduled basis. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, that is a suggestion that could "earn you some big points" with the customer after they do it, and their system performance improves noticably.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 16:22:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508254#M234620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-31T16:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Strange performance for BSEG</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508255#M234621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just deleted stats of table RFBLG in my DEV system, it took 36 times more time to select data from BSEG using sinlge vales than ranges. Stats might be very old or corrupted in ur system, rebulding them might improve performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2006 16:22:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/strange-performance-for-bseg/m-p/1508255#M234621</guid>
      <dc:creator>sridhar_k1</dc:creator>
      <dc:date>2006-08-31T16:22:48Z</dc:date>
    </item>
  </channel>
</rss>

