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

Any consequences to use IGNORING CONVERSION ERRORS?

Former Member
0 Likes
3,204

I'm using

OPEN DATASET l_filepath FOR INPUT IN TEXT MODE ENCODING UTF-8 IGNORING CONVERSION ERRORS.

to read a file in UTF-8 in a non-unicode SAP system.

I need to know is there any consequences if I use the IGNORING CONVERSION ERRORS? Because if I not using this code, there will be runtime errors.

Thanks for your opinions.

1 ACCEPTED SOLUTION
Read only

anversha_s
Active Contributor
0 Likes
1,954

hi..

IGNORING CONVERSION ERRORS. - > this will by pass the conversion errors.

rgds

anver

8 REPLIES 8
Read only

Former Member
0 Likes
1,954

you can use the IGNORING CONVERSION ERRORS addition to make the system suppress conversion errors at runtime when reading or writing to a file. In general, reading or writing to a file causes a runtime error, unless this file has already been opened using an OPEN DATASET statement.

Read only

0 Likes
1,954

So the system will just bypass the conversion error without showing any error right?

Read only

0 Likes
1,954

Your understanding is right Irene.

Kind Regards

Eswar

Read only

anversha_s
Active Contributor
0 Likes
1,955

hi..

IGNORING CONVERSION ERRORS. - > this will by pass the conversion errors.

rgds

anver

Read only

0 Likes
1,954

If I use this IGNORING CONVERSION ERRORS, the dataset that I open will be still in codepage 8600 without convert to codepage 4110 (in thai) right?

Read only

0 Likes
1,954

Am not sure on this, will personally check and let you know.

Kind Regards

Eswar

Read only

0 Likes
1,954

Thanks for your help first. If you found the results, pls let me know as I need to convince my boss.

Read only

0 Likes
1,954

Sorry Irene, i coudlnt simulate the same on my system. You can go ahead with IGNORING CONVERSION ERRORS, if itz ok with data loss. I mean the Thai Characters coming will not be stored in SAP the same way right.

Kind Regards

Eswar