03-20-2009 6:53 AM
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.
03-23-2009 8:24 AM
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.