2006 Aug 22 10:14 PM
Hi
I want to convert the Char field calue to the Quantity.
Please let me know how to do it.
Thanks
Kumar
Hi
I want to convert the Char field calue to the Quantity.
Please let me know how to do it.
Thanks
Kumar
2006 Aug 22 10:27 PM
hi
data: V_char(15).
data: v_menge type menge_d.
V_char = '11'.
v_menge = V_char.
write: / v_menge.
Thanks,
Naren
2006 Aug 22 10:35 PM
First verify that the field you want to convert is a number. Try using the following function:
data: v_char_field(100),
v_qty_num type rl03t-pickm.
call function 'MOVE_CHAR_TO_NUM'
exporting
chr = v_char_field
importing
num = v_qty_num
exceptions
convt_no_number = 1
convt_overflow = 2.
if sy-subrc <> 0.
"write/throw error message
endif.
2006 Aug 22 11:22 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |