<?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: Reading MS Access table data using OLE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-ms-access-table-data-using-ole/m-p/8394530#M1644198</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've found the answer &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; The problem was the version of the Access DB, I was using the latest version, but when I saved it as Access 2000 it works. I will do additional investigation regarding that issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Nov 2011 11:07:21 GMT</pubDate>
    <dc:creator>stefan_kolev4</dc:creator>
    <dc:date>2011-11-17T11:07:21Z</dc:date>
    <item>
      <title>Reading MS Access table data using OLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-ms-access-table-data-using-ole/m-p/8394529#M1644197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The purpose of the code below is to connect to MS Access DB which is located on my PC.&lt;/P&gt;&lt;P&gt;It is a simple mdb file w/o user name and password and only one table inside.&lt;/P&gt;&lt;P&gt;Everything looks simple and easy, but unfortunately I receive an error sy-subrc = 2 imediatelly after&lt;/P&gt;&lt;P&gt;CALL METHOD OF CONN 'Open' EXPORTING #1 = SQL.&lt;/P&gt;&lt;P&gt;Please advise what is wrong, why I am not able to connect to the mdb file !&lt;/P&gt;&lt;P&gt;Thanks in advance !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  Z_OLE.&lt;/P&gt;&lt;P&gt;TYPE-POOLS OLE2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: CONN      TYPE OLE2_OBJECT,&lt;/P&gt;&lt;P&gt;          RSDB      TYPE OLE2_OBJECT,&lt;/P&gt;&lt;P&gt;          SQL        TYPE C LENGTH 1024.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF WA_TEMP,&lt;/P&gt;&lt;P&gt;            VALUE TYPE C LENGTH 1024,&lt;/P&gt;&lt;P&gt;          END OF WA_TEMP,&lt;/P&gt;&lt;P&gt;          IT_TEMP LIKE STANDARD TABLE OF WA_TEMP.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF WA_CONTACTS,&lt;/P&gt;&lt;P&gt;            FName(20) TYPE c ,&lt;/P&gt;&lt;P&gt;            LNAME(20) TYPE c,&lt;/P&gt;&lt;P&gt;          END OF WA_CONTACTS,&lt;/P&gt;&lt;P&gt;          IT_CONTACTS LIKE TABLE OF WA_CONTACTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  CREATE OBJECT CONN 'ADODB.Connection'.&lt;/P&gt;&lt;P&gt;  CREATE OBJECT RSDB 'ADODB.Recordset'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MDB Connetion infomations&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CONCATENATE 'Provider=Microsoft.Jet.OLEDB.4.0;'&lt;/P&gt;&lt;P&gt;  'Data Source=C:\HoHDB\Test.mdb;'&lt;/P&gt;&lt;P&gt;  INTO SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD OF CONN 'Open' EXPORTING #1 = SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Query Statement ...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SQL = 'SELECT * FROM CONTACTS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Run Query&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL METHOD OF RSDB 'OPEN'&lt;/P&gt;&lt;P&gt;    EXPORTING #1 = SQL&lt;/P&gt;&lt;P&gt;    #2 = CONN&lt;/P&gt;&lt;P&gt;    #3 = '1'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 10:33:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-ms-access-table-data-using-ole/m-p/8394529#M1644197</guid>
      <dc:creator>stefan_kolev4</dc:creator>
      <dc:date>2011-11-17T10:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Reading MS Access table data using OLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-ms-access-table-data-using-ole/m-p/8394530#M1644198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've found the answer &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; The problem was the version of the Access DB, I was using the latest version, but when I saved it as Access 2000 it works. I will do additional investigation regarding that issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2011 11:07:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-ms-access-table-data-using-ole/m-p/8394530#M1644198</guid>
      <dc:creator>stefan_kolev4</dc:creator>
      <dc:date>2011-11-17T11:07:21Z</dc:date>
    </item>
  </channel>
</rss>

