<?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: Function Module behaves differently on a Mac and on a PC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-behaves-differently-on-a-mac-and-on-a-pc/m-p/12706701#M2018742</link>
    <description>&lt;P&gt;It looks to me like the issue is that OLE works differently between MacOS and Windows.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Feb 2023 21:03:12 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2023-02-21T21:03:12Z</dc:date>
    <item>
      <title>Function Module behaves differently on a Mac and on a PC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-behaves-differently-on-a-mac-and-on-a-pc/m-p/12706700#M2018741</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;
  &lt;P&gt;I'm using a report that calls a function module in order to read an Excel-file.&lt;/P&gt;
  &lt;P&gt;I do this in the SAP GUI and / or in Eclipse IDE&lt;/P&gt;
  &lt;UL&gt; 
   &lt;LI&gt;on a PC (HP Zbook running Windows 11 Enterprise Version 21H2 - SAP GUI 7.70 - Eclipse 2022-03 (4.23.0) - ADT (s. screenshots below)) and&lt;/LI&gt; 
   &lt;LI&gt;on a Mac (MacBook Pro 13" M2 2022 running macOS Ventura 13.1 - SAP GUI 7.80 - Eclipse 2022-12 (4.26.0) - ADT (s. screenshots below))&lt;/LI&gt; 
  &lt;/UL&gt;
  &lt;P&gt;using the same Excel-file.&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;The function module behave similarly on the PC and Mac until this statement:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;SET PROPERTY OF ls_excel 'Visible' = 0.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;where ls_excel is defined as following:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;DATA ls_excel type ole2_object.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;After this statement the SY-SUBRC is 0 on the PC and 3 on the Mac.&lt;/P&gt;
  &lt;P&gt;Do you have any idea why this different behavior happens?&lt;/P&gt;
  &lt;P&gt;Just before the SET PROPERTY… line there is this statement&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;	CREATE OBJECT ls_excel 'Excel.Application'.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Could it be that this line must be different on a Mac?&lt;/P&gt;
  &lt;P&gt;All the screenshots are in a ZIP-archive in Dropbox here:&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://www.dropbox.com/s/hwb8hcy5teiai59/Mac%20Anomalie.zip?dl=0" target="test_blank"&gt;https://www.dropbox.com/s/hwb8hcy5teiai59/Mac%20Anomalie.zip?dl=0&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Thanks!&lt;/P&gt;
  &lt;P&gt;Regards,&lt;BR /&gt;Vlad&lt;/P&gt;
  &lt;P&gt;P.S. Here come a couple of relevant screenshots:&lt;/P&gt;
  &lt;P&gt;- PC&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2141934-pc-image002-debug-eclipse-before.png" /&gt;&lt;/P&gt;
  &lt;P&gt;- Mac&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2141937-mac-image004-debug-eclipse-before.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2141939-mac-image005-debug-eclipse-after.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 20:42:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-behaves-differently-on-a-mac-and-on-a-pc/m-p/12706700#M2018741</guid>
      <dc:creator>Vlad_Ghitulescu</dc:creator>
      <dc:date>2023-02-21T20:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module behaves differently on a Mac and on a PC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-behaves-differently-on-a-mac-and-on-a-pc/m-p/12706701#M2018742</link>
      <description>&lt;P&gt;It looks to me like the issue is that OLE works differently between MacOS and Windows.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 21:03:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-behaves-differently-on-a-mac-and-on-a-pc/m-p/12706701#M2018742</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2023-02-21T21:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module behaves differently on a Mac and on a PC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-behaves-differently-on-a-mac-and-on-a-pc/m-p/12706702#M2018743</link>
      <description>&lt;P&gt;One could also use &lt;A href="https://github.com/abap2xlsx/abap2xlsx" target="_blank"&gt;abap2xlsx&lt;/A&gt; to read the file and relegate OLE where it belongs &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;To get started, you might want to follow the blogposts by &lt;SPAN class="mention-scrubbed"&gt;bfeeb8ed7fa64a7d95efc21f74a8c135&lt;/SPAN&gt;, starting from the &lt;A href="https://blogs.sap.com/2023/01/12/monthly-abap-to-excel-blog-january-2023/" target="_blank"&gt;january issue&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 21:36:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-behaves-differently-on-a-mac-and-on-a-pc/m-p/12706702#M2018743</guid>
      <dc:creator>abo</dc:creator>
      <dc:date>2023-02-21T21:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module behaves differently on a Mac and on a PC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-behaves-differently-on-a-mac-and-on-a-pc/m-p/12706703#M2018744</link>
      <description>&lt;P&gt;You can embed the screenshots directly in your question. Dropbox needs people to sign in if I'm not wrong.&lt;/P&gt;&lt;P&gt;NB: I didn't even know that Mac would even support OLE.&lt;/P&gt;&lt;P&gt;Taken from note &lt;A href="https://launchpad.support.sap.com/#/notes/1682628"&gt;1682628 - Solution Manager: Limitations with Apple OS X&lt;/A&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;"Functions such as Microsoft Office Integration, OLE (Active X) embedding, VML graphics, etc., do not work on non-Microsoft Windows operating systems."&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 22 Feb 2023 08:22:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-behaves-differently-on-a-mac-and-on-a-pc/m-p/12706703#M2018744</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-02-22T08:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module behaves differently on a Mac and on a PC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-behaves-differently-on-a-mac-and-on-a-pc/m-p/12706704#M2018745</link>
      <description>&lt;P&gt;Thanks for all the comments so far.&lt;/P&gt;&lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;matthew.billingham&lt;/SPAN&gt; I didn't think of it - I've only checked the right and permissions of the SAP GUI's temp folders on the Mac. How can I read then an Excel-file into a report from a Mac?&lt;/P&gt;&lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;c5e08e0478aa4727abc4482f5be390b2&lt;/SPAN&gt; abap2xlsx sounds good but - if I understand it correctly - it's only for output-ing XLSX. In my case I need to use a XLSX-file as an input.&lt;/P&gt;&lt;P&gt; &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; I didn't think about Dropbox requiring a sign in :-(. I embedded 4 of the screenshots in the question. Thanks for the note! But - similar to the question to Matthew Billingham - if so, how to read an XLSX-file into an ABAP-program on a Mac?&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 11:35:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-behaves-differently-on-a-mac-and-on-a-pc/m-p/12706704#M2018745</guid>
      <dc:creator>Vlad_Ghitulescu</dc:creator>
      <dc:date>2023-02-22T11:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module behaves differently on a Mac and on a PC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-behaves-differently-on-a-mac-and-on-a-pc/m-p/12706705#M2018746</link>
      <description>&lt;P&gt;Thanks. You're right, I was too quick, login is optional it's just that the below dialog is displayed the first time but is in fact optional. It's easy to work with Excel files using abap2xlsx, as Andrea explained. It's also for reading.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2140960-image.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 12:20:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-behaves-differently-on-a-mac-and-on-a-pc/m-p/12706705#M2018746</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-02-22T12:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module behaves differently on a Mac and on a PC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-behaves-differently-on-a-mac-and-on-a-pc/m-p/12706706#M2018747</link>
      <description>&lt;P&gt;Sorry for missing the upload part of abap2xlsx - I'm starting to read (again! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; the description of abap2xlsx and all the blog-posts of Paul Hardy...&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 12:34:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-behaves-differently-on-a-mac-and-on-a-pc/m-p/12706706#M2018747</guid>
      <dc:creator>Vlad_Ghitulescu</dc:creator>
      <dc:date>2023-02-22T12:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module behaves differently on a Mac and on a PC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-behaves-differently-on-a-mac-and-on-a-pc/m-p/12706707#M2018748</link>
      <description>&lt;P&gt;You have both the option of reading a file cell by cell, which allows you to make quick decisions based on the contents for example, and that of reading a whole tab into an internal table.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 12:53:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-behaves-differently-on-a-mac-and-on-a-pc/m-p/12706707#M2018748</guid>
      <dc:creator>abo</dc:creator>
      <dc:date>2023-02-22T12:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module behaves differently on a Mac and on a PC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-behaves-differently-on-a-mac-and-on-a-pc/m-p/12706708#M2018749</link>
      <description>&lt;P&gt;Here I am again, after reading something &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; about abap2xlsx (= blog posts + Paul Hardy chapter on abap2xlsx from "&lt;EM&gt;ABAP to the Future&lt;/EM&gt;").&lt;/P&gt;&lt;P&gt;Unfortunately everything I found so far is about outputting XLSX... so I cloned locally the GitHub-repo.&lt;/P&gt;&lt;P&gt;At first I was surprised by the amount of classes &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Just in order to begin with the ones that are possibly relevant for me (remember: I want to ONLY READ an XLSX-file with more than one tab and work with the data from each tab) I filtered the *reader*.abap* from the folder src&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2144602-screenshot-w-cleanshot-2023-02-28-at-121702.png" /&gt;&lt;/P&gt;&lt;P&gt;Am I on the right path so far or is it completely the wrong approach?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 11:28:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-behaves-differently-on-a-mac-and-on-a-pc/m-p/12706708#M2018749</guid>
      <dc:creator>Vlad_Ghitulescu</dc:creator>
      <dc:date>2023-02-28T11:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module behaves differently on a Mac and on a PC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-behaves-differently-on-a-mac-and-on-a-pc/m-p/12706709#M2018750</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;since the original posting I was trying in my spare time &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; to use abap2xlsx for reading my Excel-file… and yesterday with the help of &lt;A href="https://codezentrale.de/abap-abap2xlsx-excel-daten-xlsx-einlesen-und-inhalt-anzeigen/"&gt;an example from codezentrale.de&lt;/A&gt; (it was not easy to find an example of using abap2xlsx for reading XLSX / CSV! &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; ) I finally got it!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It's still a lot of work because&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;only one (and not even the first) of the 3 worksheets was read&lt;/LI&gt;&lt;LI&gt;there are a lot of empty cells that were read too&lt;/LI&gt;&lt;LI&gt;once in a while I get an error reclaiming not being able to access the file (… that has 777 Unix-permissions)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;but at least I can (sometime &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; read (at least parts of &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; my XLSX-file - compared with the original error it's a huge step forward!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;That's reason enough for me to close this ticket / thread and start tinkering with the abap2xlsx.&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you all for your input and especially  &lt;SPAN class="mention-scrubbed"&gt;c5e08e0478aa4727abc4482f5be390b2&lt;/SPAN&gt; &amp;amp;  &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; for pointing me in the right direction &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Until next time,&lt;BR /&gt;Vlad&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 08:59:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-behaves-differently-on-a-mac-and-on-a-pc/m-p/12706709#M2018750</guid>
      <dc:creator>Vlad_Ghitulescu</dc:creator>
      <dc:date>2023-05-04T08:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module behaves differently on a Mac and on a PC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-behaves-differently-on-a-mac-and-on-a-pc/m-p/12706710#M2018751</link>
      <description>&lt;P&gt;abap2xlsx has a &lt;A href="https://github.com/abap2xlsx/demos"&gt;separate repository of demo programs&lt;/A&gt;, including one to read XLSX file.&lt;/P&gt;</description>
      <pubDate>Sun, 07 May 2023 11:48:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-behaves-differently-on-a-mac-and-on-a-pc/m-p/12706710#M2018751</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-05-07T11:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module behaves differently on a Mac and on a PC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-behaves-differently-on-a-mac-and-on-a-pc/m-p/12706711#M2018752</link>
      <description>&lt;P&gt;Thanks  &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt;, I'll give it a try - although I still have problems setting an online or offline repository of abap2xlsx on my systems. I'll report these issues in GitHub. &lt;/P&gt;&lt;P&gt;I was lucky to find an offline repository with the abap2xlsx from 2018 somewhere in our system (!) and this is what I used with the example from codezentrale.de and your snippet as well.&lt;/P&gt;&lt;P&gt;That's also why I couldn't get any of the demo programs - I couldn't find them anywhere in the system.&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 15:52:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-behaves-differently-on-a-mac-and-on-a-pc/m-p/12706711#M2018752</guid>
      <dc:creator>Vlad_Ghitulescu</dc:creator>
      <dc:date>2023-05-08T15:52:10Z</dc:date>
    </item>
  </channel>
</rss>

