01-10-2007 5:59 AM
Hi every one,
please try this.
when i am executing this program, it is going to short dump.
pls anybody let me know asap..
report convert.
parameter : num1 type wrbtr.
data : num2(13) type c.
move num1 to num2.
replace all occurrences of '.' in num2 with ','.
write 😕 num2.
catch system-exceptions arithmetic_errors = 4.
move num2 to num1.
endcatch.
if sy-subrc eq 0.
write 😕 num1.
endif.
Regards,
neha
01-10-2007 6:01 AM
give the table name before wrbtr in the type declaration.
- Guru
Reward points for helpful answers
01-10-2007 6:03 AM
use this FM HRCM_STRING_TO_AMOUNT_CONVERT
pass the string , thousand separator,decimal separator, if it is currecy pass currecy key WAERS.
01-10-2007 6:03 AM
Hi Madhavi/Neha
',' will be treated as CHARACTER, hence forcing a character to currency field will lead in a short dump.
You can use the value in CHAR variable to display/interface as long there are no manipulations/calculations done...
Hope this helps.
Regards
Eswar