‎2007 Jul 09 4:17 PM
Hi.
I am using the next code to move a file into a internal table.
Apertura de fichero para lectura
OPEN DATASET f_entrada FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc = 0.
DO.
Lectura del fichero
READ DATASET f_entrada INTO linea_datos-linea.
IF sy-subrc = 0.
APPEND linea_datos.
ELSE.
EXIT.
ENDIF.
ENDDO.
ENDIF.
Cierro el fichero
CLOSE DATASET f_entrada.
The file contains special characters as : Bº or Irún .
Any mode to open the file that accept this characters, with the preview code produce a error:
At the conversion of a text from codepage '4110' to codepage '4103':
- a character was found that cannot be displayed in one of the two
codepages;
- or it was detected that this conversion is not supported
The running ABAP program 'ZPRFUNSD05' had to be terminated as the conversion
would have produced incorrect data.
The number of characters that could not be displayed (and therefore not
be converted), is 1. If this number is 0, the second error case, as
mentioned above, has occurred.
Thanks.
‎2007 Jul 10 5:51 AM
Hi,
Please change the statement as follows:-
OPEN DATASET f_entrada FOR INPUT IN TEXT MODE ENCODING DEFAULT <b>IGNORING CONVERSION ERRORS</b>.
Best regards,
Prashant