Skip to Content
0
Former Member
May 07, 2008 at 06:47 PM

Can't Open Excel File From MAC

455 Views

Hi All,

I need to read a Excel file from MAC and the call fails. The below listed code works for PC but doesn't work for MAC Here is my code:

include ole2incl.

data: excel type ole2_object.

data: workbook type ole2_object.

create object excel 'Excel.Application'.

call method of excel 'workbooks' = workbook.

call method of workbook 'open' exporting #1 = '/Users/thalley/Desktop/RQA_TEST_1414_031108_1.xls'.

After processing the last statement, the sy-subrc is 2. I don't know anything about MAC OS. Do I need to do something different to open a file from MAC? Any help will be appreciated.

Thanks,

Ashok