<?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: SQL Query to extract data from SAP not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-Query-to-extract-data-from-SAP-not-working/m-p/736173#M1079799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First try to execute this query from the Qlikview SAP query viewer if you installed it from the SAP connector to Check that it is working or not other wise you have to change the query. Also check the TO_DATE function is properly used in the query or not may be that is the reason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jul 2014 06:06:49 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2014-07-09T06:06:49Z</dc:date>
    <item>
      <title>SQL Query to extract data from SAP not working</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-to-extract-data-from-SAP-not-working/m-p/736172#M1079798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN" style="font-family: 'Helvetica','sans-serif'; color: #3d3d3d; font-size: 10pt;"&gt;Hi Guys&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="font-family: 'Helvetica','sans-serif'; color: #3d3d3d; font-size: 10pt;"&gt;We have SAP ECC 6 , Oracle 11 i&amp;nbsp;&amp;nbsp; as data base. Below is the query which i have in Qlikview to extract the data from SAP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-family: 'Helvetica','sans-serif'; background: yellow; color: #3d3d3d; font-size: 9pt;"&gt;SQL SELECT &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-family: 'Helvetica','sans-serif'; background: yellow; color: #3d3d3d; font-size: 9pt;"&gt;MBLNR,&amp;nbsp; WERKS, MATNR, CHARG,&amp;nbsp; BWART, MENGE, MJAHR,&amp;nbsp; MKPF.BUDAT&amp;nbsp; FROM MSEG&amp;nbsp; , MKPF&amp;nbsp; where MSEG.MBLNR = MKPF.MBLNR and WERKS ='A100' and&amp;nbsp; MATNR = 'RM010000'&amp;nbsp; AND MKPF.BUDAT &amp;gt;= TO_DATE(’01-JAN-2014’,’DD-MON-YYYY’)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="font-family: 'Helvetica','sans-serif'; color: #3d3d3d; font-size: 8pt;"&gt;Above query is not working with SAP , on the contrary, when i use this query with our oracle server (Other than SAP), it works fine. Can anybody pls. help me out for this.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-family: 'Helvetica','sans-serif'; color: #3d3d3d; font-size: 9pt;"&gt;Below is the error which i am getting.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="font-family: 'Helvetica','sans-serif'; color: #3d3d3d; font-size: 9pt;"&gt;/QTQVC/OPEN_STREAM failed after 00:00:00 Key = SQL_ERROR (ID:00 Type:E Number:001 Comma without preceding colon (after OPEN ?).)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 05:58:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-to-extract-data-from-SAP-not-working/m-p/736172#M1079798</guid>
      <dc:creator>rahulhv1</dc:creator>
      <dc:date>2014-07-09T05:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query to extract data from SAP not working</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-to-extract-data-from-SAP-not-working/m-p/736173#M1079799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First try to execute this query from the Qlikview SAP query viewer if you installed it from the SAP connector to Check that it is working or not other wise you have to change the query. Also check the TO_DATE function is properly used in the query or not may be that is the reason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2014 06:06:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-to-extract-data-from-SAP-not-working/m-p/736173#M1079799</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-07-09T06:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query to extract data from SAP not working</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-to-extract-data-from-SAP-not-working/m-p/2019028#M1221992</link>
      <description>&lt;P&gt;Hi try this first in your SQL Server to see if it will fetch data.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;SELECT TOP (1000) * from openquery (HAP,&lt;BR /&gt;'SELECT * FROM Table A&amp;nbsp; ');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it will work then try to create a qvw with the following.:&lt;/P&gt;
&lt;P&gt;LET vConnectionStringDB=&amp;nbsp; ' [Provider=SQLOLEDB....................] '&amp;nbsp;&lt;BR /&gt;OLEDB CONNECT TO $(vConnectionStringDB);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LOAD *;&lt;BR /&gt;SQL &lt;BR /&gt;select * &lt;BR /&gt;from openquery(HAP,&lt;BR /&gt;'SELECT * &lt;BR /&gt;FROM Table');&lt;/P&gt;
&lt;P&gt;Hope this helped.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 15:02:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-to-extract-data-from-SAP-not-working/m-p/2019028#M1221992</guid>
      <dc:creator>panosalexand</dc:creator>
      <dc:date>2022-12-21T15:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query to extract data from SAP not working</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-to-extract-data-from-SAP-not-working/m-p/2019462#M1222001</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Also check the TO_DATE function is properly used in the query or not may be that is the reason.&amp;nbsp; &amp;nbsp;&lt;A href="http://lcps%20go" target="_self"&gt;&lt;FONT size="1 2 3 4 5 6 7" color="#FFFFFF"&gt;lcps go&lt;/FONT&gt;&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 18:10:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-to-extract-data-from-SAP-not-working/m-p/2019462#M1222001</guid>
      <dc:creator>MyrtleFletcher</dc:creator>
      <dc:date>2022-12-22T18:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query to extract data from SAP not working</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-to-extract-data-from-SAP-not-working/m-p/2022335#M1222103</link>
      <description>&lt;P&gt;For the QlikView SAP connector you have to use ABAP SQL syntax:&lt;/P&gt;
&lt;P&gt;SQL select&lt;BR /&gt;MSEG~MBLNR&lt;BR /&gt;MSEG~MJAHR&lt;BR /&gt;MSEG~ZEILE&lt;BR /&gt;MSEG~BWART&lt;BR /&gt;MSEG~MATNR&lt;BR /&gt;MSEG~WERKS&lt;BR /&gt;MSEG~CHARG&lt;BR /&gt;MSEG~MENGE&lt;BR /&gt;MKPF~BUDAT&lt;BR /&gt;from MSEG join MKPF on (MKPF~MBLNR=MSEG~MBLNR and MKPF~MJAHR=MSEG~MJAHR)&lt;BR /&gt;where MSEG~WERKS='A100' and MSEG~MATNR='RM010000' and MKPF~BUDAT&amp;gt;='20140101';&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 16:18:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-to-extract-data-from-SAP-not-working/m-p/2022335#M1222103</guid>
      <dc:creator>cwolf</dc:creator>
      <dc:date>2023-01-05T16:18:19Z</dc:date>
    </item>
  </channel>
</rss>

