<?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: Abap inner join issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inner-join-issue/m-p/12066789#M1969750</link>
    <description>&lt;P&gt;You got to provide the language key when going to MAKT and use left join. Like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LEFT JOIN makt ON makt~matnr EQ mara~matnr AND makt~spras EQ sy-langu&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 15 Oct 2019 05:45:00 GMT</pubDate>
    <dc:creator>keremkoseoglu</dc:creator>
    <dc:date>2019-10-15T05:45:00Z</dc:date>
    <item>
      <title>Abap inner join issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inner-join-issue/m-p/12066785#M1969746</link>
      <description>&lt;P&gt;I am geeting an error while performing inner join in abap.i checked it in debugger screen but not getting any solution.kindly help me out for resolving this issue asap.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1739841-img-20191013-wa0008.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1739842-img-20191013-wa0006.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1739843-img-20191013-wa0007.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 14:49:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inner-join-issue/m-p/12066785#M1969746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-10-14T14:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Abap inner join issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inner-join-issue/m-p/12066786#M1969747</link>
      <description>&lt;P&gt;Please copy your code and use the 'CODE' option in editor. It increases chances to get answer.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 15:22:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inner-join-issue/m-p/12066786#M1969747</guid>
      <dc:creator>GK817</dc:creator>
      <dc:date>2019-10-14T15:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Abap inner join issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inner-join-issue/m-p/12066787#M1969748</link>
      <description>&lt;P&gt;Hi    &lt;SPAN class="mention-scrubbed"&gt;koushikbose2019&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;You don't have an error with the INNER JOIN, you have a problem with your target data structure!&lt;/P&gt;&lt;P&gt; You defined an internal sorted table with a unique key MATNR, ERNAME, MAKTX. But this SELECT statement returns multiple rows with equal field values!&lt;/P&gt;&lt;P&gt;So either you change the query to &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT DISTINCT MR~MATNR MR~ERNAME MK~MAKTX...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;or you change the key of mytable to non unique:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;... WITH NON-UNIQUE KEY ...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Domi&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 20:53:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inner-join-issue/m-p/12066787#M1969748</guid>
      <dc:creator>Domi</dc:creator>
      <dc:date>2019-10-14T20:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Abap inner join issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inner-join-issue/m-p/12066788#M1969749</link>
      <description>&lt;P&gt;Hello &lt;A href="https://answers.sap.com/users/885301/koushikbose2019.html"&gt;Koushik Bose&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;The issue is not with the join statements but on the resultant data. The data that you are fetching has duplicate entries, in other words for the where condition you have given there are more than one entry in your database. &lt;/P&gt;&lt;P&gt;You can check the same in backend in SE11 tcode by giving the same where condition. &lt;/P&gt;&lt;P&gt;You can either use NON UNIQUE KEY in the internal table declaration or using SELECT DISTINCT in the select statement. &lt;/P&gt;&lt;P&gt;One other solution would be you can just declare the table as a standard table instead of Sorted and sort your table after select statement. &lt;/P&gt;&lt;P&gt;Based on the logic you have incorporated using NON UNIQUE KEY or using STANDARD instead of SORTED would be an ideal solution. &lt;/P&gt;&lt;P&gt;Please use the CODE button next time to paste the code. &lt;/P&gt;&lt;P&gt;Hope this helps!!! &lt;/P&gt;&lt;P&gt;Regards! &lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 02:11:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inner-join-issue/m-p/12066788#M1969749</guid>
      <dc:creator>former_member1716</dc:creator>
      <dc:date>2019-10-15T02:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Abap inner join issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inner-join-issue/m-p/12066789#M1969750</link>
      <description>&lt;P&gt;You got to provide the language key when going to MAKT and use left join. Like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LEFT JOIN makt ON makt~matnr EQ mara~matnr AND makt~spras EQ sy-langu&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Oct 2019 05:45:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-inner-join-issue/m-p/12066789#M1969750</guid>
      <dc:creator>keremkoseoglu</dc:creator>
      <dc:date>2019-10-15T05:45:00Z</dc:date>
    </item>
  </channel>
</rss>

