<?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: Inner Join in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/2219989#M476522</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For a inner join the record must exist in both tables.&lt;/P&gt;&lt;P&gt;For your requirement you will need an outer join or LEFT JOIN (instead of INNER JOIN) in abap code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Hans&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward all helpful answers !!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Apr 2007 07:52:30 GMT</pubDate>
    <dc:creator>h_senden2</dc:creator>
    <dc:date>2007-04-23T07:52:30Z</dc:date>
    <item>
      <title>Inner Join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/2219987#M476520</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;I have the inner join between VIQMEL and VIQMFE tables as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT a~qmart&lt;/P&gt;&lt;P&gt;           a~qmnum&lt;/P&gt;&lt;P&gt;           a~qmtxt&lt;/P&gt;&lt;P&gt;           a~qmdat&lt;/P&gt;&lt;P&gt;           a~qmdab&lt;/P&gt;&lt;P&gt;           a~tplnr&lt;/P&gt;&lt;P&gt;           a~vkorg&lt;/P&gt;&lt;P&gt;           a~objnr&lt;/P&gt;&lt;P&gt;           a~mawerk&lt;/P&gt;&lt;P&gt;           a~lifnum&lt;/P&gt;&lt;P&gt;           a~matnr&lt;/P&gt;&lt;P&gt;           a~coaufnr&lt;/P&gt;&lt;P&gt;           a~zzposid&lt;/P&gt;&lt;P&gt;      FROM viqmel AS a INNER JOIN viqmfe AS b&lt;/P&gt;&lt;P&gt;      ON a&lt;SUB&gt;qmnum = b&lt;/SUB&gt;qmnum&lt;/P&gt;&lt;P&gt;      INTO TABLE i_viqmel&lt;/P&gt;&lt;P&gt;      WHERE a~qmart   IN r_qmart AND&lt;/P&gt;&lt;P&gt;            a~qmart IN ('QE','QI','V2','V3','V4','V5','WG','ZG','ZS','ZW') AND&lt;/P&gt;&lt;P&gt;            a~qmnum   IN r_qmnum AND&lt;/P&gt;&lt;P&gt;            a~tplnr   IN r_tplnr AND&lt;/P&gt;&lt;P&gt;            a~vkorg   IN r_vkorg AND&lt;/P&gt;&lt;P&gt;            a~mawerk  IN r_mawerk AND&lt;/P&gt;&lt;P&gt;            b~otgrp   IN r_otgrp AND&lt;/P&gt;&lt;P&gt;            b~oteil   IN r_oteil AND&lt;/P&gt;&lt;P&gt;            a~lifnum  IN r_lifnum AND&lt;/P&gt;&lt;P&gt;            a~matnr   IN r_matnr AND&lt;/P&gt;&lt;P&gt;            a~coaufnr IN r_coaufnr AND&lt;/P&gt;&lt;P&gt;            a~zzposid IN r_zzposid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here for some Notification numbers i am not getting the records as the number is not maintained in VIQMFE table but the entry exists in VIQMEL table. But i need to get the record even it is not in VIQMFE table. Can anyone let me know how to change the above statement to get the records. Is the join used correct or need to write any other join for these kind of situations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 07:45:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/2219987#M476520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-23T07:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/2219988#M476521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at the help for LEFT OUTER JOIN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 07:50:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/2219988#M476521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-23T07:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Inner Join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/2219989#M476522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For a inner join the record must exist in both tables.&lt;/P&gt;&lt;P&gt;For your requirement you will need an outer join or LEFT JOIN (instead of INNER JOIN) in abap code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Hans&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward all helpful answers !!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 07:52:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join/m-p/2219989#M476522</guid>
      <dc:creator>h_senden2</dc:creator>
      <dc:date>2007-04-23T07:52:30Z</dc:date>
    </item>
  </channel>
</rss>

