Skip to Content
0
Former Member
Apr 24, 2007 at 06:58 AM

Re: GUI_UPLOAD Problem

14 Views

Hi Friends,

I am facing a problem while uploading data to internal table using Function module GUI_UPLOAD,it is showing a dump.I have sent the code along with this mail,Can you please let me the problem.

Code:

DATA: i_file like rlgrap-filename value 'C:\upld.txt'.

DATA: begin of it_datatab occurs 0,

row(500) type c,

end of it_datatab.

*START-OF-SELECTION

START-OF-SELECTION.

CALL FUNCTION 'GUI_UPLOAD'

EXPORTING

filename = i_file

filetype = 'ASC'

has_field_separator = 'X' "file is TAB delimited

TABLES

data_tab = it_datatab

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

OTHERS = 17.

IF sy-subrc NE 0.

write: 'Error ', sy-subrc, 'returned from GUI_UPLOAD FM'.

skip.

endif.

Regards,

Dinesh