<?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 2 Select statement into the same internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-select-statement-into-the-same-internal-table/m-p/5235482#M1210003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT addrnumber AS lfa1adrnr
             name1 AS hname1
             INTO CORRESPONDING FIELDS OF TABLE gt_adrc
             FROM adrc
             FOR ALL ENTRIES IN gt_lfa1
             WHERE addrnumber = gt_lfa1-adrnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Followed by another select statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT addrnumber AS vbpaadrnr
             name1 AS iname1
             city1
             post_code1
             street
             INTO CORRESPONDING FIELDS OF TABLE gt_adrc
             FROM adrc
             FOR ALL ENTRIES IN gt_vbpa
             WHERE addrnumber = gt_vbpa-adrnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why instead of creating 2 rows of data, it replaced the first row in gt_adrc internal table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Feb 2009 07:57:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-23T07:57:27Z</dc:date>
    <item>
      <title>2 Select statement into the same internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-select-statement-into-the-same-internal-table/m-p/5235482#M1210003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT addrnumber AS lfa1adrnr
             name1 AS hname1
             INTO CORRESPONDING FIELDS OF TABLE gt_adrc
             FROM adrc
             FOR ALL ENTRIES IN gt_lfa1
             WHERE addrnumber = gt_lfa1-adrnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Followed by another select statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT addrnumber AS vbpaadrnr
             name1 AS iname1
             city1
             post_code1
             street
             INTO CORRESPONDING FIELDS OF TABLE gt_adrc
             FROM adrc
             FOR ALL ENTRIES IN gt_vbpa
             WHERE addrnumber = gt_vbpa-adrnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why instead of creating 2 rows of data, it replaced the first row in gt_adrc internal table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 07:57:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-select-statement-into-the-same-internal-table/m-p/5235482#M1210003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T07:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: 2 Select statement into the same internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-select-statement-into-the-same-internal-table/m-p/5235483#M1210004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should use Appending corresponding fields of table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 08:00:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-select-statement-into-the-same-internal-table/m-p/5235483#M1210004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T08:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: 2 Select statement into the same internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-select-statement-into-the-same-internal-table/m-p/5235484#M1210005</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;do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT addrnumber AS vbpaadrnr
             name1 AS iname1
             city1
             post_code1
             street
             APPENDING CORRESPONDING FIELDS OF TABLE gt_adrc
             FROM adrc
             FOR ALL ENTRIES IN gt_vbpa
             WHERE addrnumber = gt_vbpa-adrnr.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pushpraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 08:02:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-select-statement-into-the-same-internal-table/m-p/5235484#M1210005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T08:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: 2 Select statement into the same internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/2-select-statement-into-the-same-internal-table/m-p/5235485#M1210006</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;Change the code as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********As it is&lt;/P&gt;&lt;P&gt;SELECT addrnumber AS lfa1adrnr&lt;/P&gt;&lt;P&gt;             name1 AS hname1&lt;/P&gt;&lt;P&gt;             INTO CORRESPONDING FIELDS OF TABLE gt_adrc&lt;/P&gt;&lt;P&gt;             FROM adrc&lt;/P&gt;&lt;P&gt;             FOR ALL ENTRIES IN gt_lfa1&lt;/P&gt;&lt;P&gt;             WHERE addrnumber = gt_lfa1-adrnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="7" type="ul"&gt;&lt;P&gt;Use APPENDING instead of INTO&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT addrnumber AS vbpaadrnr&lt;/P&gt;&lt;P&gt;             name1 AS iname1&lt;/P&gt;&lt;P&gt;             city1&lt;/P&gt;&lt;P&gt;             post_code1&lt;/P&gt;&lt;P&gt;             street&lt;/P&gt;&lt;P&gt;             APPENDING CORRESPONDING FIELDS OF TABLE gt_adrc&lt;/P&gt;&lt;P&gt;             FROM adrc&lt;/P&gt;&lt;P&gt;             FOR ALL ENTRIES IN gt_vbpa&lt;/P&gt;&lt;P&gt;             WHERE addrnumber = gt_vbpa-adrnr.&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;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2009 08:05:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/2-select-statement-into-the-same-internal-table/m-p/5235485#M1210006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-23T08:05:00Z</dc:date>
    </item>
  </channel>
</rss>

