Skip to Content
0
Former Member
Mar 30, 2010 at 02:24 PM

Function WS_UPLOAD to upload data from PC to SAP!

25 Views

Hello at all,

in my program i used the Function WS_UPLOAD and it works correct.

But my question is, can I also exporting a filename in the function more than 1024 characters?

DATA: file(1500) TYPE c.

file = (Path/Filename with over than 1024 characters)

file = 'C:\Dokumente und Einstellungen\ETO.Transic\Desktop\test.txt'.

CALL FUNCTION 'WS_UPLOAD'

EXPORTING

codepage = 'IBM'

filename = file

filetype = 'ASC'

IMPORTING

filelength = flength

TABLES

data_tab = tab

EXCEPTIONS

conversion_error = 1

file_open_error = 2

file_read_error = 3

invalid_table_width = 4

invalid_type = 5.

IF sy-subrc NE 0.

MESSAGE e888(sabapdocu) WITH 'ERROR in Function WS_UPLOAD'.

ENDIF.