<?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: SAP SQL connector: Left join issue in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/SAP-SQL-connector-Left-join-issue/m-p/1679330#M8037</link>
    <description>&lt;P&gt;Just a preliminary observation.&lt;/P&gt;&lt;P&gt;Change ~ to Dot(.) and try&lt;/P&gt;</description>
    <pubDate>Wed, 26 Feb 2020 08:53:51 GMT</pubDate>
    <dc:creator>kaushiknsolanki</dc:creator>
    <dc:date>2020-02-26T08:53:51Z</dc:date>
    <item>
      <title>SAP SQL connector: Left join issue</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/SAP-SQL-connector-Left-join-issue/m-p/1679326#M8036</link>
      <description>&lt;P&gt;I'm having a issue with SAP connector when left joining multiple tables. Here is a simple example that causes the error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TEST:
SQL
SELECT
	  GLPCA~GL_SIRID,
      PRPS~PSPNR,
      EQUI~EQNUM
FROM GLPCA
left join PRPS
on GLPCA~PS_PSP_PNR = PRPS~PSPNR 
left join EQUI
on PRPS~EQUNR = EQUI~EQUNR;&lt;/LI-CODE&gt;&lt;P&gt;This is the error I'm receiving:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 411px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29108iE6B26CEDEF7AC07A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;One strange thing is that if I change any of the "left join" to a "join" the query works.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Looking in the log:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;10:18:30,925 [1] - SQLQueryParserService.Parse() - About to parse query:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SELECT&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;GLPCA~GL_SIRID,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;PRPS~PSPNR,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;EQUI~EQNUM&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;FROM GLPCA&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;left join PRPS&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;on GLPCA~PS_PSP_PNR = PRPS~PSPNR &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;left join EQUI&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;on PRPS~EQUNR = EQUI~EQUNR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So far everything looks OK, but later in the log:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;10:18:31,375 [1] - SQL Line(s): &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;10:18:31,375 [1] - SELECT GLPCA~GL_SIRID PRPS~PSPNR EQUI~EQNUM FROM GLPCA LEFT&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;10:18:31,375 [1] - JOIN PRPS ON GLPCA~PS_PSP_PNR = PRPS~PSPNR LEFT JOIN EQUI&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;10:18:31,375 [1] - ON PRPS~EQUNR = EQUI~EQUNR&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;it looks like all commas have been removed. Which also the error points to "List must be separated with commas".&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If that is the case, I don't know why they are removed since SAP recommends using commas "In Open SQL, all operands in lists can now be separated by commas and this is also the recommended way of separating them from Release 7.40, SP05"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is the SAP version being used:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.PNG" style="width: 763px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/29109i5884A53E18461713/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Capture1.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any ideas ? Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 21:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/SAP-SQL-connector-Left-join-issue/m-p/1679326#M8036</guid>
      <dc:creator>BumbaJuck</dc:creator>
      <dc:date>2021-12-13T21:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SQL connector: Left join issue</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/SAP-SQL-connector-Left-join-issue/m-p/1679330#M8037</link>
      <description>&lt;P&gt;Just a preliminary observation.&lt;/P&gt;&lt;P&gt;Change ~ to Dot(.) and try&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 08:53:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/SAP-SQL-connector-Left-join-issue/m-p/1679330#M8037</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2020-02-26T08:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SQL connector: Left join issue</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/SAP-SQL-connector-Left-join-issue/m-p/1679361#M8038</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The fields should be separated by space an not by commas. The error message you get is bad.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":frowning_face:"&gt;☹️&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The reason for the error is that SAP changed the syntax check to&amp;nbsp;Strict Mode in Release 7.40, SP08. It is not allowed to compare fields from the left side only:&lt;BR /&gt;on PRPS~EQUNR = EQUI~EQUNR&lt;/P&gt;
&lt;P&gt;SAP writes:&lt;/P&gt;
&lt;P&gt;The syntax check is performed in strict mode for SP08 in the following cases:&lt;/P&gt;
&lt;P&gt;•Use of the additions LIKE, IN, and NOT plus the operators OR or NOT in an ON condition.&lt;BR /&gt;•Outer join without a comparison between columns on the left and right sides.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Håkan&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 09:49:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/SAP-SQL-connector-Left-join-issue/m-p/1679361#M8038</guid>
      <dc:creator>Hakan_Ronningberg</dc:creator>
      <dc:date>2020-02-26T09:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SQL connector: Left join issue</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/SAP-SQL-connector-Left-join-issue/m-p/1679461#M8039</link>
      <description>&lt;P&gt;Hello Håkan,&lt;/P&gt;&lt;P&gt;In SAP ( transaction DB02&amp;nbsp; / Diagnostics / &lt;STRONG&gt;SQL Editor&lt;/STRONG&gt; ) if I use the "exact same Query" (if I'm correct &lt;STRONG&gt;SQL editor&lt;/STRONG&gt; uses Native SQL) it works without any problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECT
      GLPCA.GL_SIRID,
      PRPS.PSPNR,
      EQUI.EQUNR
FROM GLPCA
left join PRPS
on GLPCA.PS_PSP_PNR = PRPS.PSPNR 
left join EQUI
on PRPS.EQUNR = EQUI.EQUNR&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to switch to Native SQL with the connector ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to manipulate the Open SQL query to somehow achieve the same result as with the Native Query ?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 13:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/SAP-SQL-connector-Left-join-issue/m-p/1679461#M8039</guid>
      <dc:creator>BumbaJuck</dc:creator>
      <dc:date>2020-02-26T13:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SQL connector: Left join issue</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/SAP-SQL-connector-Left-join-issue/m-p/1679497#M8040</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;DIV class="all"&gt;
&lt;P&gt;Open SQL defines the subset of ABAP statements that enable direct access to data from the central database of the current AS ABAP. The SQL statement has to pass the SAP syntax check, otherwise the ABAP statements used to fetch the data will fail. Unfortunately the bad error message in this case is generated by the SAP syntax check, so until SAP makes a correction in their syntax check, we have to live with it.&lt;/P&gt;
&lt;P&gt;It is not possible to change the SQL connector to use Native SQL instead of Open SQL.&lt;/P&gt;
&lt;P&gt;Maybe you can split your SQL statement into several statements and merge the result in the script? However I don't have any example of how to do that.&lt;/P&gt;
&lt;P&gt;I hope you will find a solution!&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Håkan&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 26 Feb 2020 14:19:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/SAP-SQL-connector-Left-join-issue/m-p/1679497#M8040</guid>
      <dc:creator>Hakan_Ronningberg</dc:creator>
      <dc:date>2020-02-26T14:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SQL connector: Left join issue</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/SAP-SQL-connector-Left-join-issue/m-p/1679712#M8041</link>
      <description>&lt;P&gt;Thanks for the support Håkan&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 06:38:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/SAP-SQL-connector-Left-join-issue/m-p/1679712#M8041</guid>
      <dc:creator>BumbaJuck</dc:creator>
      <dc:date>2020-02-27T06:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAP SQL connector: Left join issue</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/SAP-SQL-connector-Left-join-issue/m-p/2025281#M11878</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;Does anybody have a solution on this topic yet?&lt;BR /&gt;A workaround would be to load the second LEFT JOIN separatly and then LEFT JOIN with QLIK-Syntax.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 06:02:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/SAP-SQL-connector-Left-join-issue/m-p/2025281#M11878</guid>
      <dc:creator>stelei</dc:creator>
      <dc:date>2023-01-13T06:02:19Z</dc:date>
    </item>
  </channel>
</rss>

