Skip to Content
0
Former Member
Oct 19, 2005 at 05:17 AM

error in reading a file

920 Views

i'm not able to read the file found in /usr/sap/trans directory. this is my code:

CALL FUNCTION 'WS_UPLOAD'

EXPORTING

filename = '/usr/sap/trans/POR_upload.txt'

filetype = 'ASC'

TABLES

data_tab = t_fname

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.

the error is no. 2. which is file_open_error. When i check using AL11 the file is present in the above directory. what it seems to be the problem?

thanks