11-08-2007 10:52 AM
Hello I have tried open a file but this file is .CSV and I have problems because in my code sy-subrc = 8 so the file is not open ok.
I think that the problem is that I have to use a .CSV file .
PARAMETERS: I_FILE(80)
DEFAULT 'C:**.csv' OBLIGATORY.
.
OPEN DATASET I_FILE FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF SY-SUBRC NE 0.
MESSAGE ID 'BC420' TYPE 'E' NUMBER '101' WITH I_FILE.
ENDIF.
If somebody can help me , please.
Thanks a lot
11-08-2007 11:49 AM
Open Dataset is for opening a file on the apllaction server, und your default make me think you are trying to open a file on the presentation server. Try using method gui_upload of class cl_gui_front_end_services instead of open dataset.
11-08-2007 11:49 AM
Open Dataset is for opening a file on the apllaction server, und your default make me think you are trying to open a file on the presentation server. Try using method gui_upload of class cl_gui_front_end_services instead of open dataset.
11-09-2007 10:57 AM
11-08-2007 1:32 PM