<?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: Join statment is not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-statment-is-not-working/m-p/4193031#M1002261</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;there is small mistake in your query, just try this one.&lt;/P&gt;&lt;P&gt;SELECT faglflexa&lt;SUB&gt;poper faglflexa&lt;/SUB&gt;ryear faglflexa&lt;SUB&gt;prctr cepct&lt;/SUB&gt;ktext " FROM faglflexa&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE gi_prctr&lt;/P&gt;&lt;P&gt;FROM cepct JOIN faglflexa ON cepct&lt;SUB&gt;prctr = faglflexa&lt;/SUB&gt;prctr&lt;/P&gt;&lt;P&gt;WHERE poper IN s_period&lt;/P&gt;&lt;P&gt;AND ryear EQ p_fyear.&lt;/P&gt;&lt;P&gt;AND faglflexa~prctr in s_prctr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jul 2008 02:22:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-23T02:22:42Z</dc:date>
    <item>
      <title>Join statment is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-statment-is-not-working/m-p/4193028#M1002258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to write a below code where i will be using JOIN statment to select data from 2 table faglflexas and cepct.These two tables have only one field in common(prctr).I would also be getting the value of prctr from the user on selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the code syntax is not allowing me to prctr in both the places.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT faglflexa&lt;SUB&gt;poper faglflexa&lt;/SUB&gt;ryear faglflexa&lt;SUB&gt;prctr cepct&lt;/SUB&gt;ktext " FROM faglflexa&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE gi_prctr&lt;/P&gt;&lt;P&gt;FROM cepct JOIN faglflexa ON cepct&lt;SUB&gt;prctr = faglflexa&lt;/SUB&gt;prctr&lt;/P&gt;&lt;P&gt;WHERE poper IN s_period&lt;/P&gt;&lt;P&gt;      AND ryear EQ p_fyear.&lt;/P&gt;&lt;P&gt;      AND prctr in s_prctr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting error in last line of AND prctr in s_prctr. asking that I prctr is defined in two places in the select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;points will be rewarded definately.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 02:12:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-statment-is-not-working/m-p/4193028#M1002258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T02:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Join statment is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-statment-is-not-working/m-p/4193029#M1002259</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;The code written by you is giving a syntax error as PRCTR field is present in both the tables and you are using a join but in the where clause you are not specifying the field with respect to a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try the below syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT faglflexa&lt;SUB&gt;poper faglflexa&lt;/SUB&gt;ryear faglflexa&lt;SUB&gt;prctr cepct&lt;/SUB&gt;ktext " FROM faglflexa&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE gi_prctr&lt;/P&gt;&lt;P&gt;FROM cepct JOIN faglflexa ON cepct&lt;SUB&gt;prctr = faglflexa&lt;/SUB&gt;prctr&lt;/P&gt;&lt;P&gt;WHERE poper IN s_period&lt;/P&gt;&lt;P&gt;AND ryear EQ p_fyear.&lt;/P&gt;&lt;P&gt;AND cepct~prctr in s_prctr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 02:17:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-statment-is-not-working/m-p/4193029#M1002259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T02:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Join statment is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-statment-is-not-working/m-p/4193030#M1002260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT faglflexa~poper faglflexa~ryear faglflexa~prctr cepct~ktext " FROM faglflexa
INTO CORRESPONDING FIELDS OF TABLE gi_prctr
FROM cepct INNER JOIN faglflexa ON cepct~prctr = faglflexa~prctr
WHERE faglflexa~poper IN s_period
AND faglflexa~ryear EQ p_fyear.
AND faglflexa~prctr in s_prctr.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 02:19:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-statment-is-not-working/m-p/4193030#M1002260</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-07-23T02:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Join statment is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-statment-is-not-working/m-p/4193031#M1002261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;there is small mistake in your query, just try this one.&lt;/P&gt;&lt;P&gt;SELECT faglflexa&lt;SUB&gt;poper faglflexa&lt;/SUB&gt;ryear faglflexa&lt;SUB&gt;prctr cepct&lt;/SUB&gt;ktext " FROM faglflexa&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE gi_prctr&lt;/P&gt;&lt;P&gt;FROM cepct JOIN faglflexa ON cepct&lt;SUB&gt;prctr = faglflexa&lt;/SUB&gt;prctr&lt;/P&gt;&lt;P&gt;WHERE poper IN s_period&lt;/P&gt;&lt;P&gt;AND ryear EQ p_fyear.&lt;/P&gt;&lt;P&gt;AND faglflexa~prctr in s_prctr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 02:22:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-statment-is-not-working/m-p/4193031#M1002261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T02:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Join statment is not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-statment-is-not-working/m-p/4193032#M1002262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sananth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It solved the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 02:23:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-statment-is-not-working/m-p/4193032#M1002262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T02:23:38Z</dc:date>
    </item>
  </channel>
</rss>

