<?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: two transparent table into one internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-transparent-table-into-one-internal-table/m-p/4651062#M1094450</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Define internal table with four fields and then select..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT budat dmbtr INTO (it_lastPay-budat1 , it_lastpay-dmbtr1) FROM bsad&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;same second select..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT budat dmbtr INTO (it_lastPay-budat2 , it_lastpay-dmbtr2) FROM bsid&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Oct 2008 09:18:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-20T09:18:46Z</dc:date>
    <item>
      <title>two transparent table into one internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-transparent-table-into-one-internal-table/m-p/4651058#M1094446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;good day experts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want to ask this cause I am puzzled what to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two transparent tables (BSID and BSAD). I want to take the fields BUDAT and DMBTR on both tables and place it on a single internal table. So what I did is, i make two SELECT statements like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*first select statement giving One (1) result&lt;/P&gt;&lt;P&gt;SELECT budat dmbtr INTO table it_lastPay&lt;/P&gt;&lt;P&gt;   FROM bsid&lt;/P&gt;&lt;P&gt;   WHERE kunnr = p_wa_data_kunnr&lt;/P&gt;&lt;P&gt;   AND   budat =&amp;lt; s_date&lt;/P&gt;&lt;P&gt;   AND   blart = 'DZ'&lt;/P&gt;&lt;P&gt;   AND   umsks IN ('', 'L', 'A')&lt;/P&gt;&lt;P&gt;   AND   umskz IN ('', 'L', 'A')&lt;/P&gt;&lt;P&gt;   AND   bschl IN ('15', '19').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*second select statement giving Four (4) results&lt;/P&gt;&lt;P&gt;SELECT budat dmbtr INTO table it_lastPay&lt;/P&gt;&lt;P&gt;   FROM bsad&lt;/P&gt;&lt;P&gt;   WHERE kunnr = p_wa_data_kunnr&lt;/P&gt;&lt;P&gt;   AND   budat =&amp;lt; s_date&lt;/P&gt;&lt;P&gt;   AND   blart = 'DZ'&lt;/P&gt;&lt;P&gt;   AND   umsks IN ('', 'L', 'A')&lt;/P&gt;&lt;P&gt;   AND   umskz IN ('', 'L', 'A')&lt;/P&gt;&lt;P&gt;   AND   bschl IN ('15', '19').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the result is not what I expect. With this staments above, the result will be just four records.&lt;/P&gt;&lt;P&gt;The first select stament was superceded by the second statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any idea to correct this statement or anything to do to produce five records using one internal table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 09:13:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-transparent-table-into-one-internal-table/m-p/4651058#M1094446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T09:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: two transparent table into one internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-transparent-table-into-one-internal-table/m-p/4651059#M1094447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;replace "INTO" by "APPENDING" in second select statement.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 09:15:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-transparent-table-into-one-internal-table/m-p/4651059#M1094447</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-10-20T09:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: two transparent table into one internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-transparent-table-into-one-internal-table/m-p/4651060#M1094448</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;In second select stmt use APPENDING.....&lt;/P&gt;&lt;P&gt;for syntax press f1 on select stmt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds.,&lt;/P&gt;&lt;P&gt;subash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 09:17:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-transparent-table-into-one-internal-table/m-p/4651060#M1094448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T09:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: two transparent table into one internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-transparent-table-into-one-internal-table/m-p/4651061#M1094449</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;Use &lt;STRONG&gt;Appending&lt;/STRONG&gt; in the second select query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the similar select quieries&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  SELECT   KNA1~KTOKD KNA1~KUNNR KNA1~LIFNR KNA1~adrnr
           KNA1~LAND1 KNA1~SPRAS KNA1~VBUND
           KNB1~BUSAB KNB1~BUKRS KNB1~ALTKN 
     INTO TABLE T_KNA
           FROM KNA1 INNER JOIN KNB1
           ON ( KNA1~KUNNR = KNB1~KUNNR )
         FOR ALL ENTRIES IN T_KUNNR
        WHERE KNA1~KUNNR = T_KUNNR-KUNNR
          And t_kunnr-type = u2018Cu2018
          AND KNB1~BUKRS = P_BUKRS.
                     


  SELECT   LFA1~KTOKD lFA1~KUNNR LFA1~LIFNR LFA1~ANRNR
           LFA1~LAND1 LFA1~SPRAS LFA1~VBUND
           LFB1~BUSAB LFB1~BUKRS LFB1~ALTKN 
           APPENDING TABLE T_KNA                                       " Check this
           FROM LFA1 INNER JOIN LFB1
           ON ( LFA1~KUNNR = LFB1~KUNNR )
         FOR ALL ENTRIES IN T_KUNNR
        WHERE LFA1~KUNNR = T_KUNNR-KUNNR
          And t_kunnr-type = u2018Vu2018
          AND lfB1~BUKRS = P_BUKRS.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 09:17:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-transparent-table-into-one-internal-table/m-p/4651061#M1094449</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-10-20T09:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: two transparent table into one internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-transparent-table-into-one-internal-table/m-p/4651062#M1094450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Define internal table with four fields and then select..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT budat dmbtr INTO (it_lastPay-budat1 , it_lastpay-dmbtr1) FROM bsad&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;same second select..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT budat dmbtr INTO (it_lastPay-budat2 , it_lastpay-dmbtr2) FROM bsid&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 09:18:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-transparent-table-into-one-internal-table/m-p/4651062#M1094450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T09:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: two transparent table into one internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-transparent-table-into-one-internal-table/m-p/4651063#M1094451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you for your immediate replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 09:20:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-transparent-table-into-one-internal-table/m-p/4651063#M1094451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T09:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: two transparent table into one internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/two-transparent-table-into-one-internal-table/m-p/4651064#M1094452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you for your immediate replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 09:20:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/two-transparent-table-into-one-internal-table/m-p/4651064#M1094452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T09:20:24Z</dc:date>
    </item>
  </channel>
</rss>

