<?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 outer join in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/outer-join/m-p/2263580#M490985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;need to join two tables HRP5103 &amp;amp; HRP5104. &lt;/P&gt;&lt;P&gt;From table HRP5104 I need to take fields (INSTITUTE, START_DATE, END_DATE, SEQNR) and from table HRP5103 (CTC, CURRKEY) on basis of OBJID which is common in both table. I need all the field from HRP5104 &amp;amp; HRP5103 (common &amp;amp; unique) &lt;/P&gt;&lt;P&gt;for e.g. OBJID in HRP5104 are 001,002,003,004,005,007 &amp;amp; in HRP5104 OBJID are 001,002,006 so ineed in joined table as 001,002,003,004,005,006,007.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you plz provide code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 May 2007 06:12:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-24T06:12:39Z</dc:date>
    <item>
      <title>outer join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outer-join/m-p/2263580#M490985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;need to join two tables HRP5103 &amp;amp; HRP5104. &lt;/P&gt;&lt;P&gt;From table HRP5104 I need to take fields (INSTITUTE, START_DATE, END_DATE, SEQNR) and from table HRP5103 (CTC, CURRKEY) on basis of OBJID which is common in both table. I need all the field from HRP5104 &amp;amp; HRP5103 (common &amp;amp; unique) &lt;/P&gt;&lt;P&gt;for e.g. OBJID in HRP5104 are 001,002,003,004,005,007 &amp;amp; in HRP5104 OBJID are 001,002,006 so ineed in joined table as 001,002,003,004,005,006,007.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you plz provide code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2007 06:12:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outer-join/m-p/2263580#M490985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-24T06:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: outer join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outer-join/m-p/2263581#M490986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Declare a ITAB with the necessary fields&lt;/P&gt;&lt;P&gt;Select &lt;/P&gt;&lt;P&gt;a~INSTITUTE&lt;/P&gt;&lt;P&gt;a~START_DATE&lt;/P&gt;&lt;P&gt;a~ END_DATE&lt;/P&gt;&lt;P&gt;a~SEQNR&lt;/P&gt;&lt;P&gt;b~CTC&lt;/P&gt;&lt;P&gt;b~CURRKEY&lt;/P&gt;&lt;P&gt;into table ITAB&lt;/P&gt;&lt;P&gt;From HRP5104 as a join  HRP5103  as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;objid = b&lt;/SUB&gt;objid &lt;/P&gt;&lt;P&gt;where a&lt;SUB&gt;plvar =  ,,,, and a&lt;/SUB&gt;objid = ....&lt;/P&gt;&lt;P&gt;(give all the where condition fields)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2007 06:19:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outer-join/m-p/2263581#M490986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-24T06:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: outer join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outer-join/m-p/2263582#M490987</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;The best way to get the data for your requirement is to first get data is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT &amp;lt;fields from respective tables using alias&amp;gt;&lt;/P&gt;&lt;P&gt;INTO      CORRESPONDING FIELDS OF TABLE &amp;lt;internal table&amp;gt;&lt;/P&gt;&lt;P&gt;FROM    HRP5104 as A LEFT OUTER JOIN HRP5103 as B&lt;/P&gt;&lt;P&gt;ON         A&lt;SUB&gt;OBJID = B&lt;/SUB&gt;OBJID&lt;/P&gt;&lt;P&gt;WHERE  &amp;lt;conditions&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2007 06:20:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outer-join/m-p/2263582#M490987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-24T06:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: outer join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outer-join/m-p/2263583#M490988</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;SELECT A&lt;SUB&gt;INSTITUTE A&lt;/SUB&gt;START_DATE A&lt;SUB&gt;END_DATE  A&lt;/SUB&gt;SEQNR  B&lt;SUB&gt;CTC B&lt;/SUB&gt;CURRKEY INTO CORRESPONDING FIELDS OF TABLE itab &lt;/P&gt;&lt;P&gt;FROM HRP5104 AS A&lt;/P&gt;&lt;P&gt;LEFT OUTER JOIN HRP5103 AS B ON A&lt;SUB&gt;OBJID = B&lt;/SUB&gt;OBJID.&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;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2007 06:28:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outer-join/m-p/2263583#M490988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-24T06:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: outer join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/outer-join/m-p/2263584#M490989</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;As you need data from both the tables, &amp;lt;b&amp;gt;you will need 2 OUTER JOINs&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare a ITAB with the necessary fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;* This will get 001,002,003,004,005,007.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Select &lt;/P&gt;&lt;P&gt;a~INSTITUTE&lt;/P&gt;&lt;P&gt;a~START_DATE&lt;/P&gt;&lt;P&gt;a~ END_DATE&lt;/P&gt;&lt;P&gt;a~SEQNR&lt;/P&gt;&lt;P&gt;b~CTC&lt;/P&gt;&lt;P&gt;b~CURRKEY&lt;/P&gt;&lt;P&gt;into table ITAB&lt;/P&gt;&lt;P&gt;From HRP5104 as a left outer join HRP5103 as b&lt;/P&gt;&lt;P&gt;on a~objid = b~objid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;* This will get 001,002,006&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Select &lt;/P&gt;&lt;P&gt;a~INSTITUTE&lt;/P&gt;&lt;P&gt;a~START_DATE&lt;/P&gt;&lt;P&gt;a~ END_DATE&lt;/P&gt;&lt;P&gt;a~SEQNR&lt;/P&gt;&lt;P&gt;b~CTC&lt;/P&gt;&lt;P&gt;b~CURRKEY&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;appending&amp;lt;/b&amp;gt; table ITAB&lt;/P&gt;&lt;P&gt;From HRP5103 as b left outer join HRP5104 as a&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;objid = b&lt;/SUB&gt;objid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;*This will remove duplicate entries of 001,002&lt;/P&gt;&lt;P&gt;*Hence the final output woulde 001 to 007.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;SORT ITAB.&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should serve the purpose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2007 06:31:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/outer-join/m-p/2263584#M490989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-24T06:31:12Z</dc:date>
    </item>
  </channel>
</rss>

