<?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: BSEG performance issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-performance-issue/m-p/6774580#M1463644</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; used all the key fields in BSEG table&lt;/P&gt;&lt;P&gt;&amp;gt; not really ... the last one is missing&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; But still I do not really see the problem.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yup, the last one is missing, but the issue is the same even if I add that one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Apr 2010 08:17:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-01T08:17:59Z</dc:date>
    <item>
      <title>BSEG performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-performance-issue/m-p/6774577#M1463641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How come i have used all the key fields in BSEG table in the WHERE condition but the runtime is still very slow? During debug, the process will be stuck for a long time in the select single statement from BSEG, however, if i try to input the same WHERE fields in SE16n, data is retrieved in just a second. Does the lack of mandt in the WHERE condition has something to do with it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single zlsch&lt;/P&gt;&lt;P&gt;        from bseg&lt;/P&gt;&lt;P&gt;        into i_clear-zlsch&lt;/P&gt;&lt;P&gt;        where bukrs = i_clear-bukrs&lt;/P&gt;&lt;P&gt;          and belnr = i_clear-belnr&lt;/P&gt;&lt;P&gt;          and gjahr = i_clear-gjahr&lt;/P&gt;&lt;P&gt;          and zlsch = 'C' or zlsch = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: edztan15 on Apr 1, 2010 9:56 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 07:52:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-performance-issue/m-p/6774577#M1463641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-01T07:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: BSEG performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-performance-issue/m-p/6774578#M1463642</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;&lt;/P&gt;&lt;P&gt;Check here!&lt;/P&gt;&lt;P&gt;[Quickly Retrieving FI document Data from BSEG|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417100)ID0608414050DB01579708719316768280End?blog=/pub/wlg/7692]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single zlsch&lt;/P&gt;&lt;P&gt;from bseg&lt;/P&gt;&lt;P&gt;into i_clear-zlsch&lt;/P&gt;&lt;P&gt;where bukrs = i_clear-bukrs&lt;/P&gt;&lt;P&gt;and belnr = i_clear-belnr&lt;/P&gt;&lt;P&gt;and gjahr = i_clear-gjahr&lt;/P&gt;&lt;P&gt;and zlsch = 'C' or zlsch = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here you are selecting single record zlsch then in where condition you are specify the same filed (C,E) it will reterive only one record!.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[check here|http://forums.sdn.sap.com/search.jspa?threadID=&amp;amp;q=BSEG&lt;EM&gt;performance&lt;/EM&gt;issue&amp;amp;objID=f234&amp;amp;dateRange=all&amp;amp;numResults=15&amp;amp;rankBy=10001]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use secondary index table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 08:02:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-performance-issue/m-p/6774578#M1463642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-01T08:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: BSEG performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-performance-issue/m-p/6774579#M1463643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; used all the key fields in BSEG table&lt;/P&gt;&lt;P&gt;not really ... the last one is missing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still I do not really see the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 08:15:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-performance-issue/m-p/6774579#M1463643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-01T08:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: BSEG performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-performance-issue/m-p/6774580#M1463644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt; used all the key fields in BSEG table&lt;/P&gt;&lt;P&gt;&amp;gt; not really ... the last one is missing&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; But still I do not really see the problem.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yup, the last one is missing, but the issue is the same even if I add that one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 08:17:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-performance-issue/m-p/6774580#M1463644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-01T08:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: BSEG performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-performance-issue/m-p/6774581#M1463645</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;what is a long time? Trace it with the SQL trace  (ST05) to get more details...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hermann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 08:22:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-performance-issue/m-p/6774581#M1463645</guid>
      <dc:creator>HermannGahm</dc:creator>
      <dc:date>2010-04-01T08:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: BSEG performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-performance-issue/m-p/6774582#M1463646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you pasted your code correctly, I believe it might be a simple issue of missing brackets:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select single zlsch from bseg into i_clear-zlsch
       where bukrs = i_clear-bukrs
         and belnr = i_clear-belnr
         and gjahr = i_clear-gjahr
         and ( zlsch = 'C' or zlsch = 'E' ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Remove the &lt;EM&gt;single&lt;/EM&gt; and you should see that this makes a difference. Might be off, but your conditions look odd without the bracket...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, harald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 08:42:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-performance-issue/m-p/6774582#M1463646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-01T08:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: BSEG performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-performance-issue/m-p/6774583#M1463647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; If you pasted your code correctly, I believe it might be a simple issue of missing brackets:&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;
&amp;gt; select single zlsch from bseg into i_clear-zlsch
&amp;gt;        where bukrs = i_clear-bukrs
&amp;gt;          and belnr = i_clear-belnr
&amp;gt;          and gjahr = i_clear-gjahr
&amp;gt;          and ( zlsch = 'C' or zlsch = 'E' ).
&amp;gt; &lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;gt; Remove the &lt;EM&gt;single&lt;/EM&gt; and you should see that this makes a difference. Might be off, but your conditions look odd without the bracket...&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Cheers, harald&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, i also just found out that this is the case! Although I pasted it correctly, I just realized that the last WHERE field is weird.  Adding bracket (like you suggested) or putting it in a range seems to fix the issue. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 08:53:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-performance-issue/m-p/6774583#M1463647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-01T08:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: BSEG performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-performance-issue/m-p/6774584#M1463648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not so weird once you know the rules behind the logical expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_70/en/ABENLOGEXP_BOOLE.htm" target="test_blank"&gt;http://help.sap.com/abapdocu_70/en/ABENLOGEXP_BOOLE.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I admit I have to look this up occasionally and rather use some brackets too many to be on the safe side &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 20:20:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bseg-performance-issue/m-p/6774584#M1463648</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2010-04-01T20:20:27Z</dc:date>
    </item>
  </channel>
</rss>

