<?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 Appending in select statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-in-select-statement/m-p/4091151#M978274</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;could anyone tell me the following select how it will work?&lt;/P&gt;&lt;P&gt;I have never seen this type of select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could not understand the purpose of appending and where exists?&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       vbeln&lt;/P&gt;&lt;P&gt;               posnr&lt;/P&gt;&lt;P&gt;               srcloc&lt;/P&gt;&lt;P&gt;        appending table it_tab&lt;/P&gt;&lt;P&gt;    from       ztab&lt;/P&gt;&lt;P&gt;   where exists ( select *&lt;/P&gt;&lt;P&gt;                    from vbepwhere vbeln eq ztab~vbeln&lt;/P&gt;&lt;P&gt;                     and posnr eq zstab~posnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly let me know if anyone knows the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhilash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jul 2008 06:30:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-08T06:30:29Z</dc:date>
    <item>
      <title>Appending in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-in-select-statement/m-p/4091151#M978274</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;could anyone tell me the following select how it will work?&lt;/P&gt;&lt;P&gt;I have never seen this type of select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could not understand the purpose of appending and where exists?&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       vbeln&lt;/P&gt;&lt;P&gt;               posnr&lt;/P&gt;&lt;P&gt;               srcloc&lt;/P&gt;&lt;P&gt;        appending table it_tab&lt;/P&gt;&lt;P&gt;    from       ztab&lt;/P&gt;&lt;P&gt;   where exists ( select *&lt;/P&gt;&lt;P&gt;                    from vbepwhere vbeln eq ztab~vbeln&lt;/P&gt;&lt;P&gt;                     and posnr eq zstab~posnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly let me know if anyone knows the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhilash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 06:30:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-in-select-statement/m-p/4091151#M978274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T06:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Appending in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-in-select-statement/m-p/4091152#M978275</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;this is a nested select (or whatever it called). it means that only those records will be selected from table ztab, where vbeln and posnr exist in table vbepwhere as well. The code you provided has nothing to do with APPEND, your subject is misleading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 06:35:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-in-select-statement/m-p/4091152#M978275</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-07-08T06:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Appending in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-in-select-statement/m-p/4091153#M978276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Appending is used to To Add the data to existing Internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose in your processing you selected the data from another table. and in this step you want to get the data from another table and populate to same internal table instead of taking new one then we will use the APPENDING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbeln&lt;/P&gt;&lt;P&gt;posnr&lt;/P&gt;&lt;P&gt;srcloc&lt;/P&gt;&lt;P&gt;appending table it_tab&lt;/P&gt;&lt;P&gt;from ztab&lt;/P&gt;&lt;P&gt;where exists ( select *&lt;/P&gt;&lt;P&gt;from vbepwhere vbeln eq ztab~vbeln&lt;/P&gt;&lt;P&gt;and posnr eq zstab~posnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where exists &lt;/P&gt;&lt;P&gt;is another type of handling where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first it check the in the table vbep if there is entry then only that record will be added or else it will not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 06:36:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-in-select-statement/m-p/4091153#M978276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T06:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Appending in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-in-select-statement/m-p/4091154#M978277</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;it Works like ... INTO TABLE itab, except that the read lines are appended to the old contents of the internal table itab. &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;SUDHIR MANJAREKAR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 06:36:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-in-select-statement/m-p/4091154#M978277</guid>
      <dc:creator>Sidh_M</dc:creator>
      <dc:date>2008-07-08T06:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Appending in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-in-select-statement/m-p/4091155#M978278</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;SELECT *&lt;/P&gt;&lt;P&gt;FROM vbep WHERE vbeln EQ ztab~vbeln&lt;/P&gt;&lt;P&gt;AND posnr EQ zstab~posnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First the inner query is executed and it retrives all the fields from VBEp table based on the conddition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT &lt;/P&gt;&lt;P&gt;vbeln&lt;/P&gt;&lt;P&gt;posnr&lt;/P&gt;&lt;P&gt;srcloc&lt;/P&gt;&lt;P&gt;APPENDING TABLE it_tab&lt;/P&gt;&lt;P&gt;FROM ztab&lt;/P&gt;&lt;P&gt;WHERE EXISTS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now this query is executed and those values are read from which the first has read.&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;pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 06:37:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-in-select-statement/m-p/4091155#M978278</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2008-07-08T06:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Appending in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-in-select-statement/m-p/4091156#M978279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric Cartman,&lt;/P&gt;&lt;P&gt;  Thanks for the update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I have a question for u, is it same as the for all entries statement.&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;Abhilash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 06:38:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-in-select-statement/m-p/4091156#M978279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T06:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Appending in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-in-select-statement/m-p/4091157#M978280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Purpose of &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appending&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Means already internal table has records and you are now appending records with matching conditions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where exists&lt;/P&gt;&lt;P&gt; this nested subquery syntax which actually matches each record from the bracket query with Parent Query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Pushkar Joshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 06:38:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-in-select-statement/m-p/4091157#M978280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T06:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Appending in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-in-select-statement/m-p/4091158#M978281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhilash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you use the INTO clause in your select statement the contents retrieved replaces the previous contents in the internal table specified in the into clause....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using &lt;STRONG&gt;appending&lt;/STRONG&gt; ... instead of replacing all contents of the internal table it adds the selected data to the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You already have data in your internal table and you want to add some more information to the existing table.... then you go with appending.....&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;padma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 06:43:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-in-select-statement/m-p/4091158#M978281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T06:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Appending in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-in-select-statement/m-p/4091159#M978282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi Eric Cartman,&lt;/P&gt;&lt;P&gt;&amp;gt;   Thanks for the update.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Here I have a question for u, is it same as the for all entries statement.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Regards&lt;/P&gt;&lt;P&gt;&amp;gt; Abhilash.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, it is the same&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 06:45:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-in-select-statement/m-p/4091159#M978282</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-07-08T06:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Appending in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-in-select-statement/m-p/4091160#M978283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric Cartman,&lt;/P&gt;&lt;P&gt; Thanks for the update.&lt;/P&gt;&lt;P&gt;I have need one more small clarification,&lt;/P&gt;&lt;P&gt;If the for all entries and where exists statements are same while selecting the data from the database,which one will be better performance wise?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think for all entries is better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please correct me if I am wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And one more thing I have observed this select in 4.6c .&lt;/P&gt;&lt;P&gt;I did not find this type of statement in higher versions,&lt;/P&gt;&lt;P&gt;is it obselete statement in higher versions, or performance wise bad ?&lt;/P&gt;&lt;P&gt;if not can we use the same statemnet in higher versions also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reply me back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhilash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 06:53:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-in-select-statement/m-p/4091160#M978283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T06:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Appending in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-in-select-statement/m-p/4091161#M978284</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;The below is the example for select with "Where exits"... and also look into the below link. Hope it helps you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/dc/dc7614099b11d295320000e8353423/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/dc/dc7614099b11d295320000e8353423/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correlated, non-scalar subquery:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_select_subquery_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: name_tab TYPE TABLE OF scarr-carrname,&lt;/P&gt;&lt;P&gt;      name  LIKE LINE OF name_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  carrname&lt;/P&gt;&lt;P&gt;  INTO  TABLE name_tab&lt;/P&gt;&lt;P&gt;  FROM  scarr&lt;/P&gt;&lt;P&gt;  WHERE EXISTS ( select  *&lt;/P&gt;&lt;P&gt;                   FROM  spfli&lt;/P&gt;&lt;P&gt;                   WHERE carrid   =  scarr~carrid AND&lt;/P&gt;&lt;P&gt;                         cityfrom = 'NEW YORK'        ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT name_tab INTO name.&lt;/P&gt;&lt;P&gt;  WRITE: / name.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This example selects all lines from database table SCARR for airlines that fly from New York.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ramya.R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 07:02:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-in-select-statement/m-p/4091161#M978284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T07:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Appending in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-in-select-statement/m-p/4091162#M978285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi Eric Cartman,&lt;/P&gt;&lt;P&gt;&amp;gt;  Thanks for the update.&lt;/P&gt;&lt;P&gt;&amp;gt; I have need one more small clarification,&lt;/P&gt;&lt;P&gt;&amp;gt; If the for all entries and where exists statements are same while selecting the data from the database,which one will be better performance wise?&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I think for all entries is better.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Please correct me if I am wrong?&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; And one more thing I have observed this select in 4.6c .&lt;/P&gt;&lt;P&gt;&amp;gt; I did not find this type of statement in higher versions,&lt;/P&gt;&lt;P&gt;&amp;gt; is it obselete statement in higher versions, or performance wise bad ?&lt;/P&gt;&lt;P&gt;&amp;gt; if not can we use the same statemnet in higher versions also.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Kindly reply me back.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Regards&lt;/P&gt;&lt;P&gt;&amp;gt; Abhilash.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot tell with certanity, but FOR ALL ENTRIES is probably faster in this case - I think you are right on this. You have to try both and see! And this also might be the reason why can't you find this statement in higher releases - because of the performance issues it is not used anymore.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 07:04:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-in-select-statement/m-p/4091162#M978285</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2008-07-08T07:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Appending in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/appending-in-select-statement/m-p/4091163#M978286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhilash ,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt; If you are selecting row from Database table according to som condition more than one time . Then the existing records will be replaced with new records.&lt;/P&gt;&lt;P&gt;  So, if you don't want to replace the existing records , and yuo want all records then use this APPENDING in your select statement.&lt;/P&gt;&lt;P&gt;  Then  records will be appended to th existing records of internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
  BEGIN OF fs_spfli,
    carrid LIKE spfli-carrid,
    connid LIKE spfli-connid,
    cityfrom LIKE spfli-cityfrom,
    cityto   LIKE spfli-cityto,
  END OF fs_spfli.

DATA:
 t_spfli LIKE STANDARD TABLE OF fs_spfli.


select carrid
       connid
       cityfrom
       cityto
  from spfli
  into table t_spfli
 where carrid eq 'AA'.

 select carrid
       connid
       cityfrom
       cityto
  from spfli
  appending table t_spfli
 where carrid eq 'UA'.

 loop at t_spfli into fs_spfli.
   write : / fs_spfli-carrid,
             fs_spfli-connid,
             fs_spfli-cityfrom,
             fs_spfli-cityto.
 endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above example if APPENDING is not used then 'AA' records will be raplaced with 'UA' records. Internal table contains only 'UA' records.&lt;/P&gt;&lt;P&gt;  So, If we want all records then use APPENDING . Using this records will be appended to  the internal table without replacing existing records.&lt;/P&gt;&lt;P&gt; Regards,&lt;/P&gt;&lt;P&gt;Rajitha.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rajitha Muthineni on Jul 8, 2008 12:44 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 07:10:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/appending-in-select-statement/m-p/4091163#M978286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T07:10:17Z</dc:date>
    </item>
  </channel>
</rss>

