‎2010 Aug 19 8:16 AM
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
‎2010 Aug 19 8:48 AM
Why only char is allowed in unicode system ? this is not true. Curr fields will also work .
‎2010 Aug 19 10:38 AM
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,
‎2010 Aug 19 10:44 AM