Looking at the function module code, the exception is raised two places....
* filetype parameter valid ? CASE filetype. WHEN 'BIN' OR 'ASC'. WHEN OTHERS. RAISE INVALID_TYPE. ENDCASE.
So then you can only use 'BIN' or 'ASC'.
You said that you tried 'ASC', so then your exception has to be being raised from the second place which is
call function 'ITS_UPLOAD' EXPORTING codepage = codepage filename = tempfile filetype = typ trunclen = read_by_line IMPORTING filelength = filelength TABLES data_tab = data_tab EXCEPTIONS conversion_error = 1 file_read_error = 2 gui_refuse_filetransfer = 3 others = 4. IF sy-subrc = 1. RAISE invalid_type. ELSEIF sy-subrc = 2. RAISE file_read_error. ELSEIF sy-subrc = 3. RAISE gui_refuse_filetransfer. ELSEIF sy-subrc = 4. RAISE unknown_error. ENDIF.
But I believe that this code is only executed when the interface is ITS.
Can you post your code?
Regards,
Rich Heilman
Add a comment