Skip to Content
0
Former Member
Nov 08, 2007 at 10:52 AM

OPEN DATASET I_FILE FOR INPUT IN TEXT MODE ENCODING DEFAULT.

288 Views

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 😉