Skip to Content
0
Former Member
Oct 17, 2005 at 08:18 AM

Problem in File Upload - URGENT

25 Views

Hi All,

Advance thanks for your reply

My Query

we are not mention the clint-no in my flat file

During file upload its client no add to itab

i will mention code also

parameters: p_file type rlgrap-filename obligatory

DEFAULT 'c:\temp\pcard.dat'.

at selection-screen on value-request for p_file.

call function 'WS_FILENAME_GET'

exporting

mask = ',.,..'

importing

filename = p_file

exceptions

inv_winsys = 1

no_batch = 2

selection_cancel = 3

selection_error = 4

others = 5.

call function 'WS_UPLOAD'

exporting

filename = p_file

filetype = 'DAT'

tables

data_tab = itAB

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.

Please send the guide lines or code for my query

i look forwar to your reply

Regards

Raj