<?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 Correct Select in ABAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/correct-select-in-abap/m-p/426725#M11944</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have a problem regarding a select statement in ABAP. I need to pick all equipments from table EQUI who have an related measuring point (IMPTT. link between tables is equi-objnr and imptt-mpobj).&lt;/P&gt;&lt;P&gt;I thought of an inner join, but this is not the right way. There are 170 entries in equi but only the last two have measuring points. Each one has for. So mir output of itab has 8 entries.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select equi~equnr equi~objnr imptt~mpobj
  into CORRESPONDING FIELDS OF table itab
  from equi inner JOIN imptt ON  equi~objnr = imptt~mpobj.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Has anybody a suggestion for me how to pick the equipments correctly?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jun 2017 09:16:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2017-06-20T09:16:11Z</dc:date>
    <item>
      <title>Correct Select in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/correct-select-in-abap/m-p/426725#M11944</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have a problem regarding a select statement in ABAP. I need to pick all equipments from table EQUI who have an related measuring point (IMPTT. link between tables is equi-objnr and imptt-mpobj).&lt;/P&gt;&lt;P&gt;I thought of an inner join, but this is not the right way. There are 170 entries in equi but only the last two have measuring points. Each one has for. So mir output of itab has 8 entries.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select equi~equnr equi~objnr imptt~mpobj
  into CORRESPONDING FIELDS OF table itab
  from equi inner JOIN imptt ON  equi~objnr = imptt~mpobj.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Has anybody a suggestion for me how to pick the equipments correctly?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 09:16:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/correct-select-in-abap/m-p/426725#M11944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-06-20T09:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Correct Select in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/correct-select-in-abap/m-p/426726#M11945</link>
      <description>&lt;P&gt;Use a subquery in the WHERE condition, WHERE EXISTS?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 09:44:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/correct-select-in-abap/m-p/426726#M11945</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-06-20T09:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Correct Select in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/correct-select-in-abap/m-p/426727#M11946</link>
      <description>&lt;P&gt;Thanks a lot. Was the right hint.&lt;/P&gt;&lt;P&gt;My correct working select query now looks like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select * from equi into CORRESPONDING FIELDS OF table itab
  where objnr in (
  select imptt~mpobj
  from imptt inner JOIN equi ON ( equi~objnr = imptt~mpobj )
  ).&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Jun 2017 10:31:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/correct-select-in-abap/m-p/426727#M11946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-06-20T10:31:30Z</dc:date>
    </item>
  </channel>
</rss>

