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

problem with uni-code and non-unicode

Former Member
0 Likes
359

HI folks,

I am working on ECC 5.0.

DATA: BEGIN OF ITAB OCCURS 0 ,

F1(10) TYPE C, "fixed length

END OF ITAB.

ITAB-F1 = 'abcDEF'.

APPEND ITAB.

ITAB-F1 = '全角TEST'.

APPEND ITAB.

using this data i am generating file into c drive.

but the file contains

first field of length 10 characters

second field of length 12 characters

eventhough the F1 lenth is 10 it is showing lenth as 12.

Application Undestanding: To view data in more than one Language

Technical Understanding: Conversion from non-unicode to unicode

i.e. 1 char = 1byte (non-unicode)

1 char=2 bytes (unicode)

can any one help..urgent requirement

Regards,

vinod

1 REPLY 1
Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
336

How are you "generating file"? Most likely encoding has to be set when writing into a file or something along those lines.