<?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 Inner join problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-problem/m-p/1244690#M143171</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear firends&lt;/P&gt;&lt;P&gt;   How are you,,, &lt;/P&gt;&lt;P&gt;            I am facing a problem in inner join...please have a look at the code:&lt;/P&gt;&lt;P&gt;           select a&lt;SUB&gt;equnr a&lt;/SUB&gt;tplnr a~werk&lt;/P&gt;&lt;P&gt;              b&lt;SUB&gt;equnr b&lt;/SUB&gt;werks b~stlnr&lt;/P&gt;&lt;P&gt;              from v_equi as a&lt;/P&gt;&lt;P&gt;              inner join eqst as b&lt;/P&gt;&lt;P&gt;              on a&lt;SUB&gt;equnr = b&lt;/SUB&gt;equnr&lt;/P&gt;&lt;P&gt;              into corresponding fields of table it_eqst&lt;/P&gt;&lt;P&gt;                   where equnr in equp_no.&lt;/P&gt;&lt;P&gt;                      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;             select stlnr stlkn idnrk posnr&lt;/P&gt;&lt;P&gt;                from stpo&lt;/P&gt;&lt;P&gt;                into corresponding fields of table t_stpo&lt;/P&gt;&lt;P&gt;                for all entries in t_eqst&lt;/P&gt;&lt;P&gt;                where stlnr = t_eqst-stlnr and&lt;/P&gt;&lt;P&gt;                      stlty = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this code should give me equipment number as well as functional location, but i am having this message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The column name "EQUNR" has two meanings. ABAP/4 Open SQL statement."	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plese tell me where i am doing mistake, apart from inner join this query will be this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"select equnr from v_equi&lt;/P&gt;&lt;P&gt;          into corresponding fields of table t_equi&lt;/P&gt;&lt;P&gt;          where tplnr in s_tplnr and&lt;/P&gt;&lt;P&gt;                equnr in s_equnr.&lt;/P&gt;&lt;P&gt;       if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;          select equnr stlnr&lt;/P&gt;&lt;P&gt;             from eqst&lt;/P&gt;&lt;P&gt;             into corresponding fields of table t_eqst&lt;/P&gt;&lt;P&gt;             for all entries in t_equi&lt;/P&gt;&lt;P&gt;             where equnr = t_equi-equnr.&lt;/P&gt;&lt;P&gt;          if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;             select stlnr stlkn idnrk posnr&lt;/P&gt;&lt;P&gt;                from stpo&lt;/P&gt;&lt;P&gt;                into corresponding fields of table t_stpo&lt;/P&gt;&lt;P&gt;                for all entries in t_eqst&lt;/P&gt;&lt;P&gt;                where stlnr = t_eqst-stlnr and&lt;/P&gt;&lt;P&gt;                      stlty = 'E'.&lt;/P&gt;&lt;P&gt;but it didnt produce me functional location..&lt;/P&gt;&lt;P&gt;please help me to solve this problem  any code, suggestion , will be greate help of mine&lt;/P&gt;&lt;P&gt;thanking you,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;naim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Apr 2006 06:39:58 GMT</pubDate>
    <dc:creator>naimkhans_babi</dc:creator>
    <dc:date>2006-04-12T06:39:58Z</dc:date>
    <item>
      <title>Inner join problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-problem/m-p/1244690#M143171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear firends&lt;/P&gt;&lt;P&gt;   How are you,,, &lt;/P&gt;&lt;P&gt;            I am facing a problem in inner join...please have a look at the code:&lt;/P&gt;&lt;P&gt;           select a&lt;SUB&gt;equnr a&lt;/SUB&gt;tplnr a~werk&lt;/P&gt;&lt;P&gt;              b&lt;SUB&gt;equnr b&lt;/SUB&gt;werks b~stlnr&lt;/P&gt;&lt;P&gt;              from v_equi as a&lt;/P&gt;&lt;P&gt;              inner join eqst as b&lt;/P&gt;&lt;P&gt;              on a&lt;SUB&gt;equnr = b&lt;/SUB&gt;equnr&lt;/P&gt;&lt;P&gt;              into corresponding fields of table it_eqst&lt;/P&gt;&lt;P&gt;                   where equnr in equp_no.&lt;/P&gt;&lt;P&gt;                      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;             select stlnr stlkn idnrk posnr&lt;/P&gt;&lt;P&gt;                from stpo&lt;/P&gt;&lt;P&gt;                into corresponding fields of table t_stpo&lt;/P&gt;&lt;P&gt;                for all entries in t_eqst&lt;/P&gt;&lt;P&gt;                where stlnr = t_eqst-stlnr and&lt;/P&gt;&lt;P&gt;                      stlty = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this code should give me equipment number as well as functional location, but i am having this message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The column name "EQUNR" has two meanings. ABAP/4 Open SQL statement."	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plese tell me where i am doing mistake, apart from inner join this query will be this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"select equnr from v_equi&lt;/P&gt;&lt;P&gt;          into corresponding fields of table t_equi&lt;/P&gt;&lt;P&gt;          where tplnr in s_tplnr and&lt;/P&gt;&lt;P&gt;                equnr in s_equnr.&lt;/P&gt;&lt;P&gt;       if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;          select equnr stlnr&lt;/P&gt;&lt;P&gt;             from eqst&lt;/P&gt;&lt;P&gt;             into corresponding fields of table t_eqst&lt;/P&gt;&lt;P&gt;             for all entries in t_equi&lt;/P&gt;&lt;P&gt;             where equnr = t_equi-equnr.&lt;/P&gt;&lt;P&gt;          if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;             select stlnr stlkn idnrk posnr&lt;/P&gt;&lt;P&gt;                from stpo&lt;/P&gt;&lt;P&gt;                into corresponding fields of table t_stpo&lt;/P&gt;&lt;P&gt;                for all entries in t_eqst&lt;/P&gt;&lt;P&gt;                where stlnr = t_eqst-stlnr and&lt;/P&gt;&lt;P&gt;                      stlty = 'E'.&lt;/P&gt;&lt;P&gt;but it didnt produce me functional location..&lt;/P&gt;&lt;P&gt;please help me to solve this problem  any code, suggestion , will be greate help of mine&lt;/P&gt;&lt;P&gt;thanking you,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;naim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 06:39:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-problem/m-p/1244690#M143171</guid>
      <dc:creator>naimkhans_babi</dc:creator>
      <dc:date>2006-04-12T06:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-problem/m-p/1244691#M143172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select a&lt;SUB&gt;equnr a&lt;/SUB&gt;tplnr a~werk&lt;/P&gt;&lt;P&gt; b~stlnr&lt;/P&gt;&lt;P&gt;from v_equi as a&lt;/P&gt;&lt;P&gt;inner join eqst as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;equnr = b&lt;/SUB&gt;equnr&lt;/P&gt;&lt;P&gt;into corresponding fields of table it_eqst&lt;/P&gt;&lt;P&gt;where a~equnr in equp_no.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;select stlnr stlkn idnrk posnr&lt;/P&gt;&lt;P&gt;from stpo&lt;/P&gt;&lt;P&gt;into corresponding fields of table t_stpo&lt;/P&gt;&lt;P&gt;for all entries in t_eqst&lt;/P&gt;&lt;P&gt;where stlnr = t_eqst-stlnr and&lt;/P&gt;&lt;P&gt;stlty = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just delete  b&lt;SUB&gt;equnr than  it  is  ok .... because  thee  is already a&lt;/SUB&gt;equnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 06:41:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-problem/m-p/1244691#M143172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T06:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-problem/m-p/1244692#M143173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi naim,&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;equnr a&lt;/SUB&gt;tplnr a~werk&lt;/P&gt;&lt;P&gt;b&lt;SUB&gt;equnr b&lt;/SUB&gt;werks b~stlnr&lt;/P&gt;&lt;P&gt;from v_equi as a&lt;/P&gt;&lt;P&gt;inner join eqst as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;equnr = b&lt;/SUB&gt;equnr&lt;/P&gt;&lt;P&gt;into corresponding fields of table it_eqst&lt;/P&gt;&lt;P&gt;where &amp;lt;b&amp;gt;a-equnr&amp;lt;/b&amp;gt; in equp_no.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;select stlnr stlkn idnrk posnr&lt;/P&gt;&lt;P&gt;from stpo&lt;/P&gt;&lt;P&gt;into corresponding fields of table t_stpo&lt;/P&gt;&lt;P&gt;for all entries in t_eqst&lt;/P&gt;&lt;P&gt;where stlnr = t_eqst-stlnr and&lt;/P&gt;&lt;P&gt;stlty = 'E'.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if useful..&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 06:43:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-problem/m-p/1244692#M143173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T06:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-problem/m-p/1244693#M143174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its a simple mistake&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;equnr a&lt;/SUB&gt;tplnr a~werk&lt;/P&gt;&lt;P&gt;b&lt;SUB&gt;equnr b&lt;/SUB&gt;werks b~stlnr&lt;/P&gt;&lt;P&gt;from v_equi as a&lt;/P&gt;&lt;P&gt;inner join eqst as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;equnr = b&lt;/SUB&gt;equnr&lt;/P&gt;&lt;P&gt;into corresponding fields of table it_eqst&lt;/P&gt;&lt;P&gt;where &amp;lt;b&amp;gt;a~equnr&amp;lt;/b&amp;gt; in equp_no.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;select stlnr stlkn idnrk posnr&lt;/P&gt;&lt;P&gt;from stpo&lt;/P&gt;&lt;P&gt;into corresponding fields of table t_stpo&lt;/P&gt;&lt;P&gt;for all entries in t_eqst&lt;/P&gt;&lt;P&gt;where stlnr = t_eqst-stlnr and&lt;/P&gt;&lt;P&gt;stlty = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every field that exist in both the tables should be accompanied by the table name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please close the thread if this solves the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 06:44:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-problem/m-p/1244693#M143174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T06:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Inner join problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-problem/m-p/1244694#M143175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just make the following correction:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;equnr a&lt;/SUB&gt;tplnr a~werk&lt;/P&gt;&lt;P&gt;b&lt;SUB&gt;equnr b&lt;/SUB&gt;werks b~stlnr&lt;/P&gt;&lt;P&gt;from v_equi as a&lt;/P&gt;&lt;P&gt;inner join eqst as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;equnr = b&lt;/SUB&gt;equnr&lt;/P&gt;&lt;P&gt;into corresponding fields of table it_eqst&lt;/P&gt;&lt;P&gt;**where equnr in equp_no.&lt;/P&gt;&lt;P&gt;where &amp;lt;b&amp;gt;a~equnr&amp;lt;/b&amp;gt; in equp_no.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2006 06:44:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-problem/m-p/1244694#M143175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-12T06:44:11Z</dc:date>
    </item>
  </channel>
</rss>

