<?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: Performance Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/8354055#M1640382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Clemens. I never used ORACLE HINT..&lt;/P&gt;&lt;P&gt;Can you please suggest, if I can use ORACLE HINT in DB2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sireesha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 06 Nov 2011 23:17:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-11-06T23:17:07Z</dc:date>
    <item>
      <title>Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/8354049#M1640376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; I am facing peroformane issue with &lt;STRONG&gt;faglflexa&lt;/STRONG&gt; table select statement,.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In table there is standard index 3 '&lt;STRONG&gt;Index using BSEG key&lt;/STRONG&gt;'   (  index fields Sequence : RCLNT  BELNR   RBUKRS   GJAHR   BUZEI   RLDNR   DOCLN  ), but i have only few index fields match with the BSID table.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help to correct if the below select statement is incorrect in performance point of view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SELECT ryear docnr rbukrs buzei prctr hsl segment INTO TABLE it_faglflexa&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                                         &lt;STRONG&gt;FROM faglflexa&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                                         &lt;STRONG&gt;FOR ALL ENTRIES IN it_bsid&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                                         &lt;STRONG&gt;WHERE docnr  EQ it_bsid-belnr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                                         &lt;STRONG&gt;AND   rbukrs EQ it_bsid-bukrs&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                                         &lt;STRONG&gt;AND   gjahr  EQ it_bsid-gjahr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                                         &lt;STRONG&gt;AND   ryear  EQ it_bsid-gjahr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;                                         &lt;STRONG&gt;AND   buzei EQ it_bsid-buzei.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Also i am trying to read the above internal table as below to fetch segment field from it_faglflexa , please correct if i am doing wrong.&lt;/P&gt;&lt;P&gt;it_output contains bsid data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at it_ouput into wa_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF wa_output-profit_cntr IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      READ TABLE it_faglflexa into ls_faglflexa with key rbukrs = wa_output-bukrs&lt;/P&gt;&lt;P&gt;                                                         docnr  = wa_output-document_no&lt;/P&gt;&lt;P&gt;                                                         ryear  = wa_output-year&lt;/P&gt;&lt;P&gt;                                                         buzei  = wa_output-buzei.&lt;/P&gt;&lt;P&gt;      if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;        wa_output-segment = ls_faglflexa-segment.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;endif.&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;Thanks&lt;/P&gt;&lt;P&gt;Sireesha&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sireesha_SAP on Nov 4, 2011 3:21 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sireesha_SAP on Nov 4, 2011 3:24 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sireesha_SAP on Nov 4, 2011 3:25 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 22:40:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/8354049#M1640376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-03T22:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/8354050#M1640377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any reply Please&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sireesha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2011 02:58:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/8354050#M1640377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-04T02:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/8354051#M1640378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sireesha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 2 separate fields in table - DOCNR and BELNR (values are same though).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Index you want to use is having BELNR in it, but you are using DOCNR in your select. Changing it to BELNR should help. Still, I think that your query is using most of the fields in the primary key and should be fast enough. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, check that if you have a fixed value(s) of RLDNR, include it is query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you take care that  it_bsid is not blank before you use FAE, also make sure that it_bsid is not having any row with blank belnr value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort it_faglflexa table and use BINARY SEARCH in READ, it will help a lot if data in itab is large. Search abt BINARY SEARCH if you have any doubts in usage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the problem still persists, pls share the volume of data and time stats.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Diwakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Nov 2011 03:34:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/8354051#M1640378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-04T03:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/8354052#M1640379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Diwakar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some more help.&lt;/P&gt;&lt;P&gt;If I use primary key in my WHERE selection should i follow field sequence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need all 3 fixed values ( L0, YS, YQ ) from  RLDNR field, should i fill it in range and pass in WHERE selection  or can i ignore RLDNR in WHERE selection..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help...&lt;/P&gt;&lt;P&gt;&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;Sireesha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Nov 2011 22:00:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/8354052#M1640379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-05T22:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/8354053#M1640380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sireesha_SAP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;probably BSID table has many entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP has a very bad default value for the package size with FOR ALL ENTRIES. I remember an interesting blog about that (search!). You could ask for change of system parameter or override with ORACLE HINT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check Here: [SAP Support case "FOR ALL ENTRIES disaster|&lt;A class="jive_macro jive_macro_blogpost" href="https://community.sap.com/" __jive_macro_name="blogpost" modifiedtitle="true" __default_attr="58764"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Clemens Li on Nov 5, 2011 11:29 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Nov 2011 22:27:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/8354053#M1640380</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-11-05T22:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/8354054#M1640381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sireesha,&lt;/P&gt;&lt;P&gt;One of the most under used, yet which gives considerable better performance is use of &amp;lt;Field Symbol&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make a field symbol of your internal table type (or type ANY (generic)) and also declare Work Area of same type and use it while reading the table. What this does is, it access data through reference, hence quicker response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please go thru the document: &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/SAPHELP_NW04s/helpdata/EN/fc/eb387a358411d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/SAPHELP_NW04s/helpdata/EN/fc/eb387a358411d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope, you find this useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Reetesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Nov 2011 16:28:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/8354054#M1640381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-06T16:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/8354055#M1640382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Clemens. I never used ORACLE HINT..&lt;/P&gt;&lt;P&gt;Can you please suggest, if I can use ORACLE HINT in DB2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sireesha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Nov 2011 23:17:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/8354055#M1640382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-06T23:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/8354056#M1640383</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;PRE&gt;&lt;CODE&gt;SELECT ryear docnr rbukrs buzei prctr hsl segment INTO TABLE it_faglflexa
FROM faglflexa
FOR ALL ENTRIES IN it_bsid
WHERE docnr EQ it_bsid-belnr
AND rbukrs EQ it_bsid-bukrs
AND gjahr EQ it_bsid-gjahr
AND ryear EQ it_bsid-gjahr
AND buzei EQ it_bsid-buzei
%_hints oracle 'index(FAGLFLEXA"3")'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For  using index  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Deepak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 10:20:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/8354056#M1640383</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2011-11-07T10:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/8354057#M1640384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Sireesha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For peroformane you follow the below points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Check for initialization. i.e  If it_bsid is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Select the table field with sequence and passing fields in where also in sequence. i.e&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ryear docnr rbukrs prctr segment hsl  buzei INTO TABLE it_faglflexa&lt;/P&gt;&lt;P&gt;FROM faglflexa&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN it_bsid&lt;/P&gt;&lt;P&gt;WHERE ryear EQ it_bsid-gjahr&lt;/P&gt;&lt;P&gt;AND docnr EQ it_bsid-belnr&lt;/P&gt;&lt;P&gt;AND rbukrs EQ it_bsid-bukrs&lt;/P&gt;&lt;P&gt;AND gjahr EQ it_bsid-gjahr&lt;/P&gt;&lt;P&gt;AND buzei EQ it_bsid-buzei.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You apply the above code. It wiil definitly increase the performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 11:16:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/8354057#M1640384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-07T11:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/8354058#M1640385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SELECT looks pretty well optimized. As mentioned earlier, look at the READ statement. It's done inside a loop, so unless you are using sorted or hashed tables it is a nested LOOP. This is the first place to start looking - not the SELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 14:59:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/8354058#M1640385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-07T14:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/8354059#M1640386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Check if IT_BSID is initial.&lt;/P&gt;&lt;P&gt;2. Try to get RLDNR in the query if possible. The rest of the query looks fine.&lt;/P&gt;&lt;P&gt;3. Sort and do the Binary search on read statement if possible within the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would advise against using oracle hint - as it makes query very rigid and might cause issues in production.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark this thread closed if your query is resolved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 08:46:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/8354059#M1640386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-10T08:46:00Z</dc:date>
    </item>
  </channel>
</rss>

