Skip to Content
0
Former Member
Feb 07, 2012 at 03:21 PM

Download a file, Modify and again Uploading

19 Views

Hi all,

I am downloading a table from SAP into a excel using gui_download using the FM in following way

call method cl_gui_frontend_services=>gui_download

exporting

filename = 'C:/test.xls'

write_field_separator = 'X'

changing

data_tab = iexcel.

Where iexcel contains all the SAP table contents

This is working absolutely fine . Later on I am modifying the the downloaded file and trying to upload using the FM

SAP_CONVERT_TO_XLS_FORMAT

Now the problem is

The EXCEPTIONS

CONVERSION_FAILED = 1 "

So I am getting conversion failed error.

What is the problem in this approach .. and is gui_download giving me .xls only ???