Application Development 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: 

DATATYPE CONVERSION ISSUES IN UNICODE

Former Member
0 Kudos

I get a syntax error while executing the following code - stating that var2 needs to be of type C,N,T,D. If I create a local variable of type numeric character and put write var1 to local variable currency var3_curr and then try move that local variable to var2(packed type) then we get a runtime dump.

REPORT ZROHIT.

data: var1 type p decimals 2 value '123.45',

var2 type p decimals 2,

var3_curr type t014-waers.

write var1 to var2 currency var3_curr.

write / var2.

Please help. All this happens in Unicode systems. Non Unicode system the above piece of code wrks fine.

1 REPLY 1

Former Member
0 Kudos

Try this its working

data: var1 type p decimals 2 value '123.45',

var2 type p decimals 2,

var3_curr type t014-waers.

var2 = var1.

write var1 currency var3_curr.

write / var2.