2007 Jun 12 7:55 PM
I want to convert a string or char length 9 into the Data-Typ DEC length 6 and 2 decimal places.
Source-Example for CHAR:
34,45 in HEX 33342C343520202020
Regards
Ulf
2007 Jun 12 8:10 PM
You could try this.
report zrich_0001 .
data: p type p decimals 2.
data: s type string.
s = '34,45'.
translate s using ',.'.
p = s .
write:/ p.
Regards,
Rich Heilman
2007 Jun 12 8:02 PM
Hi,
Please try this FM HRCM_STRING_TO_AMOUNT_CONVERT.
Regards,
Ferry Lianto
2007 Jul 25 9:53 AM
2007 Jun 12 8:02 PM
Welcome to SDN. Please chek this FM
CONVERT_FROM_CHAR_SORT_RFW
Hope it helps.
2007 Jun 12 8:10 PM
2007 Jun 13 5:50 AM
Ohhh myyy God,
Rich, thanks!! ... I don't see the differenz between '.' and ',' ...
Regards.
Ulf
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |