<?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 Connector (6.x.x = latest) SubSelect does not support IN condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SAP-Connector-6-x-x-latest-SubSelect-does-not-support-IN/m-p/1286550#M1230764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Since IN is not supported in the sub select you can write like this instead:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SUBSELECT KNUMV KPOSN KSCHL KAWRT KBETR KPEIN WAERS KWERT&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; FROM KONV WHERE&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; KNUMV IN (SELECT KNUMV FROM VBRK&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; WHERE FKDAT &lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;EQ&lt;/STRONG&gt; '20170105'&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; AND VTWEG &lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;NE&lt;/STRONG&gt; '10'&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #0000ff;"&gt;&amp;nbsp; AND ( BUKRS EQ&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #0000ff;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit;"&gt;'ZADV' OR BUKRS EQ 'ZADQ' ) )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jan 2017 08:03:45 GMT</pubDate>
    <dc:creator>Hakan_Ronningberg</dc:creator>
    <dc:date>2017-01-10T08:03:45Z</dc:date>
    <item>
      <title>SAP Connector (6.x.x = latest) SubSelect does not support IN condition</title>
      <link>https://community.qlik.com/t5/QlikView/SAP-Connector-6-x-x-latest-SubSelect-does-not-support-IN/m-p/1286548#M1230761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus, there is an esoteric phenomena in SAP Connector. (latest version, 6.x.x).&lt;/P&gt;&lt;P&gt;Whenever we use condition 'IN', OpenSQL query fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It it observed that:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;SUBSELECT query does not support any WHERE condition except one condition of IN, &lt;/LI&gt;&lt;LI&gt;SELECT in WHERE statement does not support IN (). It always must be EQ, NE, GT etc.&amp;nbsp; &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;*This forces developer to code loop(s) in the conditions. But perhaps most developers would use SUBSELECT to BSEG and KONV only. Would you advise how you have workaround on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[This statement passes Netweaver, but &lt;SPAN style="font-size: 13.3333px;"&gt;KSCHL &lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;EQ&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; 'ZAAD' is ignored]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SQL SUBSELECT KNUMV KPOSN KSCHL KAWRT KBETR KPEIN WAERS KWERT&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM KONV WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp; KNUMV IN (SELECT KNUMV FROM VBRK&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE FKDAT &lt;STRONG&gt;EQ&lt;/STRONG&gt; '20170105'&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND VTWEG &lt;STRONG&gt;NE&lt;/STRONG&gt; '10'&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND BUKRS&lt;STRONG&gt; EQ&lt;/STRONG&gt; 'ZADV'&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND KSCHL &lt;STRONG&gt;EQ&lt;/STRONG&gt; 'ZAAD'&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Does not work: note 2 conditions exists in IN]&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SQL SUBSELECT KNUMV KPOSN KSCHL KAWRT KBETR KPEIN WAERS KWERT&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; FROM KONV WHERE&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; KNUMV IN (SELECT KNUMV FROM VBRK&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; WHERE FKDAT &lt;STRONG&gt;EQ&lt;/STRONG&gt; '20170105'&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; AND VTWEG &lt;STRONG&gt;NE&lt;/STRONG&gt; '10'&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp; AND BUKRS&lt;STRONG&gt; IN&lt;/STRONG&gt; ('ZADV','ZADQ')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; )&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp; AND KSCHL &lt;STRONG&gt;IN&lt;/STRONG&gt; ('ZAAD','ZAAC')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;This query works: the single statement query within SubSelect&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SELECT KNUMV FROM VBRK&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; WHERE FKDAT &lt;STRONG&gt;EQ&lt;/STRONG&gt; '20170105'&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; AND VTWEG &lt;STRONG&gt;NE&lt;/STRONG&gt; '10'&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp; AND BUKRS&lt;STRONG&gt; IN&lt;/STRONG&gt; ('ZADV','ZADQ')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;So it means we would need to use SUBSELECT always in a loop, where we execute it one by one: e.g. for entity ZADV, ZADQ, then for cost type ZAAD then ZAAC...... etc.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;That is fine as well to control segmented dataset bits by bits, but I wonder if it is ABAP specification or actually bug?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I should appreciate for your feedback in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 21:26:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SAP-Connector-6-x-x-latest-SubSelect-does-not-support-IN/m-p/1286548#M1230761</guid>
      <dc:creator>atsushi_saijo</dc:creator>
      <dc:date>2026-01-26T21:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Connector (6.x.x = latest) SubSelect does not support IN condition</title>
      <link>https://community.qlik.com/t5/QlikView/SAP-Connector-6-x-x-latest-SubSelect-does-not-support-IN/m-p/1286549#M1230762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Atsushi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The short answer is that is is working as designed. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The SUBSELECT functionality was developed by Qlik as an addition to the standard SAP OPEN SQL. It makes it possible to do sub selects (like JOINS) of cluster tables, which is not possible in the standard SAP OPEN SQL. It does not support everything that is available in the &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SAP OPEN SQL&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;. So for the moment it is not possible to use 'IN' conditions is the SELECT of the sub table. Neither it is possible to use AND in the the SELECT of the main table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a link to the online help where the SUBSELECT is described:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/connectors/Subsystems/SAP_Connectors_Help/Content/6.3/QV-connection/SAP-SQL-connection-Subselect.htm" title="http://help.qlik.com/en-US/connectors/Subsystems/SAP_Connectors_Help/Content/6.3/QV-connection/SAP-SQL-connection-Subselect.htm"&gt;SQL SUBSELECT syntax ‒ Qlik Connectors&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Hakan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 13:40:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SAP-Connector-6-x-x-latest-SubSelect-does-not-support-IN/m-p/1286549#M1230762</guid>
      <dc:creator>Hakan_Ronningberg</dc:creator>
      <dc:date>2017-01-09T13:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Connector (6.x.x = latest) SubSelect does not support IN condition</title>
      <link>https://community.qlik.com/t5/QlikView/SAP-Connector-6-x-x-latest-SubSelect-does-not-support-IN/m-p/1286550#M1230764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Since IN is not supported in the sub select you can write like this instead:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SUBSELECT KNUMV KPOSN KSCHL KAWRT KBETR KPEIN WAERS KWERT&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; FROM KONV WHERE&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; KNUMV IN (SELECT KNUMV FROM VBRK&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; WHERE FKDAT &lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;EQ&lt;/STRONG&gt; '20170105'&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; AND VTWEG &lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;NE&lt;/STRONG&gt; '10'&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #0000ff;"&gt;&amp;nbsp; AND ( BUKRS EQ&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 13.3333px; font-family: inherit; color: #0000ff;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit;"&gt;'ZADV' OR BUKRS EQ 'ZADQ' ) )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 08:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SAP-Connector-6-x-x-latest-SubSelect-does-not-support-IN/m-p/1286550#M1230764</guid>
      <dc:creator>Hakan_Ronningberg</dc:creator>
      <dc:date>2017-01-10T08:03:45Z</dc:date>
    </item>
  </channel>
</rss>

