<?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: How to improve performance for this code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-improve-performance-for-this-code/m-p/4029287#M962907</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOOP AT lt_element INTO ls_element.&lt;/P&gt;&lt;P&gt;  READ TABLE lt_element_ident INTO ls_element_ident&lt;/P&gt;&lt;P&gt;  WITH KEY element_id = ls_element-element_id BINARY SEARCH.&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    MOVE ls_element_ident-value TO lv_guid.&lt;/P&gt;&lt;P&gt;    SELECT * FROM zcm_valuation_at&lt;/P&gt;&lt;P&gt;    APPENDING CORRESPONDING FIELDS OF TABLE lt_caseattributes&lt;/P&gt;&lt;P&gt;    WHERE case_guid = lv_guid.&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;LOOP AT lt_caseattributes INTO ls_caseattributes. ---&amp;gt; HERE ADD A WHERE STM*&lt;/P&gt;&lt;P&gt;LOOP AT lt_caseattributes INTO ls_caseattributes WHERE ext_key EQ  = ''&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ls_caseattributes-ext_key IS INITIAL. --&amp;gt; DELETE THIS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE ext_key&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF ls_caseattributes&lt;/P&gt;&lt;P&gt;FROM scmg_t_case_attr&lt;/P&gt;&lt;P&gt;WHERE case_guid = ls_caseattributes-case_guid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF. --&amp;gt; DELETE THIS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*To get the Status description of the Case&lt;/P&gt;&lt;P&gt;SELECT SINGLE stat_ordno_descr&lt;/P&gt;&lt;P&gt;INTO ls_caseattributes-status&lt;/P&gt;&lt;P&gt;FROM scmgstatprofst AS a&lt;/P&gt;&lt;P&gt;INNER JOIN scmg_t_case_attr AS b&lt;/P&gt;&lt;P&gt;ON a&lt;SUB&gt;profile_id = b&lt;/SUB&gt;profile_id&lt;/P&gt;&lt;P&gt;AND a&lt;SUB&gt;stat_orderno = b&lt;/SUB&gt;stat_orderno&lt;/P&gt;&lt;P&gt;WHERE case_guid = ls_caseattributes-case_guid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY lt_caseattributes FROM ls_caseattributes INDEX sy-tabix TRANSPORTING status ext_key.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE lt_caseattributes INTO ls_caseattributes INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALSO AVOID INTO CORRESPONDING...NESTED LOOPS ALSO!!!&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;Gabriel P-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Gabriel Fernando Pulido V. on Jun 16, 2008 6:39 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jun 2008 23:39:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-16T23:39:24Z</dc:date>
    <item>
      <title>How to improve performance for this code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-improve-performance-for-this-code/m-p/4029285#M962905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;LOOP AT lt_element INTO ls_element.&lt;/P&gt;&lt;P&gt;READ TABLE lt_element_ident INTO ls_element_ident&lt;/P&gt;&lt;P&gt;WITH KEY element_id = ls_element-element_id BINARY SEARCH.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;MOVE ls_element_ident-value TO lv_guid.&lt;/P&gt;&lt;P&gt;SELECT * FROM zcm_valuation_at&lt;/P&gt;&lt;P&gt;APPENDING CORRESPONDING FIELDS OF TABLE lt_caseattributes&lt;/P&gt;&lt;P&gt;WHERE case_guid = lv_guid.&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;LOOP AT lt_caseattributes INTO ls_caseattributes.&lt;/P&gt;&lt;P&gt;IF ls_caseattributes-ext_key IS INITIAL.&lt;/P&gt;&lt;P&gt;SELECT SINGLE ext_key&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF ls_caseattributes&lt;/P&gt;&lt;P&gt;FROM scmg_t_case_attr&lt;/P&gt;&lt;P&gt;WHERE case_guid = ls_caseattributes-case_guid.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*To get the Status description of the Case&lt;/P&gt;&lt;P&gt;SELECT SINGLE stat_ordno_descr&lt;/P&gt;&lt;P&gt;INTO ls_caseattributes-status&lt;/P&gt;&lt;P&gt;FROM scmgstatprofst AS a&lt;/P&gt;&lt;P&gt;INNER JOIN scmg_t_case_attr AS b&lt;/P&gt;&lt;P&gt;ON a&lt;SUB&gt;profile_id = b&lt;/SUB&gt;profile_id&lt;/P&gt;&lt;P&gt;AND a&lt;SUB&gt;stat_orderno = b&lt;/SUB&gt;stat_orderno&lt;/P&gt;&lt;P&gt;WHERE case_guid = ls_caseattributes-case_guid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY lt_caseattributes FROM ls_caseattributes INDEX sy-tabix TRANSPORTING status ext_key.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE lt_caseattributes INTO ls_caseattributes INDEX 1.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maruti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 23:07:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-improve-performance-for-this-code/m-p/4029285#M962905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T23:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to improve performance for this code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-improve-performance-for-this-code/m-p/4029286#M962906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi try to remove the into corresponding and appending corresponding..in the selects.. select * is never prefered in many client locations.. so try to remove it as well..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;looks like u are using binary search for read that good.. to have and rest looks gud..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 23:19:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-improve-performance-for-this-code/m-p/4029286#M962906</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-06-16T23:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to improve performance for this code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-improve-performance-for-this-code/m-p/4029287#M962907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOOP AT lt_element INTO ls_element.&lt;/P&gt;&lt;P&gt;  READ TABLE lt_element_ident INTO ls_element_ident&lt;/P&gt;&lt;P&gt;  WITH KEY element_id = ls_element-element_id BINARY SEARCH.&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    MOVE ls_element_ident-value TO lv_guid.&lt;/P&gt;&lt;P&gt;    SELECT * FROM zcm_valuation_at&lt;/P&gt;&lt;P&gt;    APPENDING CORRESPONDING FIELDS OF TABLE lt_caseattributes&lt;/P&gt;&lt;P&gt;    WHERE case_guid = lv_guid.&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;LOOP AT lt_caseattributes INTO ls_caseattributes. ---&amp;gt; HERE ADD A WHERE STM*&lt;/P&gt;&lt;P&gt;LOOP AT lt_caseattributes INTO ls_caseattributes WHERE ext_key EQ  = ''&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ls_caseattributes-ext_key IS INITIAL. --&amp;gt; DELETE THIS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE ext_key&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF ls_caseattributes&lt;/P&gt;&lt;P&gt;FROM scmg_t_case_attr&lt;/P&gt;&lt;P&gt;WHERE case_guid = ls_caseattributes-case_guid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF. --&amp;gt; DELETE THIS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*To get the Status description of the Case&lt;/P&gt;&lt;P&gt;SELECT SINGLE stat_ordno_descr&lt;/P&gt;&lt;P&gt;INTO ls_caseattributes-status&lt;/P&gt;&lt;P&gt;FROM scmgstatprofst AS a&lt;/P&gt;&lt;P&gt;INNER JOIN scmg_t_case_attr AS b&lt;/P&gt;&lt;P&gt;ON a&lt;SUB&gt;profile_id = b&lt;/SUB&gt;profile_id&lt;/P&gt;&lt;P&gt;AND a&lt;SUB&gt;stat_orderno = b&lt;/SUB&gt;stat_orderno&lt;/P&gt;&lt;P&gt;WHERE case_guid = ls_caseattributes-case_guid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY lt_caseattributes FROM ls_caseattributes INDEX sy-tabix TRANSPORTING status ext_key.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE lt_caseattributes INTO ls_caseattributes INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALSO AVOID INTO CORRESPONDING...NESTED LOOPS ALSO!!!&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;Gabriel P-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Gabriel Fernando Pulido V. on Jun 16, 2008 6:39 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2008 23:39:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-improve-performance-for-this-code/m-p/4029287#M962907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-16T23:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to improve performance for this code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-improve-performance-for-this-code/m-p/4029288#M962908</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;try this kind of code:&lt;/P&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;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;start new&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;*********&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  lt_scmgstatprofst LIKE scmgstatprofst OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;  wa_scmg_t_case_attr LIKE scmg_t_case_attr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM scmgstatprofst INTO TABLE lt_scmgstatprofst.&lt;/P&gt;&lt;P&gt;SORT lt_scmgstatprofst BY profile_id stat_orderno.&lt;/P&gt;&lt;P&gt;*********&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;end new&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;*******&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_element INTO ls_element.&lt;/P&gt;&lt;P&gt;  READ TABLE lt_element_ident INTO ls_element_ident&lt;/P&gt;&lt;P&gt;  WITH KEY element_id = ls_element-element_id BINARY SEARCH.&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    MOVE ls_element_ident-value TO lv_guid.&lt;/P&gt;&lt;P&gt;    SELECT * FROM zcm_valuation_at&lt;/P&gt;&lt;P&gt;    APPENDING CORRESPONDING FIELDS OF TABLE lt_caseattributes&lt;/P&gt;&lt;P&gt;    WHERE case_guid = lv_guid.&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;LOOP AT lt_caseattributes INTO ls_caseattributes.&lt;/P&gt;&lt;P&gt;  IF ls_caseattributes-ext_key IS INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE ext_key&lt;/P&gt;&lt;P&gt;    INTO CORRESPONDING FIELDS OF ls_caseattributes&lt;/P&gt;&lt;P&gt;    FROM scmg_t_case_attr&lt;/P&gt;&lt;P&gt;    WHERE case_guid = ls_caseattributes-case_guid.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*To get the Status description of the Case&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;**************&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;start deletion&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;**************&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SELECT SINGLE stat_ordno_descr&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; INTO ls_caseattributes-status&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; FROM scmgstatprofst AS a&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; INNER JOIN scmg_t_case_attr AS b&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ON a&lt;SUB&gt;profile_id = b&lt;/SUB&gt;profile_id&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; AND a&lt;SUB&gt;stat_orderno = b&lt;/SUB&gt;stat_orderno&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; WHERE case_guid = ls_caseattributes-case_guid.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;************&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;end deletion&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;***********&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;start new&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;*********&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR wa_scmg_t_case_attr.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE * FROM scmg_t_case_attr INTO wa_scmg_t_case_attr&lt;/P&gt;&lt;P&gt;    WHERE case_guid = ls_caseattributes-case_guid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE lt_scmgstatprofst WITH KEY&lt;/P&gt;&lt;P&gt;    profile_id   = wa_scmg_t_case_attr-profile_id&lt;/P&gt;&lt;P&gt;    stat_orderno = wa_scmg_t_case_attr-stat_orderno&lt;/P&gt;&lt;P&gt;    BINARY SEARCH.&lt;/P&gt;&lt;P&gt;  IF sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;    ls_caseattributes-status = lt_scmgstatprofst-stat_ordno_descr.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;*********&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;end new&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;*******&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODIFY lt_caseattributes FROM ls_caseattributes INDEX sy-tabix&lt;/P&gt;&lt;P&gt;  TRANSPORTING status ext_key.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE lt_caseattributes INTO ls_caseattributes INDEX 1.&lt;/P&gt;&lt;P&gt;&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;Walter Habich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Walter Habich on Jun 17, 2008 8:41 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 06:31:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-improve-performance-for-this-code/m-p/4029288#M962908</guid>
      <dc:creator>former_member435013</dc:creator>
      <dc:date>2008-06-17T06:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to improve performance for this code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-improve-performance-for-this-code/m-p/4029289#M962909</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;Try to remove select statements from the loop.&lt;/P&gt;&lt;P&gt;instead select values in internal table first and then use that internal table in loop for modify or append.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of corresponding fields use to table and try to use for all entries in select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward pts if usefull&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dhan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 06:38:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-improve-performance-for-this-code/m-p/4029289#M962909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T06:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to improve performance for this code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-improve-performance-for-this-code/m-p/4029290#M962910</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;To improve performance :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Replace Select * by Select fields.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Sort table before using Read table along with binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Use INTO TABLE instead of  APPENDING                          CORRESPONDING FIELDS OF TABLE and for  INTO CORRESPONDING FIELDS OF also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.  We can use FOR ALL ENTRIES instead of Join depending on the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Try to give all possible conditions in Where clause of Select statement and even ordering is important.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. Try to remove Select inside the Loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dhanashri.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Dhanashri Pawar on Jun 17, 2008 8:50 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2008 06:50:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-improve-performance-for-this-code/m-p/4029290#M962910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-17T06:50:08Z</dc:date>
    </item>
  </channel>
</rss>

