Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

mode encoding default

Former Member
0 Likes
357

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.

1 REPLY 1
Read only

Former Member
0 Likes
316

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