<?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: Table joins?? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-joins/m-p/1543200#M247305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check the same code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;f1 b&lt;/SUB&gt;f1 c&lt;SUB&gt;f1 d&lt;/SUB&gt;f1 e&lt;SUB&gt;f1 g&lt;/SUB&gt;f1&lt;/P&gt;&lt;P&gt;into table itab&lt;/P&gt;&lt;P&gt;for all entries in ixyz&lt;/P&gt;&lt;P&gt;from a inner join b on a&lt;SUB&gt;f1 = B&lt;/SUB&gt;f1....etc&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;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 Sep 2006 09:21:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-02T09:21:53Z</dc:date>
    <item>
      <title>Table joins??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-joins/m-p/1543199#M247304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wat is the code for the table join using &amp;lt;u&amp;gt;for all entries&amp;lt;/u&amp;gt; statement?how do v join 6 tables using using the above statement...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanking u in anticipation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sirisha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Sep 2006 08:54:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-joins/m-p/1543199#M247304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-02T08:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Table joins??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-joins/m-p/1543200#M247305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check the same code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;f1 b&lt;/SUB&gt;f1 c&lt;SUB&gt;f1 d&lt;/SUB&gt;f1 e&lt;SUB&gt;f1 g&lt;/SUB&gt;f1&lt;/P&gt;&lt;P&gt;into table itab&lt;/P&gt;&lt;P&gt;for all entries in ixyz&lt;/P&gt;&lt;P&gt;from a inner join b on a&lt;SUB&gt;f1 = B&lt;/SUB&gt;f1....etc&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;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Sep 2006 09:21:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-joins/m-p/1543200#M247305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-02T09:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Table joins??</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-joins/m-p/1543201#M247306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sirisha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; You can use the join and for all entries as shown below in the example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;check not t_materials2[] is initial.
sort t_materials2 ascending by matnr werks.
 
SELECT b~matnr b~mtvfp b~werks
       b~dismm b~beskz b~plifz b~disgr
       c~pstat c~mtart c~brgew c~normt z~mtpos
    INTO CORRESPONDING FIELDS OF TABLE t_materials
        FROM marc AS b 
           INNER JOIN mara AS c 
              ON a~matnr = c~matnr
           INNER JOIN mvke AS z
              ON a~matnr = b~matnr 
                 FOR ALL ENTRIES IN t_materials2
                    WHERE b~matnr EQ t_materials2-matnr
                    AND b~werks EQ t_materials2-werks
                    AND b~stawn IN s_stawn
                    AND b~disgr IN s_disgr
                    AND b~mmsta EQ '03'
                    AND c~mtart IN s_mtart
                    AND z~vkorg EQ p_vkorg
                    AND z~vtweg EQ p_vtweg
                    AND z~mtpos IN s_mtpos.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="187014"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Sep 2006 01:57:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-joins/m-p/1543201#M247306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-03T01:57:30Z</dc:date>
    </item>
  </channel>
</rss>

