<?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 problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226889#M1208383</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kittu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;creating Index for the field knttp in the table EBAN its not a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it necessary to refer to the created index within the abap code ?&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;sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Feb 2009 20:42:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-24T20:42:21Z</dc:date>
    <item>
      <title>performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226879#M1208373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Firends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this report needs almost 3 hours in the Batch Mode .&lt;/P&gt;&lt;P&gt;Do you see any possibility to optimize it bacause of the Performance in order &lt;/P&gt;&lt;P&gt;to get it faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ilhan Ertas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF ty_purchase_dat.
        INCLUDE STRUCTURE ebkn.
TYPES: preis  TYPE bp_wpl, 
       waers  TYPE waers,
       ername TYPE ernam.
TYPES: END OF ty_purchase_dat.

TABLES: eban, zupdpreq, aufk, ebkn .


DATA: lt_eban      TYPE TABLE OF eban,
      ls_eban      TYPE eban,
      lt_zupdpreq  TYPE TABLE OF zupdpreq,
      ls_zupdpreq  TYPE zupdpreq,
      lt_aufk      TYPE TABLE OF aufk,
      ls_aufk      TYPE aufk,
      lt_ebkn      TYPE TABLE OF ebkn,
      ls_ebkn      TYPE ebkn,
      lt_purhdat   TYPE TABLE OF ty_purchase_dat,
      ls_purhdat   TYPE          ty_purchase_dat,
      ls_pur       TYPE          ty_purchase_dat,
      lv_obj       TYPE          bp_objekt.

*SELECT  * INTO TABLE lt_eban FROM eban
*                            WHERE knttp EQ 'F'.

SELECT * INTO CORRESPONDING FIELDS OF TABLE lt_purhdat
                            FROM       ebkn AS a
                            INNER JOIN eban AS b ON
                            a~banfn = b~banfn    AND
                            a~bnfpo = b~bnfpo
                            WHERE b~knttp EQ 'F'.

SELECT * INTO TABLE lt_zupdpreq FROM zupdpreq.


LOOP AT lt_purhdat INTO ls_purhdat.

  READ TABLE lt_zupdpreq INTO ls_zupdpreq
                         WITH KEY banfn = ls_purhdat-banfn
                                  bnfpo = ls_purhdat-bnfpo.
  IF sy-subrc EQ 4.
    IF NOT ls_purhdat-aufnr IS INITIAL.
      lv_obj =  ls_purhdat-aufnr.
      CALL FUNCTION 'Z_PM_SRM'
        EXPORTING
          wrt   = ls_purhdat-preis
          objnr = lv_obj
          waers = ls_purhdat-waers.
*
      ls_zupdpreq-banfn  = ls_purhdat-banfn.
      ls_zupdpreq-bnfpo  = ls_purhdat-bnfpo.
      ls_zupdpreq-aufnr  = ls_purhdat-aufnr.
      ls_zupdpreq-erdat  = sy-datum.
      ls_zupdpreq-ernam  = sy-uname.
      ls_zupdpreq-preis  = ls_purhdat-preis.
      INSERT INTO zupdpreq VALUES ls_zupdpreq.
    ENDIF.
  ENDIF.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide a more informative subject.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moving to the correct forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Feb 24, 2009 10:25 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 12:25:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226879#M1208373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T12:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226880#M1208374</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 into corresponding sattement..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;decalre the internal tables with the fields u require and then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;field1 a&lt;/SUB&gt;field2 b~field1FROM       ebkn AS a&lt;/P&gt;&lt;P&gt;                            INNER JOIN eban AS b ON&lt;/P&gt;&lt;P&gt;                            a&lt;SUB&gt;banfn = b&lt;/SUB&gt;banfn    AND&lt;/P&gt;&lt;P&gt;                            a&lt;SUB&gt;bnfpo = b&lt;/SUB&gt;bnfpo&lt;/P&gt;&lt;P&gt;into table lt_purhdat&lt;/P&gt;&lt;P&gt;                            WHERE b~knttp EQ 'F'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select field1 feild2 from zupdpreq into table  lt_zupdpreq .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;sort lt_zupdpreq  by banfn bafpo.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_purhdat INTO ls_purhdat.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  READ TABLE lt_zupdpreq INTO ls_zupdpreq&lt;/P&gt;&lt;P&gt;                         WITH KEY banfn = ls_purhdat-banfn&lt;/P&gt;&lt;P&gt;                                  bnfpo = ls_purhdat-bnfpo&lt;/P&gt;&lt;P&gt;binary search.&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 4.&lt;/P&gt;&lt;P&gt;    IF NOT ls_purhdat-aufnr IS INITIAL.&lt;/P&gt;&lt;P&gt;      lv_obj =  ls_purhdat-aufnr.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'Z_PM_SRM'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          wrt   = ls_purhdat-preis&lt;/P&gt;&lt;P&gt;          objnr = lv_obj&lt;/P&gt;&lt;P&gt;          waers = ls_purhdat-waers.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;      ls_zupdpreq-banfn  = ls_purhdat-banfn.&lt;/P&gt;&lt;P&gt;      ls_zupdpreq-bnfpo  = ls_purhdat-bnfpo.&lt;/P&gt;&lt;P&gt;      ls_zupdpreq-aufnr  = ls_purhdat-aufnr.&lt;/P&gt;&lt;P&gt;      ls_zupdpreq-erdat  = sy-datum.&lt;/P&gt;&lt;P&gt;      ls_zupdpreq-ernam  = sy-uname.&lt;/P&gt;&lt;P&gt;      ls_zupdpreq-preis  = ls_purhdat-preis.&lt;/P&gt;&lt;P&gt;      INSERT INTO zupdpreq VALUES ls_zupdpreq.&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;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 12:30:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226880#M1208374</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2009-02-24T12:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226881#M1208375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi:&lt;/P&gt;&lt;P&gt;1. In stead using select * , use select &amp;lt;field list. &lt;/P&gt;&lt;P&gt;2. avoid corresponding fields &lt;/P&gt;&lt;P&gt;3. use open cursor  as &lt;/P&gt;&lt;P&gt;[Link|http://help.sap.com/saphelp_nw04/helpdata/EN/fc/eb3b23358411d1829f0000e829fbfe/content.htm]&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 12:30:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226881#M1208375</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T12:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226882#M1208376</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; Suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Always your performance depends on the select statement and number of fields,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you restrict your selection in the select statement rather than using * .&lt;/P&gt;&lt;P&gt;try to create internal table  with selected fields and select the same fields in the select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in the second select statement try to put any filter(condition) in your select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and Also if possible Use your selection fields in your select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amitteja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 12:32:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226882#M1208376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T12:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226883#M1208377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Avoid into corresponding fields of ..&lt;/P&gt;&lt;P&gt;Sort lt_zupdpreq  .. and while reading use binary search ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 12:35:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226883#M1208377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T12:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226884#M1208378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT * INTO CORRESPONDING FIELDS OF TABLE lt_purhdat&lt;/P&gt;&lt;P&gt;                            FROM       ebkn AS a&lt;/P&gt;&lt;P&gt;                            INNER JOIN eban AS b ON&lt;/P&gt;&lt;P&gt;                            a&lt;SUB&gt;banfn = b&lt;/SUB&gt;banfn    AND&lt;/P&gt;&lt;P&gt;                            a&lt;SUB&gt;bnfpo = b&lt;/SUB&gt;bnfpo&lt;/P&gt;&lt;P&gt;                            WHERE b~knttp EQ 'F'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in where condition you have to pass BANFN and  BNFPO values also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and create the secondry index for knttp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 12:37:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226884#M1208378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T12:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226885#M1208379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Likely causes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) EBAN select, no index is used, &lt;/P&gt;&lt;P&gt;2) EBAN/EBKN Join, no index is used, duplicate EBAN access&lt;/P&gt;&lt;P&gt;3) ZUPRDREQ, no WHERE condition, how large is this table?&lt;/P&gt;&lt;P&gt;4) READ TABLE lt_zupdpreq, does not use binary search&lt;/P&gt;&lt;P&gt;5) CALL FUNCTION 'Z_PM_SRM', only you know what's going on inside&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So: use indexes and binary search.&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, 24 Feb 2009 12:40:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226885#M1208379</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-02-24T12:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226886#M1208380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thomas thx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you pls help me to use index. I have never used index any before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;1) EBAN select, no index is used, 
2) EBAN/EBKN Join, no index is used, duplicate EBAN access&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;4) READ TABLE lt_zupdpreq, does not use binary search&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And secondly is it enough if use the sort command and in t is binary search like ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sort  lt_zupdpreq by banfn bnfpo&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE lt_zupdpreq INTO ls_zupdpreq&lt;/P&gt;&lt;P&gt;WITH KEY banfn = ls_purhdat-banfn&lt;/P&gt;&lt;P&gt;bnfpo = ls_purhdat-bnfpo&lt;/P&gt;&lt;P&gt;binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please notice the binary search statement occurs at the end of my read coomand&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Ilhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 12:48:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226886#M1208380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T12:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226887#M1208381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The binary search works OK like that, sort first then use "binary search" at end of read statement, OR use internal tables defined as TYPE SORTED TABLE OF ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; I have never used index any before&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Never too late to start. Examine the primary and secondary indexes of EBAN in SE11 and see if you can provide any of the fields in those indexes, starting top-down (e.g. MATNR would be nice or EKGRP). Just KNTTP is not enough, even if you defined your own index for it, it would probably not be very selective, although there would be some improvement (depends on the percentage of "F" values compared to the overall number of entries).&lt;/P&gt;&lt;P&gt;Also, run your program through code inspector, it will tell you all places where index support is missing.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 12:57:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226887#M1208381</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-02-24T12:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226888#M1208382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erdem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please follow the above instructions and also check with this : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try creating Index for the field knttp in the table EBAN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Go to SE11 --&amp;gt; table name VBAK--&amp;gt;Click on Display--&amp;gt;You will find tegh INdex button at the right hand-top side of the application. Click on it and click on Create Index--&amp;gt;
--&amp;gt;Provide a name for it and click on --&amp;gt;Maintain it in Log on language--&amp;gt;Provide the field name and click on Activate.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kittu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 13:03:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226888#M1208382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T13:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226889#M1208383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kittu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;creating Index for the field knttp in the table EBAN its not a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it necessary to refer to the created index within the abap code ?&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;sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 20:42:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226889#M1208383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T20:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226890#M1208384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Creating an index on a field is one of the most common recommendations in this forum. Unfortunately, it is usually wrong. In this case among all the other problems, you have to consider whther this single field would b e selective enough to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 21:05:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226890#M1208384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T21:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226891#M1208385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what means creating index.&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;sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 21:21:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226891#M1208385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T21:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226892#M1208386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;Definition for Creating Index from SAP.help.com.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An index is a copy of a database table that is reduced to certain fields. This copy is always in sorted form. Sorting provides faster access to the data records of the table, for example, when using a binary search. A table has a primary index and a secondary index. The primary index consists of the key fields of the table and is automatically created in the database along with the table. You can also create further indexes on a table in the Java Dictionary. These are called secondary indexes. This is necessary if the table is frequently accessed in a way that does not take advantage of the primary index. Different indexes for the same table are distinguished from one another by a separate index name. The index name must be unique. Whether or not an index is used to access a particular table, is decided by the database system optimizer. This means that an index might improve performance only with certain database systems. You specify if the index should be used on certain database systems in the index definition. Indexes for a table are created when the table is created (provided that the table is not excluded for the database system in the index definition). If the index fields represent the primary keys of the table, that is, if they already uniquely identify each record of the table, the index is referred to as an unique index. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope now you are clear about index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 05:51:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226892#M1208386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T05:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226893#M1208387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi is that all what I need !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Go to SE11 --&amp;gt; table name VBAK--&amp;gt;Click on Display--&amp;gt;You will find tegh INdex button at the right hand-top side of the application. Click on it and click on Create Index--&amp;gt;
--&amp;gt;Provide a name for it and click on --&amp;gt;Maintain it in Log on language--&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But where is the connection or corelation to my abap code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I refer to the created index from abap code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;ilhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 07:15:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226893#M1208387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T07:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226894#M1208388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;    Index acts like key .&lt;/P&gt;&lt;P&gt;When your fetching the data in a table and in the condition if you use Key fields the performance will be more than ,&lt;/P&gt;&lt;P&gt;when you fecth the data in table and in condition if you are not using key it has no binary serach (Key search in a field and it takes some time to fid out the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope thsi helps ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amitteja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 08:02:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226894#M1208388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T08:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226895#M1208389</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;Once you done the above steps ; creating seconday index for table,activate the same.&lt;/P&gt;&lt;P&gt;If you dispatch an SQL statement from an ABAP program to the database, the program searches for the data records requested either in the database table itself (full table scan) or by using an index ( index unique scan or index range scan). If all fields requested are found in the index using an index scan, the table records do not need to be accessed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Mani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 08:11:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226895#M1208389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T08:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226896#M1208390</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;I am sorry to ask again but do you have a small coding about for me to understand better.&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;sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 08:36:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226896#M1208390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T08:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226897#M1208391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erdem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the database is aware of your index and chooses an &lt;STRONG&gt;access plan&lt;/STRONG&gt; to retrieve the data form the index.&lt;/P&gt;&lt;P&gt;The index stores pointers that are used by the DB to do a fast-lookup in the table. &lt;/P&gt;&lt;P&gt;This plan is generated by the DB optimizer and it's the instance wich decides what plan to generate.&lt;/P&gt;&lt;P&gt;The generation is influenced by data volume and the DB objects (i.e. indexes) present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is ALL done behind the scenes of your ABAP. You only have to provide (important!) a meaningfull index key (must be selective as Rob stated). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally you would look at your WHERE clause and choose the index key on the fields involved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But a basic understanding of DB objects as tables (and their data volume) and indexes AND the SQL you write to retrieve the data is inevitable!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The mentioned &lt;STRONG&gt;access plan&lt;/STRONG&gt; can everything form worse to best if you don't know about gains and pains to speed up data access via an index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 10:27:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226897#M1208391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T10:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: performance problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226898#M1208392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;YukonKid that it thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 10:35:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/5226898#M1208392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T10:35:34Z</dc:date>
    </item>
  </channel>
</rss>

