2011 Oct 20 1:06 PM
Hi,
I have to read a Unicode created file into a non-unicode SAP System, version 4.7.
When I make the OPEN DATASET using ENCODING UTF-8 y get a CONVT_CODEPAGE dump. That´s odd cause my system is non-unicode. I don´t wanna use IGNORING CONVERSION ERRORS attribute, the output will be corrupt.
But when I use ENCODING NON-UNICODE or ENCODING DEFAULT the READ DATASET mysteriously truncate the record which try to read from real 401 characters to 361 characters. Variable is string.
I can see full records through AL11.
Any ideas?
Thanks,
Pablo.
2011 Oct 21 8:36 AM
Hi Pablo,
what kind of characters are stored in your UTF-8 file (Which language) ?
Which code page does your Non-Unicode system support ?
If these two areas do not match, then you get the mentioned error ...
Best regards,
Nils Buerckel
Hi,
I have to read a Unicode created file into a non-unicode SAP System, version 4.7.
When I make the OPEN DATASET using ENCODING UTF-8 y get a CONVT_CODEPAGE dump. That´s odd cause my system is non-unicode. I don´t wanna use IGNORING CONVERSION ERRORS attribute, the output will be corrupt.
But when I use ENCODING NON-UNICODE or ENCODING DEFAULT the READ DATASET mysteriously truncate the record which try to read from real 401 characters to 361 characters. Variable is string.
I can see full records through AL11.
Any ideas?
Thanks,
Pablo.
2011 Oct 21 7:38 AM
Hi,
Try using:
open dataset filename in text mode encoding default for input
ignoring conversion errors.
As said in AL11 its coming so the above code is used for that.
Hope this will surely help you !!!
Regards,
Punit
2011 Oct 21 8:36 AM
Hi Pablo,
what kind of characters are stored in your UTF-8 file (Which language) ?
Which code page does your Non-Unicode system support ?
If these two areas do not match, then you get the mentioned error ...
Best regards,
Nils Buerckel
2011 Oct 21 11:15 AM
Hello,
Finally attribite IGNORING CONVERSION ERRORS is working with ENCODING UTF-8 option.
I thought this attribute change special characters from the file into # character or another in SAP field, but it ignore dump and write data correctly.
Thanks all,
Pablo.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |