‎2006 Jun 30 9:43 PM
Hi all,
I am facing some problem while downloading the data to presentation server.In the program they are using the FM 'WS_DOWNLOAD' to download the file.But its not working and setting the sy-subrc eq 2 which means 'Cannot Write to File'.wat could be the possible reasons?
Thanks..
‎2006 Jun 30 9:47 PM
Might be the file name is already exitings? or the path is invalid
Regds
Manohar
‎2006 Jun 30 9:47 PM
Check if you have rights to create files in the folder folder.
Regards.
‎2006 Jun 30 9:49 PM
Hi,
That error pops up if you donot have authorizations in creating/writing a file on the presentation server ...and also if the file path that you have given is incorrect......
* download report to file
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
filename = 'C:tempreport.txt'
filetype = 'ASC'
TABLES
data_tab = it_report.Check whether you have passed the parameters as per this
http://www.sapdevelopment.co.uk/reporting/rep_capturerep.htm
Else please paste your code here
‎2006 Jun 30 10:13 PM
Hi,
The data could not be loaded into the front end file. Possible reasons:
- File name has the wrong format
- Error in operating system or network
- No authorization to create or write to this file
- Data locked by another user