<?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: Problem in SAP with Where SQL Condition - script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-in-SAP-with-Where-SQL-Condition-script/m-p/538818#M694631</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect that the Date function is not supported in SAP OpenSQL. Is xDate a QlikView variable? If yes, I suggest that you change format of xDate into the format the used in SAP. This can be done using QlikView function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jul 2013 02:53:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-04T02:53:08Z</dc:date>
    <item>
      <title>Problem in SAP with Where SQL Condition - script</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-SAP-with-Where-SQL-Condition-script/m-p/538817#M694630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the field date call &lt;STRONG&gt;AUDAT&lt;/STRONG&gt; in &lt;STRONG&gt;SAP&lt;/STRONG&gt;...here like: &lt;STRONG&gt;VBAK~AUDAT&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I need to put a &lt;STRONG&gt;WHERE&lt;/STRONG&gt; condition in this part of the script in &lt;STRONG&gt;QV&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;SQL Select&lt;/STRONG&gt;&lt;/SPAN&gt; VBAP~VBELN VBAP~POSNR VBAP~KWMENG VBAP~VRKME VBAP~PSTYV&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VBAK~SPART VBAK~KUNNR VBAK~VKGRP VBAP~MATNR VBKD~BZIRK KNA1~BRSCH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VBAK~KNUMV VBUP~LFGSA &lt;STRONG&gt;VBAK~AUDAT&lt;/STRONG&gt; VBAK~ERZET VBAK~CMFRE VBAP~ABGRU VBAK~AUART&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VBAP~WAERK VBAP~NETWR VBAP~STCUR VBAP~UMVKN VBAP~LGORT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VBAK~AUGRU VBKD~ZLSCH VBAK~ERNAM VBKD~PLTYP&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt; from&lt;/STRONG&gt;&lt;/SPAN&gt; VBAP&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;JOIN&lt;/STRONG&gt;&lt;/SPAN&gt; VBAK &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;ON &lt;/STRONG&gt;&lt;/SPAN&gt;VBAK~VBELN = VBAP~VBELN&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;JOIN &lt;/STRONG&gt;&lt;/SPAN&gt;VBKD &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;ON&lt;/STRONG&gt;&lt;/SPAN&gt; VBAK~VBELN = VBKD~VBELN&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;JOIN&lt;/STRONG&gt;&lt;/SPAN&gt; KNA1 &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;ON&lt;/STRONG&gt;&lt;/SPAN&gt; KNA1~KUNNR = VBAK~KUNNR&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;JOIN&lt;/STRONG&gt;&lt;/SPAN&gt; VBUP &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;ON &lt;/STRONG&gt;&lt;/SPAN&gt;VBAP~VBELN = VBUP~VBELN &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;AND&lt;/STRONG&gt;&lt;/SPAN&gt; VBAP~POSNR = VBUP~POSNR&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;WHERE&lt;/STRONG&gt;&lt;/SPAN&gt; VBKD~POSNR = '000000';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: Arial; background-color: #ffffff;"&gt;WHERE DATE([AUDAT]) &amp;gt;= x&lt;/SPAN&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;&lt;STRONG&gt;DATE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;&lt;STRONG&gt;or&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: Arial; background-color: #ffffff;"&gt;WHERE DATE([&lt;STRONG&gt;VBAK~AUDAT&lt;/STRONG&gt;]) &amp;gt;= x&lt;/SPAN&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;&lt;STRONG&gt;DATE&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;&lt;STRONG&gt;but always get an error:&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;OpenStream failed. Key = SQL_ERROR ( Number:000) for statement:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;SQL Select&lt;/STRONG&gt;&lt;/SPAN&gt; VBAP~VBELN VBAP~POSNR VBAP~KWMENG.....etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 23:43:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-SAP-with-Where-SQL-Condition-script/m-p/538817#M694630</guid>
      <dc:creator />
      <dc:date>2013-07-03T23:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in SAP with Where SQL Condition - script</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-SAP-with-Where-SQL-Condition-script/m-p/538818#M694631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect that the Date function is not supported in SAP OpenSQL. Is xDate a QlikView variable? If yes, I suggest that you change format of xDate into the format the used in SAP. This can be done using QlikView function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 02:53:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-SAP-with-Where-SQL-Condition-script/m-p/538818#M694631</guid>
      <dc:creator />
      <dc:date>2013-07-04T02:53:08Z</dc:date>
    </item>
  </channel>
</rss>

