‎2008 Feb 11 11:56 AM
Hello,
I'm facing a problem with GUI_UPLOAD in that it sometimes fails with return code 13 (ACCESS_DENIED). It fails less than 1% of the time but due to the hundreds of calls a day I still need to handle several failures a day. The failure can occur on any workstation and for any user but it is not consistent to any workstation or user. Here's the call I make:
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = wf_local_file_path
filetype = 'BIN'
IMPORTING
filelength = wf_file_size
CHANGING
data_tab = int_file_data
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
not_supported_by_gui = 17
error_no_gui = 18
OTHERS = 19.
Has anyone faced anything similar? Anyone know what the cause might be? The fact that this failure only occurs 1% of the time makes it very hard to pin down.
Thanks,
Ahmad Shono
‎2008 Feb 11 1:00 PM
Actually, I realized the problem a few minutes ago. There's a script that should close the file before the upload takes place and it seems that 1% of the time the script doesn't finish in time before the upload so the access denied result occurs.
The solution I did was to wait a few seconds if the upload fails and then try again. Since it only happens 1% of the time it doesn't affect the users much.