<?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: using 2 tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-2-tables/m-p/3716363#M894641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select using Inner joins&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT d~aufnr d~qmnum a~aufpl a~pernr a~steus " flg_kmp
a~larnt a~anzzl a~preis a~waers
a~matkl a~ekgrp a~ekorg a~lifnr a~ltxa1 a~banfn a~bnfpo
b~arbeh b~daune b~dauno b~mgvrg b~meinh
c~packno c~sub_packno c~srvpos
a~sakto c~netwr a~vornr
c~menge c~meins d~auart
INTO TABLE lt_all
FROM viaufkst AS d INNER JOIN
afvc AS a ON
d~aufpl = a~aufpl
INNER JOIN afvv AS b
ON a~aufpl = b~aufpl AND
a~aplzl = b~aplzl
INNER JOIN esll AS c
ON c~packno EQ a~packno
FOR ALL ENTRIES IN lt_viau
WHERE d~aufnr = lt_viau-aufnr AND
d~aufpl = lt_viau-aufpl AND
d~auart = lt_viau-auart.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Apr 2008 18:48:01 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2008-04-21T18:48:01Z</dc:date>
    <item>
      <title>using 2 tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-2-tables/m-p/3716362#M894640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i hv to use 3 fields ....but 2 fields r in table-1 and 3rd field is in table-2&lt;/P&gt;&lt;P&gt;so what would b the select query for this.................&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 18:43:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-2-tables/m-p/3716362#M894640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T18:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: using 2 tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-2-tables/m-p/3716363#M894641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select using Inner joins&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT d~aufnr d~qmnum a~aufpl a~pernr a~steus " flg_kmp
a~larnt a~anzzl a~preis a~waers
a~matkl a~ekgrp a~ekorg a~lifnr a~ltxa1 a~banfn a~bnfpo
b~arbeh b~daune b~dauno b~mgvrg b~meinh
c~packno c~sub_packno c~srvpos
a~sakto c~netwr a~vornr
c~menge c~meins d~auart
INTO TABLE lt_all
FROM viaufkst AS d INNER JOIN
afvc AS a ON
d~aufpl = a~aufpl
INNER JOIN afvv AS b
ON a~aufpl = b~aufpl AND
a~aplzl = b~aplzl
INNER JOIN esll AS c
ON c~packno EQ a~packno
FOR ALL ENTRIES IN lt_viau
WHERE d~aufnr = lt_viau-aufnr AND
d~aufpl = lt_viau-aufpl AND
d~auart = lt_viau-auart.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 18:48:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-2-tables/m-p/3716363#M894641</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-04-21T18:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: using 2 tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-2-tables/m-p/3716364#M894642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT t1&lt;SUB&gt;field1 t2&lt;/SUB&gt;field1 t1~field3 &lt;/P&gt;&lt;P&gt;       INTO  TABLE itab &lt;/P&gt;&lt;P&gt;       FROM t1  &lt;/P&gt;&lt;P&gt;       inner JOIN t2  ON t1&lt;SUB&gt;&amp;lt;field&amp;gt;   =  t2&lt;/SUB&gt;&amp;lt;field&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Apr 2008 18:54:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-2-tables/m-p/3716364#M894642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-21T18:54:37Z</dc:date>
    </item>
  </channel>
</rss>

