<?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 filtering data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SAP-Connector-filtering-data/m-p/1352952#M1230641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about trying subselect? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/connectors/Subsystems/SAP_SQL_Connector_help/Content/6.2/QV-connection/SAP-SQL-connection-Subselect.htm" style="font-size: 10pt;" title="https://help.qlik.com/en-US/connectors/Subsystems/SAP_SQL_Connector_help/Content/6.2/QV-connection/SAP-SQL-connection-Subselect.htm"&gt;https://help.qlik.com/en-US/connectors/Subsystems/SAP_SQL_Connector_help/Content/6.2/QV-connection/SAP-SQL-connection-Su…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should be something like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; background-color: #f4f4f4;"&gt;SQL SUBSELECT PRCTR FROM GLPCA WHERE PRCTR IN ( SELECT PRCTR FROM &amp;lt;&amp;lt;tableName&amp;gt;&amp;gt; WHERE PRCTR BETWEEN '0000100000' AND '0000300000' );&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Apr 2017 23:59:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-04-06T23:59:23Z</dc:date>
    <item>
      <title>SAP Connector filtering data</title>
      <link>https://community.qlik.com/t5/QlikView/SAP-Connector-filtering-data/m-p/1352951#M1230638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Hi.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;We are using the SAP Connector to obtain data from the table GLPCA with a select. But we need to filter the select by PRCTR,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background-color: #fffeef; font-family: arial, helvetica, sans-serif;"&gt; otherwise it takes far too long. The problem is, it would be a WHERE PRCTR IN over 5000 values. We cant filter by a list of 5000 values, right?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;SPAN style="font-size: 10pt; background-color: #fffeef; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;SPAN style="font-size: 10pt; background-color: #fffeef; font-family: arial, helvetica, sans-serif;"&gt;We solve this later by using the extractor to obtain the hierarchy "hier_0profit_ctr_0106_hier". Here, we can use the field "nodename3" to filter the exact same way as above, by only comparing it to 2 values. This way the data is correct, but by doing it in the QV tables, we are still loading so many records we dont need from SAP and it takes too long.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;SPAN style="font-size: 10pt; background-color: #fffeef; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;SPAN style="font-size: 10pt; background-color: #fffeef; font-family: arial, helvetica, sans-serif;"&gt;Is there any way to include the hierarchy in the select so that we can use its fields for the where clause? Or any other solution you may see?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;SPAN style="font-size: 10pt; background-color: #fffeef; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;SPAN style="font-size: 10pt; background-color: #fffeef; font-family: arial, helvetica, sans-serif;"&gt;Thanks in advance.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;SPAN style="font-size: 10pt; background-color: #fffeef; font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&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-filtering-data/m-p/1352951#M1230638</guid>
      <dc:creator />
      <dc:date>2026-01-26T21:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Connector filtering data</title>
      <link>https://community.qlik.com/t5/QlikView/SAP-Connector-filtering-data/m-p/1352952#M1230641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about trying subselect? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/connectors/Subsystems/SAP_SQL_Connector_help/Content/6.2/QV-connection/SAP-SQL-connection-Subselect.htm" style="font-size: 10pt;" title="https://help.qlik.com/en-US/connectors/Subsystems/SAP_SQL_Connector_help/Content/6.2/QV-connection/SAP-SQL-connection-Subselect.htm"&gt;https://help.qlik.com/en-US/connectors/Subsystems/SAP_SQL_Connector_help/Content/6.2/QV-connection/SAP-SQL-connection-Su…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should be something like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; background-color: #f4f4f4;"&gt;SQL SUBSELECT PRCTR FROM GLPCA WHERE PRCTR IN ( SELECT PRCTR FROM &amp;lt;&amp;lt;tableName&amp;gt;&amp;gt; WHERE PRCTR BETWEEN '0000100000' AND '0000300000' );&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 23:59:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SAP-Connector-filtering-data/m-p/1352952#M1230641</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-06T23:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Connector filtering data</title>
      <link>https://community.qlik.com/t5/QlikView/SAP-Connector-filtering-data/m-p/1352953#M1230643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, that wont work. What you call &amp;lt;&amp;lt;tablename&amp;gt;&amp;gt; is a hierarchy obtained from the extractor, we don't have it in a SAP table. Also, the PRTCR are not secuential. But if we would have that hierarchy in a table we could do &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; background-color: #f4f4f4;"&gt;SQL SUBSELECT PRCTR FROM GLPCA&lt;/SPAN&gt; &lt;SPAN style="color: #0f0f0f; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; background-color: #f4f4f4;"&gt;WHERE PRCTR IN ( SELECT PRCTR FROM &amp;lt;&amp;lt;tableName&amp;gt;&amp;gt; WHERE nodename3 = 'value1' or nodename3='value2';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That second table is the Organiational Structure, obtained with the SAP extractor. We have it on a QV table. But I don't think we can do a "where in" using a QV table when the values are over 5000.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 06:36:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SAP-Connector-filtering-data/m-p/1352953#M1230643</guid>
      <dc:creator />
      <dc:date>2017-04-07T06:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Connector filtering data</title>
      <link>https://community.qlik.com/t5/QlikView/SAP-Connector-filtering-data/m-p/1352954#M1230645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Last sentence: indeed this may seem like a conflict of "&lt;EM&gt;geographically separated tables&lt;/EM&gt;", but I think it can be done using $-sign substitution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should check it out, albeit with a limited set of values, say the first 1000 profit center codes. You can do that with a FOR loop that puts the first 1000 values in a comma-separated list and stores the list in a variable. Let's call the variable vProfitCenters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then simply use an OpenSQL statement like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;SELECT GL_SIRID RCLNT FROM GLPCA WHERE PRCTR IN ($(&lt;EM&gt;vProfitCenters&lt;/EM&gt;));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and give it a go. Problems you may face:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Length limit of a SQL statement (8k for Oracle?)&lt;/LI&gt;&lt;LI&gt;Awful performance when using long lists in WHERE clauses due to individual comparisons&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another trick to attempt may be the FOR ALL ENTRIES IN clause, but I'm not sure whether the Connector will accept that variant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 09:20:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SAP-Connector-filtering-data/m-p/1352954#M1230645</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-04-07T09:20:30Z</dc:date>
    </item>
  </channel>
</rss>

