<?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 How to write an OpenSQL statement in QlikView? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-write-an-OpenSQL-statement-in-QlikView/m-p/90067#M1230238</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/17633" target="_blank"&gt;mbaeyens&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/57428" target="_blank"&gt;kush141087&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/56619" target="_blank"&gt;its.anandrjs&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/69783" target="_blank"&gt;antoniotiman&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/218859" target="_blank"&gt;loveisfail&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/245007" target="_blank"&gt;serj_shu&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please help me create a single query using sub select etc to fetch data from SAP tables as per below logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step&amp;nbsp; 1&lt;/STRONG&gt; - Extract EBELN (Purchase Orders) and LIFNR (Vendor Number) from&lt;SPAN style="font-size: 13.3333px;"&gt; EKKO &lt;SPAN style="font-size: 13.3333px;"&gt;Table&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Where&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;'BSART'=&lt;/SPAN&gt; '&lt;SPAN style="font-size: 13.3333px;"&gt;ZILP' and &lt;/SPAN&gt;KDATB &amp;lt;=Today and KDATE &amp;gt;=Today&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 2&lt;/STRONG&gt; - &lt;SPAN style="font-size: 13.3333px;"&gt;Pass PO (EBELN) from step no. 1 in table EKPO and fetch &lt;SPAN style="font-size: 13.3333px;"&gt;PO (EBELN), &lt;SPAN style="font-size: 13.3333px;"&gt; MATNR (&lt;SPAN style="font-size: 13.3333px;"&gt;Material Number&lt;/SPAN&gt;), &lt;SPAN style="font-size: 13.3333px;"&gt;item number (EBELP) &lt;/SPAN&gt; and MEINS&lt;/SPAN&gt; (&lt;SPAN style="font-size: 13.3333px;"&gt;Order Unit&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;where &lt;/SPAN&gt;LOKEZ &amp;gt;&amp;lt; 'L' or 'S'&amp;nbsp; and&amp;nbsp; ELIKZ &amp;gt;&amp;lt; 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 3&lt;/STRONG&gt; - Use Table MAKT and p&lt;SPAN style="font-size: 13.3333px;"&gt;ass the Material Number (MATNR) from step&amp;nbsp; 2, to fetch MAKTX (&lt;SPAN style="font-size: 13.3333px;"&gt;Material description&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;where SPRAS = "EN"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 4 &lt;/STRONG&gt; - Use Table EKET and p&lt;SPAN style="font-size: 13.3333px;"&gt;ass PO (EBELN) and&amp;nbsp; item number (EBELP) from step 2 &lt;/SPAN&gt;to extract Delivery date (EINDT) and Scheduled Quantity (MENGE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why I want a single query - because if run separately there is huge data in these tables which is not required in the report and reload time is approx 1 hour if all 4 run in parallel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have seen sub select but not able to make it work in my case for a single query. Would request if you can create an optimised query for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2026 21:26:37 GMT</pubDate>
    <dc:creator>nickjose7</dc:creator>
    <dc:date>2026-01-26T21:26:37Z</dc:date>
    <item>
      <title>How to write an OpenSQL statement in QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-an-OpenSQL-statement-in-QlikView/m-p/90067#M1230238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/17633" target="_blank"&gt;mbaeyens&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/57428" target="_blank"&gt;kush141087&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/56619" target="_blank"&gt;its.anandrjs&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/69783" target="_blank"&gt;antoniotiman&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/218859" target="_blank"&gt;loveisfail&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/245007" target="_blank"&gt;serj_shu&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please help me create a single query using sub select etc to fetch data from SAP tables as per below logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step&amp;nbsp; 1&lt;/STRONG&gt; - Extract EBELN (Purchase Orders) and LIFNR (Vendor Number) from&lt;SPAN style="font-size: 13.3333px;"&gt; EKKO &lt;SPAN style="font-size: 13.3333px;"&gt;Table&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Where&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;'BSART'=&lt;/SPAN&gt; '&lt;SPAN style="font-size: 13.3333px;"&gt;ZILP' and &lt;/SPAN&gt;KDATB &amp;lt;=Today and KDATE &amp;gt;=Today&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 2&lt;/STRONG&gt; - &lt;SPAN style="font-size: 13.3333px;"&gt;Pass PO (EBELN) from step no. 1 in table EKPO and fetch &lt;SPAN style="font-size: 13.3333px;"&gt;PO (EBELN), &lt;SPAN style="font-size: 13.3333px;"&gt; MATNR (&lt;SPAN style="font-size: 13.3333px;"&gt;Material Number&lt;/SPAN&gt;), &lt;SPAN style="font-size: 13.3333px;"&gt;item number (EBELP) &lt;/SPAN&gt; and MEINS&lt;/SPAN&gt; (&lt;SPAN style="font-size: 13.3333px;"&gt;Order Unit&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;where &lt;/SPAN&gt;LOKEZ &amp;gt;&amp;lt; 'L' or 'S'&amp;nbsp; and&amp;nbsp; ELIKZ &amp;gt;&amp;lt; 'X'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 3&lt;/STRONG&gt; - Use Table MAKT and p&lt;SPAN style="font-size: 13.3333px;"&gt;ass the Material Number (MATNR) from step&amp;nbsp; 2, to fetch MAKTX (&lt;SPAN style="font-size: 13.3333px;"&gt;Material description&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;where SPRAS = "EN"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Step 4 &lt;/STRONG&gt; - Use Table EKET and p&lt;SPAN style="font-size: 13.3333px;"&gt;ass PO (EBELN) and&amp;nbsp; item number (EBELP) from step 2 &lt;/SPAN&gt;to extract Delivery date (EINDT) and Scheduled Quantity (MENGE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why I want a single query - because if run separately there is huge data in these tables which is not required in the report and reload time is approx 1 hour if all 4 run in parallel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have seen sub select but not able to make it work in my case for a single query. Would request if you can create an optimised query for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nick&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/How-to-write-an-OpenSQL-statement-in-QlikView/m-p/90067#M1230238</guid>
      <dc:creator>nickjose7</dc:creator>
      <dc:date>2026-01-26T21:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to create an optimised SAP Query?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-write-an-OpenSQL-statement-in-QlikView/m-p/90068#M1230240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt;‌ &lt;A href="https://community.qlik.com/qlik-users/41639"&gt;swr&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Henric/Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I couldn't get any response on my query, would you mind sharing a solution for my problem listed above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jul 2018 06:54:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-write-an-OpenSQL-statement-in-QlikView/m-p/90068#M1230240</guid>
      <dc:creator>nickjose7</dc:creator>
      <dc:date>2018-07-21T06:54:22Z</dc:date>
    </item>
  </channel>
</rss>

