<?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: How to join two different tables into internal table using one select statement . in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401186#M1735968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Apr 2013 12:11:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-04-24T12:11:42Z</dc:date>
    <item>
      <title>How to join two different tables into internal table using one select statement .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401183#M1735965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;This is my scenario&lt;/P&gt;&lt;P&gt;I've two tables MCH1 &amp;amp; MCHB .&lt;/P&gt;&lt;P&gt;I've 3 fields that has to be selected from MCH1 table with MATNR as key &amp;amp; I've to select 2 fields from MCHB with MATNR as key field.&lt;/P&gt;&lt;P&gt;The above condition has to be done by using only one select statement and data has to be stored in internal table in xxx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 11:31:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401183#M1735965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-24T11:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two different tables into internal table using one select statement .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401184#M1735966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; It can be achieved using JOIN in SELECT statement. Please search in the forum to find more information about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;~Athreya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 11:42:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401184#M1735966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-24T11:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two different tables into internal table using one select statement .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401185#M1735967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 11:55:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401185#M1735967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-24T11:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two different tables into internal table using one select statement .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401186#M1735968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 12:11:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401186#M1735968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-24T12:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two different tables into internal table using one select statement .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401187#M1735969</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 inner join to do so.Check sample code as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select&amp;nbsp; mch1~matnr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mch1~xyz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mchb~abc&lt;/P&gt;&lt;P&gt;into table it_mch1_mchb&lt;/P&gt;&lt;P&gt;where mch1-matnr in s_matnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 12:47:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401187#M1735969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-24T12:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two different tables into internal table using one select statement .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401188#M1735970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 12:51:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401188#M1735970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-24T12:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two different tables into internal table using one select statement .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401189#M1735971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select a~field1 a~field2 a~field3 b~field1 b~field2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;MCH1 as a &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; join MCHB&lt;/SPAN&gt; as b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on a~matnr eq b~matnr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; into table t_xxx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where a~matnr in s_matnr "or whatever select cause you have&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 13:00:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401189#M1735971</guid>
      <dc:creator>custodio_deoliveira</dc:creator>
      <dc:date>2013-04-24T13:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two different tables into internal table using one select statement .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401190#M1735972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 13:01:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401190#M1735972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-24T13:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two different tables into internal table using one select statement .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401191#M1735973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12.222222328186035px; background-color: #ffffff; color: #333333;"&gt;Use inner join to do so.Please find correct code as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; background-color: #ffffff; color: #333333;"&gt;select&amp;nbsp;&amp;nbsp;&amp;nbsp; mch1~matnr&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mch1~xyz&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; background-color: #ffffff; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mchb~abc&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; background-color: #ffffff; color: #333333;"&gt;into table it_mch1_mchb&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; background-color: #ffffff; color: #333333;"&gt;from mch1 inner join mchb&lt;/P&gt;&lt;P style="font-size: 12.222222328186035px; background-color: #ffffff; color: #333333;"&gt;where mch1-matnr in s_matnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 13:06:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401191#M1735973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-24T13:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two different tables into internal table using one select statement .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401192#M1735974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi suhas for this the above is correct, in abap there is one select statement called select with joins which can be used to fetch the data from multiple table at a time in to one internal table . as they said the above is the syntax , but u can use this select statement only when there is atleast one common field in the joining tables for join in the join condition . here we can use either inner join or else ought er join as per your need. &lt;/P&gt;&lt;P&gt;select table1~field1 table1~field2--- table2~field1 table2~field2 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; into table ITAB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from table 1 alias a table 2 alias b &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inner join &amp;lt;join condition&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where condition .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 14:25:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401192#M1735974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-24T14:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two different tables into internal table using one select statement .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401193#M1735975</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;and if you want that anyone understands your code, then do not use ALIAS AS a or AS b if you don't need to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select MCH1~field1 MCH1~field2 MCH1~field3 MCHB~field1 MCHB~field2&lt;/P&gt;&lt;P&gt;&amp;nbsp; from MCH1&lt;/P&gt;&lt;P&gt;&amp;nbsp; join MCHB&lt;/P&gt;&lt;P&gt;&amp;nbsp; on MCH1~matnr eq MCHB~matnr&lt;/P&gt;&lt;P&gt;&amp;nbsp; into table t_xxx&lt;/P&gt;&lt;P&gt;&amp;nbsp; where MCH1~matnr in s_matnr "or whatever select cause you have&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 14:31:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401193#M1735975</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2013-04-24T14:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two different tables into internal table using one select statement .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401194#M1735976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cleamens ,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;what if I've to add multiple condition in where clause ?&lt;/P&gt;&lt;P&gt;like the below code&lt;/P&gt;&lt;P&gt;Select matnr , charg, vfdat from MCH1 table &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where MCH1-MATNR = gt_matnr_batch -MATNR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND mch1-lvorm &amp;lt;&amp;gt; ‘X’&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND ZUSTD &amp;lt;&amp;gt; ‘X’.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select field CLABS from table MCHB &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Where MATNR = gt_matnr_batch-matnr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; And werks = [input_parma]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; And lgort = [input_parma]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; And lvorm &amp;lt;&amp;gt; ‘X’&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Suhas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 14:39:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401194#M1735976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-24T14:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two different tables into internal table using one select statement .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401195#M1735977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can have the where clause as you need it. Only if a field is present in both tables joined, you will get a syntax error because it can not be determined which table should be taken into consideration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must write WHERE MCH1~MATNR = ... or MCHB~MATNR = ... which is the same as the join condition defines. For LVORM you must decide or know if you need&amp;nbsp; WHERE MCH1~LVORM = 'X' or&lt;/P&gt;&lt;P&gt;MCHB~LVORM = 'X' or even combine the conditions with AND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For transparency reasons it may be always better to specify the table, i.e. MCH1~ZUST = 'X'. It helps other people to understand the code better.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 07:55:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401195#M1735977</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2013-04-25T07:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two different tables into internal table using one select statement .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401196#M1735978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Completely disagree with the non alias stuff. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 13:10:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401196#M1735978</guid>
      <dc:creator>custodio_deoliveira</dc:creator>
      <dc:date>2013-04-25T13:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two different tables into internal table using one select statement .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401197#M1735979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have also replied for this post and its been approved by moderator also then why it is not displayed.&lt;/P&gt;&lt;P&gt;&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;Dinesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 10:28:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401197#M1735979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-26T10:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two different tables into internal table using one select statement .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401198#M1735980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Mar 2014 14:11:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401198#M1735980</guid>
      <dc:creator>anand_n5</dc:creator>
      <dc:date>2014-03-15T14:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two different tables into internal table using one select statement .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401199#M1735981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please send snapshots of each of the three tables as seen in se11.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Mar 2014 10:24:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401199#M1735981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-16T10:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two different tables into internal table using one select statement .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401200#M1735982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John&lt;/P&gt;&lt;P&gt;Thank you for your concern&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am using &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;MARD&lt;/SPAN&gt;,&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;MARA&lt;/SPAN&gt;,&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;MAKT&lt;/SPAN&gt; tables&lt;/P&gt;&lt;P&gt;MARD&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;matnr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;werks&lt;/P&gt;&lt;P&gt;lgort&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MARA&lt;/P&gt;&lt;P&gt;matnr&lt;/P&gt;&lt;P&gt;ersda&lt;/P&gt;&lt;P&gt;ernam&lt;/P&gt;&lt;P&gt;mtart&lt;/P&gt;&lt;P&gt;matkl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAKT&lt;/P&gt;&lt;P&gt;matnr&lt;/P&gt;&lt;P&gt;spras&lt;/P&gt;&lt;P&gt;maktx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have declared three internal tables now i need to move all these records to single internal table&lt;/P&gt;&lt;P&gt;but am not sure whether i should joins or fall all entries if you could please let me know how can i move all these records to a single internal table using SELECT statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Mar 2014 18:00:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401200#M1735982</guid>
      <dc:creator>anand_n5</dc:creator>
      <dc:date>2014-03-22T18:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two different tables into internal table using one select statement .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401201#M1735983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*One select statement seems enough.&lt;/P&gt;&lt;P&gt;*Try the following (copy and paste):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: begin of mar_typ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; matnr type mara-matnr,&lt;/P&gt;&lt;P&gt;&amp;nbsp; werks type mard-werks,&lt;/P&gt;&lt;P&gt;&amp;nbsp; lgort type mard-lgort,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ersda type mara-ersda,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ernam type mara-ernam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mtart type mara-mtart,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matkl type mara-matkl,&lt;/P&gt;&lt;P&gt;&amp;nbsp; spras type makt-spras,&lt;/P&gt;&lt;P&gt;&amp;nbsp; maktx type makt-maktx,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end of mar_typ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: int_tab type standard table of mar_typ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa type mar_typ.&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;&lt;/P&gt;&lt;P&gt;select a~matnr a~werks a~lgort&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b~ersda b~ernam b~mtart b~matkl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c~spras c~maktx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; into corresponding fields of table int_tab&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; from mard as a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; inner join mara as b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on a~matnr = b~matnr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; inner join makt as c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on b~matnr = c~matnr&lt;/P&gt;&lt;P&gt;where c~spras = 'EN'. "or your logon language.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at int_tab into wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ wa-matnr, wa-werks, wa-lgort, wa-ersda, wa-ernam, wa-mtart, wa-matkl, wa-spras, wa-maktx.&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;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Mar 2014 18:49:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-join-two-different-tables-into-internal-table-using-one-select/m-p/9401201#M1735983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-22T18:49:32Z</dc:date>
    </item>
  </channel>
</rss>

