‎2007 Oct 25 6:42 AM
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
‎2007 Oct 25 6:51 AM
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
‎2007 Oct 25 6:56 AM
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^