<?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: Select querry using inner join in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry-using-inner-join/m-p/1834120#M355210</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;Try using CORRESPONDING FIELDS statement and include all the key fields in where condition ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT but000~partner
but000~name_org1
but000~name_first
but000~name_last
but000~bpext
FROM but000 INNER JOIN dfkkop ON but000~partner = dfkkop~gpart
&amp;lt;b&amp;gt;INTO CORRESPONDING FIELDS OF&amp;lt;/b&amp;gt; table lt_but000
WHERE but000~partner IN so_part
AND dfkkop~faedn IN so_faedn.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jan 2007 08:19:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-29T08:19:30Z</dc:date>
    <item>
      <title>Select querry using inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry-using-inner-join/m-p/1834114#M355204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to fetch data from two tables, I used inner join but I am not able to fetch the data in some fields can any one tell me what is wrong in this select querry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT but000~partner&lt;/P&gt;&lt;P&gt;         but000~name_org1&lt;/P&gt;&lt;P&gt;         but000~name_first&lt;/P&gt;&lt;P&gt;         but000~name_last&lt;/P&gt;&lt;P&gt;         but000~bpext&lt;/P&gt;&lt;P&gt;      FROM but000 INNER JOIN dfkkop ON but000&lt;SUB&gt;partner = dfkkop&lt;/SUB&gt;gpart&lt;/P&gt;&lt;P&gt;    INTO table lt_but000&lt;/P&gt;&lt;P&gt;    WHERE but000~partner IN so_part&lt;/P&gt;&lt;P&gt;    AND dfkkop~faedn IN so_faedn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parvez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 08:12:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry-using-inner-join/m-p/1834114#M355204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T08:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Select querry using inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry-using-inner-join/m-p/1834115#M355205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT but000~partner&lt;/P&gt;&lt;P&gt;but000~name_org1&lt;/P&gt;&lt;P&gt;but000~name_first&lt;/P&gt;&lt;P&gt;but000~name_last&lt;/P&gt;&lt;P&gt;but000~bpext&lt;/P&gt;&lt;P&gt;FROM but000 INNER JOIN dfkkop ON but000&lt;SUB&gt;partner = dfkkop&lt;/SUB&gt;gpart&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF table lt_but000&lt;/P&gt;&lt;P&gt;WHERE but000~partner IN so_part&lt;/P&gt;&lt;P&gt;AND dfkkop~faedn IN so_faedn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY TO USE CORRESPONDING FIELDS OF AND CHECK WHETHER IT IS COMING CORRECTLY OR NOT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;P&gt;SHIBA DUTTA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 08:15:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry-using-inner-join/m-p/1834115#M355205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T08:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select querry using inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry-using-inner-join/m-p/1834116#M355206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Lutin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT but000~partner&lt;/P&gt;&lt;P&gt;but000~name_org1&lt;/P&gt;&lt;P&gt;but000~name_first&lt;/P&gt;&lt;P&gt;but000~name_last&lt;/P&gt;&lt;P&gt;but000~bpext&lt;/P&gt;&lt;P&gt;FROM but000 INNER JOIN dfkkop ON but000&lt;SUB&gt;partner = dfkkop&lt;/SUB&gt;gpart  &amp;lt;------check this condition,it has to *satisfy  both table                                                                         &lt;/P&gt;&lt;P&gt;INTO table lt_but000&lt;/P&gt;&lt;P&gt;WHERE but000~partner IN so_part&lt;/P&gt;&lt;P&gt;AND dfkkop~faedn IN so_faedn.&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;siva&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        SivaKumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 08:16:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry-using-inner-join/m-p/1834116#M355206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T08:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Select querry using inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry-using-inner-join/m-p/1834117#M355207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When you are not selecting any field from table dfkkop why do you want to join that table in the select query?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Decide which fields you want and then write the select query with or without join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 08:18:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry-using-inner-join/m-p/1834117#M355207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T08:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Select querry using inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry-using-inner-join/m-p/1834118#M355208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Line , &lt;/P&gt;&lt;P&gt;  If you are able to retrieve data from some feilds that means that your query is correct , so please check the decleration of your internal table and the sequence is same as the one in  your select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 08:18:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry-using-inner-join/m-p/1834118#M355208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T08:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Select querry using inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry-using-inner-join/m-p/1834119#M355209</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;PRE&gt;&lt;CODE&gt;SELECT but000~partner
but000~name_org1
but000~name_first
but000~name_last
but000~bpext
INTO table lt_but000
FROM but000 INNER JOIN dfkkop 
    ON but000~partner = dfkkop~gpart 
WHERE but000~partner IN so_part
     AND dfkkop~faedn    IN so_faedn.

If u dont want dfkkop
SELECT partner
name_org1
name_first
name_last
bpext
INTO table lt_but000
FROM but000 
WHERE partner IN so_part.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work, check whether there are entries in the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 08:19:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry-using-inner-join/m-p/1834119#M355209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T08:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Select querry using inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry-using-inner-join/m-p/1834120#M355210</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;Try using CORRESPONDING FIELDS statement and include all the key fields in where condition ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT but000~partner
but000~name_org1
but000~name_first
but000~name_last
but000~bpext
FROM but000 INNER JOIN dfkkop ON but000~partner = dfkkop~gpart
&amp;lt;b&amp;gt;INTO CORRESPONDING FIELDS OF&amp;lt;/b&amp;gt; table lt_but000
WHERE but000~partner IN so_part
AND dfkkop~faedn IN so_faedn.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 08:19:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry-using-inner-join/m-p/1834120#M355210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T08:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Select querry using inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry-using-inner-join/m-p/1834121#M355211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;     check the fields in table.whether it contains data or not??also check the where condition (both fileds Domain should be same).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shobha Henry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 09:01:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-querry-using-inner-join/m-p/1834121#M355211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T09:01:10Z</dc:date>
    </item>
  </channel>
</rss>

