<?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: syntax in repots.....???????? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-in-repots/m-p/2715417#M629709</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;using of * and into corresponding will results in poor performance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the select fields into table will results in good performance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because when * is used all the fields will be fetched and it has to match the &lt;/P&gt;&lt;P&gt;field names from data base and in your internal table fields order and names...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this will not be in the case of select field and into table&lt;/P&gt;&lt;P&gt;here we should be care full that the order of fields in itab and order of fields in&lt;/P&gt;&lt;P&gt;select query should be same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;egL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;matnr type mara-matnr,&lt;/P&gt;&lt;P&gt;ersda type mara-matrn,&lt;/P&gt;&lt;P&gt;matkl type mara-matkl,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select  matnr ersda matkl&lt;/P&gt;&lt;P&gt;from mara into table itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it should not be &lt;/P&gt;&lt;P&gt;select  matnr  matkl ersda&lt;/P&gt;&lt;P&gt;from mara into table itab&lt;/P&gt;&lt;P&gt; as it will put the value of matkl in the ersda field in itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Venkatesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...SELECT * INTO CORRESPONDING FIELDS OF TABLE TAB1 ........THE OUTPUT IS BETTER THAN ...........SELECT F1 F2 F3 F4 INTO TABLE TAB1 ......Y IT IS SO ??????PLS LEMME KNOW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Aug 2007 05:12:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-20T05:12:39Z</dc:date>
    <item>
      <title>syntax in repots.....????????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-in-repots/m-p/2715413#M629705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when v use ....SELECT *  INTO CORRESPONDING FIELDS OF TABLE TAB1 ........THE OUTPUT IS BETTER THAN ...........SELECT F1 F2 F3 F4  INTO TABLE TAB1 ......Y IT IS SO ??????PLS LEMME KNOW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 05:04:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-in-repots/m-p/2715413#M629705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T05:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: syntax in repots.....????????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-in-repots/m-p/2715414#M629706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guru,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select * will fetch all the records and is not recomended as it affects the performance.&lt;/P&gt;&lt;P&gt;Always see to that the where clause in the select statement have either primary key fields or index field,else it will also effect the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select f1 f2 f3 from vbap into table ivbap where .....&lt;/P&gt;&lt;P&gt;is much better than using select *.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check for the keyword OPTIMISATION in SDN forum,you will be able to see tons of info related to your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 05:08:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-in-repots/m-p/2715414#M629706</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2007-08-20T05:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: syntax in repots.....????????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-in-repots/m-p/2715415#M629707</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;Because when u write select matnr mtart matkl into table it_mara at that time it find field as per your select query sequence but when u write selct * into corresponding fields it means it follow sequence of data dictionary so we always use corresponding fields option for that is improve your performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards if it is useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 05:09:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-in-repots/m-p/2715415#M629707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T05:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: syntax in repots.....????????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-in-repots/m-p/2715416#M629708</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;For further reference regarding optimization you can look into this link....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapbrain.com/ARTICLES/TECHNICAL/optimization/optimization.html#Optimizing%20the%20load%20of%20the%20database" target="test_blank"&gt;http://www.sapbrain.com/ARTICLES/TECHNICAL/optimization/optimization.html#Optimizing%20the%20load%20of%20the%20database&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 05:11:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-in-repots/m-p/2715416#M629708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T05:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: syntax in repots.....????????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-in-repots/m-p/2715417#M629709</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;using of * and into corresponding will results in poor performance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the select fields into table will results in good performance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because when * is used all the fields will be fetched and it has to match the &lt;/P&gt;&lt;P&gt;field names from data base and in your internal table fields order and names...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this will not be in the case of select field and into table&lt;/P&gt;&lt;P&gt;here we should be care full that the order of fields in itab and order of fields in&lt;/P&gt;&lt;P&gt;select query should be same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;egL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;matnr type mara-matnr,&lt;/P&gt;&lt;P&gt;ersda type mara-matrn,&lt;/P&gt;&lt;P&gt;matkl type mara-matkl,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select  matnr ersda matkl&lt;/P&gt;&lt;P&gt;from mara into table itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it should not be &lt;/P&gt;&lt;P&gt;select  matnr  matkl ersda&lt;/P&gt;&lt;P&gt;from mara into table itab&lt;/P&gt;&lt;P&gt; as it will put the value of matkl in the ersda field in itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Venkatesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...SELECT * INTO CORRESPONDING FIELDS OF TABLE TAB1 ........THE OUTPUT IS BETTER THAN ...........SELECT F1 F2 F3 F4 INTO TABLE TAB1 ......Y IT IS SO ??????PLS LEMME KNOW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 05:12:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-in-repots/m-p/2715417#M629709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T05:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: syntax in repots.....????????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-in-repots/m-p/2715418#M629710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guru,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both are same... U can find the difference only with... INTO CORRESPONDING FIELDS OF TABLE... If you use this one... order of the fields in the selec statement and order of the fields in the internal table need not be same. where as if you are not using this... order of feids in both select statement and internal table should be same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u usr select * from... then it will just kill the performance of the report... so it is not suggestable...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward If Helpful.&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;Sasidhar Reddy Matli.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 05:16:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-in-repots/m-p/2715418#M629710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T05:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: syntax in repots.....????????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-in-repots/m-p/2715419#M629711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THNX PRIYANKA 4 UR HELP .............GIVING U REWARDS.........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 05:22:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-in-repots/m-p/2715419#M629711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T05:22:27Z</dc:date>
    </item>
  </channel>
</rss>

