<?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 ..which one is better in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-which-one-is-better/m-p/1556908#M252130</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;use the below code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of wa,&lt;/P&gt;&lt;P&gt;	bukrs like bsak-bukrs,&lt;/P&gt;&lt;P&gt;        lifnr like bsak-gjahr,&lt;/P&gt;&lt;P&gt;        belnr like bsak-belnr,&lt;/P&gt;&lt;P&gt;        blart like bsak-blart,&lt;/P&gt;&lt;P&gt;      end of wa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      itab like table of wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select bukrs &lt;/P&gt;&lt;P&gt;       lifnr&lt;/P&gt;&lt;P&gt;       belnr&lt;/P&gt;&lt;P&gt;       blart&lt;/P&gt;&lt;P&gt;       from bsak into table itab &lt;/P&gt;&lt;P&gt;where cpudt in r_cpudt&lt;/P&gt;&lt;P&gt;AND blart in r_blart&lt;/P&gt;&lt;P&gt;AND bukrs in s_bukrs&lt;/P&gt;&lt;P&gt;AND belnr in s_belnr&lt;/P&gt;&lt;P&gt;AND gjahr in s_gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Performance Tips:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.INTO CORRESPONDING will cause performance problem if the no of records are very less as&lt;/P&gt;&lt;P&gt;the runtime required to compare the field names will take longtime.&lt;/P&gt;&lt;P&gt;2.APPENDING will cause performance problem so always use INTO TABLE.Use APPENDING only if&lt;/P&gt;&lt;P&gt;itz necessary/ no other options..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Sep 2006 05:58:42 GMT</pubDate>
    <dc:creator>abdul_hakim</dc:creator>
    <dc:date>2006-09-16T05:58:42Z</dc:date>
    <item>
      <title>performance ..which one is better</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-which-one-is-better/m-p/1556902#M252124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT *   " bukrs lifnr gjahr belnr blart&lt;/P&gt;&lt;P&gt;           FROM bsak&lt;/P&gt;&lt;P&gt;           appending table gt_bsak&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;          INTO CORRESPONDING FIELDS OF TABLE gt_bsak&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           WHERE cpudt in r_cpudt&lt;/P&gt;&lt;P&gt;           AND   blart in r_blart&lt;/P&gt;&lt;P&gt;           AND   bukrs in s_bukrs&lt;/P&gt;&lt;P&gt;           AND   belnr in s_belnr&lt;/P&gt;&lt;P&gt;           AND   gjahr in s_gjahr&lt;/P&gt;&lt;P&gt;           .&lt;/P&gt;&lt;P&gt;In the above stmt which one gives bstter performance.Is it appending table gt_bsak or&lt;/P&gt;&lt;P&gt; INTO CORRESPONDING FIELDS OF TABLE gt_bsak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Sep 2006 00:36:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-which-one-is-better/m-p/1556902#M252124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-16T00:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: performance ..which one is better</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-which-one-is-better/m-p/1556903#M252125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Use only INTO TABLE.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT * " bukrs lifnr gjahr belnr blart
FROM bsak
&amp;lt;b&amp;gt;INTO TABLE gt_bsak&amp;lt;/b&amp;gt;
WHERE cpudt in r_cpudt
AND blart in r_blart
AND bukrs in s_bukrs
AND belnr in s_belnr
AND gjahr in s_gjahr
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; INTO TABLE is faster then using appending and into corresponding fields.&lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Sep 2006 00:40:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-which-one-is-better/m-p/1556903#M252125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-16T00:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: performance ..which one is better</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-which-one-is-better/m-p/1556904#M252126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;If you are using :&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;then use into corresponding field of table but&lt;/P&gt;&lt;P&gt;if you are using :&lt;/P&gt;&lt;P&gt; select fld1 fld2 fld3&lt;/P&gt;&lt;P&gt;then appending table would be better provided your internal table has 3 fields (fld1,fld2,fld3) only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vikram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls reward for helpful replies!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Sep 2006 00:41:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-which-one-is-better/m-p/1556904#M252126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-16T00:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: performance ..which one is better</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-which-one-is-better/m-p/1556905#M252127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't matter, because performance will be degraded because of the WHERE clause. See my answer to your other question. You have to take care of the big problems first. You'll find that the small ones may not matter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Sep 2006 03:10:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-which-one-is-better/m-p/1556905#M252127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-16T03:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: performance ..which one is better</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-which-one-is-better/m-p/1556906#M252128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I simulated ur code in my system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the best performance is this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of gt_bsak occurs 0,&lt;/P&gt;&lt;P&gt;bukrs like bsak-bukrs,&lt;/P&gt;&lt;P&gt;lifnr like bsak-lifnr,&lt;/P&gt;&lt;P&gt;belnr like bsak-belnr,&lt;/P&gt;&lt;P&gt;blart like bsak-blart,&lt;/P&gt;&lt;P&gt;end of gt_bsak.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT bukrs lifnr gjahr belnr blart&lt;/P&gt;&lt;P&gt;FROM bsak&lt;/P&gt;&lt;P&gt;INTO table gt_bsak&lt;/P&gt;&lt;P&gt;WHERE cpudt in r_cpudt&lt;/P&gt;&lt;P&gt;AND blart in r_blart&lt;/P&gt;&lt;P&gt;AND bukrs in s_bukrs&lt;/P&gt;&lt;P&gt;AND belnr in s_belnr&lt;/P&gt;&lt;P&gt;AND gjahr in s_gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here the prfmance is optimum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if hlped rwrd points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Sep 2006 04:33:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-which-one-is-better/m-p/1556906#M252128</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-09-16T04:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: performance ..which one is better</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-which-one-is-better/m-p/1556907#M252129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&amp;lt;b&amp;gt; bukrs lifnr gjahr belnr blart&amp;lt;/b&amp;gt;FROM bsak&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;INTO TABLE gt_bsak&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;WHERE cpudt in r_cpudt&lt;/P&gt;&lt;P&gt;AND blart in r_blart&lt;/P&gt;&lt;P&gt;AND bukrs in s_bukrs&lt;/P&gt;&lt;P&gt;AND belnr in s_belnr&lt;/P&gt;&lt;P&gt;AND gjahr in s_gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avoid using * select only the fields that you require ... in this way you can improve the performance a bit ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Sep 2006 05:45:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-which-one-is-better/m-p/1556907#M252129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-16T05:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: performance ..which one is better</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-which-one-is-better/m-p/1556908#M252130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;use the below code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of wa,&lt;/P&gt;&lt;P&gt;	bukrs like bsak-bukrs,&lt;/P&gt;&lt;P&gt;        lifnr like bsak-gjahr,&lt;/P&gt;&lt;P&gt;        belnr like bsak-belnr,&lt;/P&gt;&lt;P&gt;        blart like bsak-blart,&lt;/P&gt;&lt;P&gt;      end of wa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      itab like table of wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select bukrs &lt;/P&gt;&lt;P&gt;       lifnr&lt;/P&gt;&lt;P&gt;       belnr&lt;/P&gt;&lt;P&gt;       blart&lt;/P&gt;&lt;P&gt;       from bsak into table itab &lt;/P&gt;&lt;P&gt;where cpudt in r_cpudt&lt;/P&gt;&lt;P&gt;AND blart in r_blart&lt;/P&gt;&lt;P&gt;AND bukrs in s_bukrs&lt;/P&gt;&lt;P&gt;AND belnr in s_belnr&lt;/P&gt;&lt;P&gt;AND gjahr in s_gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Performance Tips:&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.INTO CORRESPONDING will cause performance problem if the no of records are very less as&lt;/P&gt;&lt;P&gt;the runtime required to compare the field names will take longtime.&lt;/P&gt;&lt;P&gt;2.APPENDING will cause performance problem so always use INTO TABLE.Use APPENDING only if&lt;/P&gt;&lt;P&gt;itz necessary/ no other options..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Sep 2006 05:58:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-which-one-is-better/m-p/1556908#M252130</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-09-16T05:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: performance ..which one is better</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-which-one-is-better/m-p/1556909#M252131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The most important problem here is that the select statement doesn't use an index. All of the other suggestions will help, but you still need to go to BSEG (and BKPF for BLART) to significantly improve performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Sep 2006 15:24:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-which-one-is-better/m-p/1556909#M252131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-16T15:24:23Z</dc:date>
    </item>
  </channel>
</rss>

