Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

GUI_DOWNLOAD

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

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.

Former Member
0 Kudos

Hi Manu,

Try removing FILETYPE from call function attributes. I think it will work.

**GIve points if this solves the problem.