<?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 Select statement Optimisation. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-optimisation/m-p/3789491#M911558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM prps&lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF TABLE lt_prps_temp&lt;/P&gt;&lt;P&gt;  WHERE pbukr = g_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the internal table -LT_PRPS_TEMP contains the fields in PRPS but not in the same order. In this case how can i change the 'INTO CORREPONDING FIELDS' to 'INTO TABLE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Neslin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Apr 2008 21:02:06 GMT</pubDate>
    <dc:creator>Neslinn</dc:creator>
    <dc:date>2008-04-22T21:02:06Z</dc:date>
    <item>
      <title>Select statement Optimisation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-optimisation/m-p/3789491#M911558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM prps&lt;/P&gt;&lt;P&gt;  INTO CORRESPONDING FIELDS OF TABLE lt_prps_temp&lt;/P&gt;&lt;P&gt;  WHERE pbukr = g_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the internal table -LT_PRPS_TEMP contains the fields in PRPS but not in the same order. In this case how can i change the 'INTO CORREPONDING FIELDS' to 'INTO TABLE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Neslin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 21:02:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-optimisation/m-p/3789491#M911558</guid>
      <dc:creator>Neslinn</dc:creator>
      <dc:date>2008-04-22T21:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement Optimisation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-optimisation/m-p/3789492#M911559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can mention the field list in the select statement ratherthan giving SELECT * as it is a performance issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you really need all the fields then you can give. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avoid using into corresponding too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also if you can use primary key field PSPNR in the where clause that improves the performance drastically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 21:10:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-optimisation/m-p/3789492#M911559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T21:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Select statement Optimisation.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-optimisation/m-p/3789493#M911560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, you should replace &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SELECT *&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SELECT field1 field2 field3...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where fieldn are the fields you have in internal table for &lt;STRONG&gt;prps&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Apr 2008 21:15:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-optimisation/m-p/3789493#M911560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-22T21:15:46Z</dc:date>
    </item>
  </channel>
</rss>

