Skip to Content
0
Former Member
Apr 21, 2008 at 05:25 PM

ole for excel 2007 SAVEAS failing

565 Views

Hi!

Am using abap+ole and code snippet below is failing; am using Excel 2007 in compatibility mode.

I just want to save the spreadsheet as a new name.

Really would appreciate your insights!

Thanks!

Jim

parameters: p_file type localfile default 'C:\temp\zz.xls'.

data: g_new type localfile value 'c:\temp\zzzzzzz.xls'.

data: e_work type ole2_object.

call method of e_work 'SAVEAS'

exporting

#1 = g_new.

(returns subrc = 2)