‎2016 May 26 11:53 AM
hi experts!
Conversion error happens with exception CX_sy_conversion_codepage at statement: TRANSFER <fs> to file. The error only happens at a certain line (61 of the table beeing looped on). Any ideas are appreciated. Thanks.
‎2016 May 26 9:23 PM
Could you check what is the code page of your system (transaction SNLS), in which code page is opened your text file (what is the exact OPEN DATASET statement), and which hexadecimal value contains <fs> when the dump occurs (provided in the short dump).
‎2016 May 26 9:23 PM
Could you check what is the code page of your system (transaction SNLS), in which code page is opened your text file (what is the exact OPEN DATASET statement), and which hexadecimal value contains <fs> when the dump occurs (provided in the short dump).
‎2016 May 27 6:53 AM
Code page for database is Unicode, and the statement OPEN DATASET filename FOR OUTPUT IN TEXT MODE ENCODING NON-UNICODE. The hexadec of that line seems similar to previous.
‎2016 May 27 8:25 AM
As said in the ABAP documentation, using NON-UNICODE is using the code page depending on the "text environment", i.e. the code page in table TCP0C depending on the session language (and possibly country). If it's English, then the code page is ASCII-like. Consequently, any non-ASCII character will generate an exception.
So the question is : why did you choose NON-UNICODE rather than DEFAULT?
‎2016 Jun 07 12:20 PM
the problem was that input file was type unicode but the program not outputting in unicode. Thanks Sandra.