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

CONVT_CODEPAGE

Former Member
0 Likes
790

Hi All,

I am running a program which reads the file on Application server and makes changes / addition to this file. But In Production environment, while reading the second record of the file it throws the error "CONVT_CODEPAGE".

However this programs runs smoothly in other environment with the same file as an input. Could any one please help me out with kind of action required to take?

Thanks in advance,

Jigar

2 REPLIES 2
Read only

Former Member
0 Likes
577

Hi Jigar,

It could be bcz the file has Japanese/Chinese or any other characters.

Its strange though that for the same file you dont get error in other environments.

Please add IGNORING CONVERSION ERRORS in OPEN DATASET statement.

OPEN DATASET FOR OUTPUT ... IGNORING CONVERSION ERRORS.
OPEN DATASET FOR INPUT ... IGNORING CONVERSION ERRORS.

Best regards,

Prashant

Read only

Former Member
0 Likes
577

hi

good

Catchable Exceptions

CX_SY_FILE_OPEN

Cause: The file is already open (only in Unicode programs)

Runtime Error: DATASET_REOPEN

CX_SY_CODEPAGE_CONVERTER_INIT

Cause: The required conversion is not supported (because you specified an invalid code page or a language with SET LOCALE LANGUAGE not supported during conversion).

Runtime Error: CONVT_CODEPAGE_INIT (catchable)

http://www.s001.org/ABAP-Hlp/abapopen_dataset.htm

reward point if helpful.

thanks

mrutyun^