<?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: inner join.   error.  too long. unique. unique in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-error-too-long-unique-unique/m-p/3268545#M781243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think if you check the SAP Documentation it tells to use two brackets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[...]&lt;/P&gt;&lt;P&gt;into table it_scust&lt;/P&gt;&lt;P&gt;from ( &lt;STRONG&gt;(&lt;/STRONG&gt; scustom as c &lt;/P&gt;&lt;P&gt;INNER JOIN sbook as b&lt;/P&gt;&lt;P&gt;   on c&lt;SUB&gt;id = b&lt;/SUB&gt;customid &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;INNER JOIN spfli as f &lt;/P&gt;&lt;P&gt;   on f&lt;SUB&gt;connid = b&lt;/SUB&gt;connid &lt;/P&gt;&lt;P&gt;AND f&lt;SUB&gt;carrid  = b&lt;/SUB&gt;carrid ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further suggestions on this matter.&lt;/P&gt;&lt;P&gt;Split up the join into several selects to check target structure / table.&lt;/P&gt;&lt;P&gt;After that build it up step by step and condition by condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jan 2008 01:23:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-21T01:23:01Z</dc:date>
    <item>
      <title>inner join.   error.  too long. unique. unique</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-error-too-long-unique-unique/m-p/3268538#M781236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I am a beginer to ABAP and trying to  do an inner join using 3 tables that are given by SAP &lt;/P&gt;&lt;P&gt;scustom, spfli, and sbook. I want to join these 3 tables and  get &lt;/P&gt;&lt;P&gt;the customer booking info and wants the result of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;customer_no , cust_name, Booking_ID, City_From, City_To, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my query i s below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select c&lt;SUB&gt;id c&lt;/SUB&gt;name b&lt;SUB&gt;bookid b&lt;/SUB&gt;connid b&lt;SUB&gt;fldate f&lt;/SUB&gt;cityfrom f~cityto&lt;/P&gt;&lt;P&gt;into table it_scust&lt;/P&gt;&lt;P&gt;from ((scustom as c inner join sbook as b&lt;/P&gt;&lt;P&gt;on c&lt;SUB&gt;id = b&lt;/SUB&gt;customid)&lt;/P&gt;&lt;P&gt;inner join spfli as f on f&lt;SUB&gt;connid = b&lt;/SUB&gt;connid and f&lt;SUB&gt;carrid = b&lt;/SUB&gt;carrid).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i execute the program i am getting the error  that the 'query is too long. unique. unique. unique.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If  I am joing only two tables it is working fine. Is there something wrong with my query?  Any ideas on this? Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jan 2008 10:12:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-error-too-long-unique-unique/m-p/3268538#M781236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-20T10:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: inner join.   error.  too long. unique. unique</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-error-too-long-unique-unique/m-p/3268539#M781237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check first: it_scust needs to have the fields you select.&lt;/P&gt;&lt;P&gt;In case you do have more fields use command "into corresponding fields of table"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I did not work with those tables (aren't they from standard SAP examples / courses) you should also check the ON referring that values match.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jan 2008 10:26:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-error-too-long-unique-unique/m-p/3268539#M781237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-20T10:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: inner join.   error.  too long. unique. unique</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-error-too-long-unique-unique/m-p/3268540#M781238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have trued 'corresponding filelds of' and the fileds are also matching at the on cluase. Still getting the same error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jan 2008 10:43:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-error-too-long-unique-unique/m-p/3268540#M781238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-20T10:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: inner join.   error.  too long. unique. unique</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-error-too-long-unique-unique/m-p/3268541#M781239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI..&lt;/P&gt;&lt;P&gt;U have done a small mistake...&lt;/P&gt;&lt;P&gt;In the select query u r giving the condiation as   f&lt;SUB&gt;carrid = b&lt;/SUB&gt;carrid.&lt;/P&gt;&lt;P&gt;but you r not fetching that into your internal table.&lt;/P&gt;&lt;P&gt;you need to fetch CARRID also.&lt;/P&gt;&lt;P&gt;then onle you will get it.&lt;/P&gt;&lt;P&gt;try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select c&lt;SUB&gt;id c&lt;/SUB&gt;name b&lt;SUB&gt;bookid  b&lt;/SUB&gt;fldate f&lt;SUB&gt;connid f&lt;/SUB&gt;carrid f&lt;SUB&gt;cityfrom f&lt;/SUB&gt;cityto&lt;/P&gt;&lt;P&gt;into table it_scust&lt;/P&gt;&lt;P&gt;from ((scustom as c inner join sbook as b&lt;/P&gt;&lt;P&gt;on c&lt;SUB&gt;id = b&lt;/SUB&gt;customid)&lt;/P&gt;&lt;P&gt;inner join spfli as f on f&lt;SUB&gt;connid = b&lt;/SUB&gt;connid and f&lt;SUB&gt;carrid = b&lt;/SUB&gt;carrid).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you will get.&lt;/P&gt;&lt;P&gt; Regards &lt;/P&gt;&lt;P&gt;Sandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jan 2008 11:20:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-error-too-long-unique-unique/m-p/3268541#M781239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-20T11:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: inner join.   error.  too long. unique. unique</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-error-too-long-unique-unique/m-p/3268542#M781240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thankyou. Now i have added that field also. still not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jan 2008 11:41:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-error-too-long-unique-unique/m-p/3268542#M781240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-20T11:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: inner join.   error.  too long. unique. unique</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-error-too-long-unique-unique/m-p/3268543#M781241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;could you please try the query by removing a bracket at 'from' in select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i mean use only one bracket.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jan 2008 12:28:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-error-too-long-unique-unique/m-p/3268543#M781241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-20T12:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: inner join.   error.  too long. unique. unique</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-error-too-long-unique-unique/m-p/3268544#M781242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select c~id &lt;/P&gt;&lt;P&gt;         c~name &lt;/P&gt;&lt;P&gt;         b~bookid &lt;/P&gt;&lt;P&gt;         b~connid &lt;/P&gt;&lt;P&gt;         b~fldate&lt;/P&gt;&lt;P&gt;         f~city&lt;/P&gt;&lt;P&gt;         f~cityto&lt;/P&gt;&lt;P&gt;into table it_scust&lt;/P&gt;&lt;P&gt;from (scustom as c &lt;/P&gt;&lt;P&gt;INNER JOIN sbook as b&lt;/P&gt;&lt;P&gt;on c&lt;SUB&gt;id = b&lt;/SUB&gt;customid&lt;/P&gt;&lt;P&gt;INNER JOIN spfli as f &lt;/P&gt;&lt;P&gt;on f&lt;SUB&gt;connid = b&lt;/SUB&gt;connid &lt;/P&gt;&lt;P&gt;AND f&lt;SUB&gt;carrid =b&lt;/SUB&gt;carrid).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful, could u please reward some points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Jan 2008 12:40:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-error-too-long-unique-unique/m-p/3268544#M781242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-20T12:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: inner join.   error.  too long. unique. unique</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-error-too-long-unique-unique/m-p/3268545#M781243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think if you check the SAP Documentation it tells to use two brackets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[...]&lt;/P&gt;&lt;P&gt;into table it_scust&lt;/P&gt;&lt;P&gt;from ( &lt;STRONG&gt;(&lt;/STRONG&gt; scustom as c &lt;/P&gt;&lt;P&gt;INNER JOIN sbook as b&lt;/P&gt;&lt;P&gt;   on c&lt;SUB&gt;id = b&lt;/SUB&gt;customid &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;INNER JOIN spfli as f &lt;/P&gt;&lt;P&gt;   on f&lt;SUB&gt;connid = b&lt;/SUB&gt;connid &lt;/P&gt;&lt;P&gt;AND f&lt;SUB&gt;carrid  = b&lt;/SUB&gt;carrid ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further suggestions on this matter.&lt;/P&gt;&lt;P&gt;Split up the join into several selects to check target structure / table.&lt;/P&gt;&lt;P&gt;After that build it up step by step and condition by condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2008 01:23:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-error-too-long-unique-unique/m-p/3268545#M781243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-21T01:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: inner join.   error.  too long. unique. unique</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-error-too-long-unique-unique/m-p/3268546#M781244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt; c~id&lt;/P&gt;&lt;P&gt; c~name&lt;/P&gt;&lt;P&gt; b~bookid&lt;/P&gt;&lt;P&gt; b~connid&lt;/P&gt;&lt;P&gt; b~fldate&lt;/P&gt;&lt;P&gt; f~cityfrom&lt;/P&gt;&lt;P&gt; f~cityto&lt;/P&gt;&lt;P&gt;into table it_scust&lt;/P&gt;&lt;P&gt;from scustom as c inner join sbook as b&lt;/P&gt;&lt;P&gt;on c&lt;SUB&gt;id = b&lt;/SUB&gt;customid&lt;/P&gt;&lt;P&gt;inner join spfli as f on  b&lt;SUB&gt;connid = f&lt;/SUB&gt;connid and  b&lt;SUB&gt;carrid = f&lt;/SUB&gt;carrid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this it works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2008 08:55:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-error-too-long-unique-unique/m-p/3268546#M781244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-21T08:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: inner join.   error.  too long. unique. unique</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-error-too-long-unique-unique/m-p/3268547#M781245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi neeraja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what ever the code you have written is fine but it is unique/ too long means  the code you have written is not ending perfectly which is not identified by syntax error. your code is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select c&lt;SUB&gt;id c&lt;/SUB&gt;name b&lt;SUB&gt;bookid b&lt;/SUB&gt;connid b&lt;SUB&gt;fldate f&lt;/SUB&gt;cityfrom f~cityto&lt;/P&gt;&lt;P&gt;into table it_scust&lt;/P&gt;&lt;P&gt;from ((scustom as c inner join sbook as b&lt;/P&gt;&lt;P&gt;on c&lt;SUB&gt;id = b&lt;/SUB&gt;customid)&lt;/P&gt;&lt;P&gt;inner join spfli as f on f&lt;SUB&gt;connid = b&lt;/SUB&gt;connid and f&lt;SUB&gt;carrid = b&lt;/SUB&gt;carrid).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iam sending the same code but with little modification just try this u will get the output.&lt;/P&gt;&lt;P&gt;select c&lt;SUB&gt;id c&lt;/SUB&gt;name b&lt;SUB&gt;bookid b&lt;/SUB&gt;connid b&lt;SUB&gt;fldate f&lt;/SUB&gt;cityfrom f~cityto&lt;/P&gt;&lt;P&gt;into table it_scust&lt;/P&gt;&lt;P&gt;from (scustom as c inner join sbook as b&lt;/P&gt;&lt;P&gt;on c&lt;SUB&gt;id = b&lt;/SUB&gt;customid)&lt;/P&gt;&lt;P&gt;inner join spfli as f on f&lt;SUB&gt;connid = b&lt;/SUB&gt;connid and f&lt;SUB&gt;carrid = b&lt;/SUB&gt;carrid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;find the difference what i made.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls reward points if it is helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2008 10:40:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-error-too-long-unique-unique/m-p/3268547#M781245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-21T10:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: inner join.   error.  too long. unique. unique</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-error-too-long-unique-unique/m-p/3268548#M781246</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;once u got the correct solution, could u please &lt;/P&gt;&lt;P&gt;post the right answer here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2008 13:14:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-error-too-long-unique-unique/m-p/3268548#M781246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-21T13:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: inner join.   error.  too long. unique. unique</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-error-too-long-unique-unique/m-p/3268549#M781247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The only problem is spaces between '((' in from clause. after giving spaces like ' (  ( ' this , it worked fine. &lt;/P&gt;&lt;P&gt;Also omiting '((' in from clause entirely,  worked fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select c&lt;SUB&gt;id c&lt;/SUB&gt;name b&lt;SUB&gt;bookid b&lt;/SUB&gt;connid b&lt;SUB&gt;fldate f&lt;/SUB&gt;cityfrom f~cityto&lt;/P&gt;&lt;P&gt;into table it_scust&lt;/P&gt;&lt;P&gt;from ( ( scustom as c inner join sbook as b&lt;/P&gt;&lt;P&gt;on c&lt;SUB&gt;id = b&lt;/SUB&gt;customid)&lt;/P&gt;&lt;P&gt;inner join spfli as f on f&lt;SUB&gt;connid = b&lt;/SUB&gt;connid and f&lt;SUB&gt;carrid = b&lt;/SUB&gt;carrid).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2008 18:22:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inner-join-error-too-long-unique-unique/m-p/3268549#M781247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-21T18:22:18Z</dc:date>
    </item>
  </channel>
</rss>

