Skip to Content
0
Former Member
May 11, 2011 at 10:10 AM

CX_SY_CONVERSION_CODEPAGE - Error when reading from file in unix directory

1729 Views

Hi

We have a custom report which reads data from a file put in the unix directory. This report has been running for good 3 years now without any code changes.

For a few days the report is dumping with the following error

CX_SY_CONVERSION_CODEPAGE

Short text

Character set conversion is not possible.

What happened?

When converting a text from code page '4110' to code page '4102',

the system either

- encountered a character which cannot be represented in one of

the two code pages; or

- found that this type of conversion is not supported.

The code where the dump occurs is:

  • load the file from the given path

OPEN DATASET p_p_lfdata FOR INPUT IN TEXT MODE ENCODING DEFAULT WITH SMART LINEFEED.

IF sy-subrc EQ 0.

DO.

>>>>>>>> READ DATASET p_p_lfdata INTO l_rec. " Dump occurs here

IF sy-subrc = 0.

I understand this error is thrown in the OPEN DATASET statements in case of non-unicode compliance, but this statement does not throw an error while the READ DATASET statement does..... Any particular reason why the READ statement is failing even though OPEN is successful???