2007 Oct 25 3:50 AM
Hi,
The function 'GUI_DOWNLOAD' doesn't work well on Vista ,no files have been downloaded to the local . But when i run the report on Windows XP, everything is well.
Anyone has meet this problem?
Expect your help. Thanks in advance.
qiuguo
2007 Oct 25 4:42 AM
Hi.
Please Pass Parameter "CODEPAGE"
2007 Oct 25 3:53 AM
Hi,
Check the threads below which are discussing similar issues -
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/gui_download-r-language-issue-1600649#
Hope this helps.
ashish
2007 Oct 25 4:08 AM
Hi,
thanks for your reply.
But that issue doesn't give me some valid information.
Hope more suggestion.
qiuguo
2007 Oct 25 4:42 AM
2007 Oct 25 6:56 AM
Hi,
I hava set the codepage. pls help me to check whether there is some error.
thanks very much.
the code is below:
call function 'GUI_DOWNLOAD'
exporting
BIN_FILESIZE =
filename = content_filename
filetype = 'ASC'
<b>CODEPAGE = '4310'</b>
APPEND = ' '
write_field_separator = 'X'
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
write_lf = 'X'
tables
data_tab = t_dn_document
fieldnames = download_fieldnames
exceptions
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
others = 22
.
if sy-subrc ne 0 .
message id 'HRPAYCN' type 'E' number '019'.
endif.
2007 Oct 25 7:05 AM
are you using SAP Logon710???
I have Vista on my machine and i tried to use 'GUI_DOWNLOAD' and it is working fine..
the file got downloaded into SapWorkDir which is in the User folder...
check same in your machine
2007 Oct 25 7:40 AM
Hi,
i set the path as the SAP WorkDir, it worked. but when i set path as others ,it didn't work.
Do i have to set the path as SAP WorkDir? Is there any solution? Hope your reply.
thanks very much.
qiuguo
2007 Oct 26 4:31 AM
no with the other path it is not working...
i tried doing that but the folder and file creation in vista needs lot of authorizations.. may be that is the reason it is not working...
i tried to create a file in c:\ProgramFiles.. it is not getting created there.. where as in my own folder i'm able to create a file...
2008 Jan 22 1:59 AM
Hi,
i create the file under the path of SAP gui and it works. In other path the sap program doesn't have the authorization to access the file in VISTA.
Thanks all.
qiuguo
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |