Hi ,
I am uploading a file through function module 'WS_UPLOAD' but it does not uploads everything.
It just uploads first 7 fields .
The file which i am uploading is a tab delimited file .Here is my code .
data: pathname type rlgrap-filename,
filename type rlgrap-filename,
file_length type n.
data: tmp_filename type rlgrap-filename,
ftype type rlgrap-filetype.
* Get the file name
clear pathname.
* perform get_filename using filename 'O' changing pathname.
call function 'WS_FILENAME_GET'
exporting
def_filename = filename
def_path = pathname
mask = ',*.*,*.*.'
mode = 'O'
importing
filename = tmp_filename
exceptions
inv_winsys = 01
no_batch = 02
selection_cancel = 03
selection_error = 04.
if sy-subrc = 0.
pathname = tmp_filename.
endif.
ftype = 'DAT'.
* Upload the data from the mentioned file name
if not pathname is initial.
* perform upload using pathname ftype file_length.
call function 'WS_UPLOAD'
exporting
codepage = 'IBM'
filename = pathname
filetype = ftype
user_form = ' '
user_prog = ' '
dat_d_format = ' '
importing
filelength = file_length
tables
data_tab = user_temp_tab
exceptions
conversion_error = 1
file_open_error = 2
file_read_error = 3
invalid_type = 4
no_batch = 5
unknown_error = 6
invalid_table_width = 7
gui_refuse_filetransfer = 8
customer_error = 9
others = 10.
endif.
Can anyone tell me the reason for this because i am using this function in a BADI to upload the data.