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

Unicode Program : # is appearing for data types declared as char type

0 Likes
576

Hi friends,

I have copied one program on unicode system to unicode system. As only char type data types are allowed, i converted structure EP to char type only. Now during execution it is giving dump because it is showing value as '#' for 2 fields whos original data type was P and currency. How shall i convert them? Any suggession will helpful.

Abhijit

3 REPLIES 3
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
549

Why only char is allowed in unicode system ? this is not true. Curr fields will also work .

Read only

0 Likes
549

Hi Sandeep,

This is my piece of code : Initially structure EP was used in read dataset which is of different datatypes. so i created similar structure ep_c with data type as char. As u suggested, i tried to declare field BETRG as type currency. Then also it gave dump. (Runtime errors: UC_OBJECTS_NOT_CHARLIKE). For 2 fields BETRG and POHRS which is of currency and dec type originally, i am getting values as '#' causing in dump. In non unicode program both fields have values as '0.00' If i put these values in debugging then after execution, program comes to selection screen! Kindly advise.

Data : komok(2) type c,

  • betrg(18) TYPE c,

betrg type betrg,

pohrs(10) type c.

open dataset seq-in for input in text mode encoding default ignoring conversion errors.

if sy-subrc = 0.

do.

read dataset seq-in into ep_c.

case sy-subrc.

when 0.

move :ep_c-id to ep-id,

ep_c-text to ep-text,

ep_c-abkrs to ep-abkrs,

Read only

0 Likes
549

check this :