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: 

Convert into CURR data type

Former Member
0 Kudos

Hi all!!

I am reading from a text file, and one of the fields in my file, contains the value of the field LFM1-MINBW (min. orden value). Its data type is CURR a its domain WERT7. The problem is that I can't read the value of this field as a string, I mean, I can not directly read the value from the file, I need a conversion function, or something similar. Does anybody know hor can I gess the function to solve the problem? A function to convert from String into CURR data type??

Thank you very much!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

can u take the field value into a character format first and then convert it to ur curr type .

data : v1 like lfm1-MINBW.

data : v2(15) type c.

v2 = '234123333.22'.

write:/ v2.
v1 = v2.

write:/ v1.

check this .

regards,

vijay

2 REPLIES 2

Former Member
0 Kudos

can u take the field value into a character format first and then convert it to ur curr type .

data : v1 like lfm1-MINBW.

data : v2(15) type c.

v2 = '234123333.22'.

write:/ v2.
v1 = v2.

write:/ v1.

check this .

regards,

vijay

Former Member
0 Kudos

Hi,

You will have to populate the field from the file first in a Char variable then you can move the value using below code:

MOVE char_minbw TO I_LFM1-MINBW.

Here you need not have to use any Conversion Function.

Thanks