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

Exception 'CX_SY_CONVERSION_CODEPAGE '

Former Member
0 Likes
3,832

Hi friends,

In one of my bank transfer report i'm getting the runtime error CONVT_CODE_PAGE with the exception

CX_SY_CONVERSION_CODEPAGE.I don't what is the reason for this dump and how to correct it.So can anyone of u provide me help on this.

I'm attaching the detailed description of the dump below.

Short text

A character set conversion is not possible.

What happened?

At the conversion of a text from codepage '4103' to codepage '1100':

- 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 'ZFFOCN_A' 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 2. If this number is 0, the second error case, as

mentioned above, has occurred.

Thanks in advance,

Vadivel.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,676
Hi

   Can you post the code extract. I guess this can be either the way open dataset statement is declared or the way the variables are passed.

Kind Regards
Eswar
4 REPLIES 4
Read only

Former Member
0 Likes
2,676

Hi,

Check the oss note 823232 released, this might be helpful,

Rgds,

Read only

Former Member
0 Likes
2,677
Hi

   Can you post the code extract. I guess this can be either the way open dataset statement is declared or the way the variables are passed.

Kind Regards
Eswar
Read only

Former Member
0 Likes
2,676

Hi Eshwar,

I have posted the code below:

*----


*

  • FORM DATEI_OEFFNEN *

*----


*

  • die jeweilige Datei (TemSe/File) öffnen *

  • open current file (either in TemSe or file-system) *

*----


*

FORM datei_oeffnen.

IF hlp_temse CA par_dtyp. "TemSe-Format

PERFORM temse_oeffnen.

ELSE. "disk-/tape-fmt on file-system

PERFORM naechster_index USING hlp_renum.

PERFORM fuellen_regut USING *regut-dtkey.

ADD 1 TO cnt_filenr.

hlp_filename = par_unix.

hlp_filename+45 = cnt_filenr.

CONDENSE hlp_filename NO-GAPS.

DATA i TYPE i.

i = cl_abap_char_utilities=>charsize.

IF i = 1.

OPEN DATASET hlp_filename IN BINARY MODE FOR OUTPUT.

ELSE. " unicode system

OPEN DATASET hlp_filename IN LEGACY BINARY MODE FOR OUTPUT.

ENDIF.

IF sy-subrc NE 0.

IF sy-batch EQ space.

MESSAGE a182(fr) WITH hlp_filename.

ELSE.

MESSAGE s182(fr) WITH hlp_filename.

STOP.

ENDIF.

ENDIF.

ENDIF.

Regards,

Vadivel

Read only

0 Likes
2,676
Hi Vadivel

   Depending on the source system of file use 
ENCODING DEFAULT/NON-UNICODE option and check if that 
can make any difference for you.

Kind Regards
Eswar