Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Error during file read from Application Server -Unicode tab Delimited Text file

$
0
0

Hi we have a requirement to read a file of type Unicode Tab delimited file ( containing chinese characters) from Application server.

i have tried in different ways , but i face following issue.

 

 

Out System is Uncode and the file is prepared in Excel and saved as " Unicode( tab delimited) Text file".

 

 

1.   I tried with OPEN DATASET p_inp_file FOR INPUT IN TEXT MODE ENCODING  default. but  it failed at statament READ DATASET p_inp_file INTO  lwa_line  . statement with error "CX_SY_CONVERSION_CODEPAGE"

 

 

What happened?

    During conversion of a text from code page '4110' to code page '4102',

    one of the following occurred:

 

 

 

 

2.

OPEN DATASET p_inp_file  FOR INPUT IN LEGACY TEXT MODE

    BIG ENDIAN CODE PAGE '4102'. Got below error immediately after executing the open data set statement.

 

 

Error:

The conversion of certain code pages is not supported.

What happened?

    The conversion of texts in code page '4102' to code page '4102' is not

    supported here.

 

 

3.

OPEN DATASET p_inp_file  FOR INPUT IN LEGACY TEXT MODE

    BIG ENDIAN CODE PAGE '4110'. Got below error immediately after executing the open data set statement.

 

 

Error:

The conversion of certain code pages is not supported.

What happened?

The conversion of texts in code page '4110' to code page '4102' is not

supported here.

 

 

 

 

4.

OPEN DATASET  p_inp_file FOR INPUT IN LEGACY  TEXT MODE BIG ENDIAN CODE PAGE '1100'

                          IGNORING CONVERSION ERRORS . I see that a special charecter '#' is added after each charetcre of the input file.

ex: if one of the field value is : Z1MAT , after reading the file it was:#Z#1#M#A#T

 

 

read1.PNG

read1.PNG

 

 

 

from the front end(PC) im able to read the same file with out any conversion, but same file when transferred to application server not working.

 

 

Please help to suggest how to read this Unicode tab Delimited Text file from application server. I see that its current code page 4102.

 

 

 

 

Thanks


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>