04-24-2007 5:20 PM
Hi all ,
Im using the function module GUI_DOWNLOAD. Well Im trying to download file for the GRN's done. It the internal table that Im passing has one article, it is generating the file , if more than that , no file gets generated.
The sy-subrc is 14.
and the exception thrown is Error calling data provider.
Does anyone have any idea?
Thanks in Advance,
Manu
04-24-2007 5:27 PM
Hi
check the file type and other parameters that were passed to fun module
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = <fullpath>
FILETYPE = 'BIN'
TABLES
DATA_TAB = <your internal table>
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.
reward if useful
regards
anji
04-24-2007 5:56 PM
check...
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = file-path name
FILETYPE = 'BIN' or 'ASC'
TABLES
DATA_TAB = internal table name.
also, ur internal table should be of charcter strings... means all field should be of type c.
04-25-2007 10:48 AM
Everything is same as you stated. The problem is that, the code runs perfectly in all Pre-production servers . But In Production Server the function module generates error.
04-25-2007 10:51 AM
Hi Manu,
Try removing FILETYPE from call function attributes. I think it will work.
**GIve points if this solves the problem.