2009 Jul 10 12:33 PM
Hi,
I have a requirement wherein i need to convert string to currency field which is further i am passing it to FM to convert it into words.
Foe example
Data: p type string value '23115.50',
v type pc207-betrg (currency length 15.)
I need to convert p to v. What are the ways by which i can convert it ?
Thanks
Parag
2009 Jul 10 12:41 PM
Hi,
Use 'HRCM_STRING_TO_AMOUNT_CONVERT' function module.
Thanks,
Sri.
Hi,
I have a requirement wherein i need to convert string to currency field which is further i am passing it to FM to convert it into words.
Foe example
Data: p type string value '23115.50',
v type pc207-betrg (currency length 15.)
I need to convert p to v. What are the ways by which i can convert it ?
Thanks
Parag
2009 Jul 10 12:39 PM
Hi,
WRITE p TO v.
will do the automatic conversion.
Regards,
Karol
correction (move not write - fingers were to fast):
DATA: p TYPE string,
v TYPE pc207-betrg.
p = '23115.50'.
move p to v.
write: / v.
2009 Jul 10 12:39 PM
DATA: p TYPE string VALUE '23115.50',
v TYPE pc207-betrg." (currency length 15.)
v = p.
" or
MOVE p TO v.
WRITE v.Thanks
Venkat.O
2009 Jul 10 12:41 PM
Hi,
Use 'HRCM_STRING_TO_AMOUNT_CONVERT' function module.
Thanks,
Sri.
2009 Jul 10 12:42 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |