2007 Feb 12 9:26 AM
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!
2007 Feb 12 9:36 AM
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
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
2007 Feb 12 9:36 AM
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
2007 Feb 12 9:37 AM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |