‎2007 Jun 14 2:19 PM
Hi,
12 of the 37 fields in my current ALV report are editable. When output, the numbers are displayed as "2,321" and so on (keep the comma in mind.)
However, say you want to add 2 thousand to 2,321. The user should just change the 2 to a 4, making it 4,321. However, i get a runtime error"
Runtime Errors CONVT_NO_NUMBER
Exception CX_SY_CONVERSION_NO_NUMBER
Short text Unable to interpret "2,322.000 " as a number
It seems that the system only like values that are entered without commas, so the user would have to enter 4321, removing the existing comma.
How do I make this work with the comma value? My program (ALV) does not use OOP.
Points will be rewarded and all help will be greatly appreciated.
Thanks,
John
‎2007 Jun 14 2:28 PM
Hi,
use field catalog EDIT_MASK
wa_fcat-edit_mask = '___,___,___'.
aRs
‎2007 Jun 14 2:30 PM
is that field Currency or Quantity field ? if so please convert into charcter while displaying
if you want to do any calculation then convert that one into currency or quantity field after user edit that column ,again while displaying keep it as charcter.
‎2007 Jun 14 2:31 PM
hi
u can refer to the links below. hope they may help u
http://www.sapfans.com/forums/viewtopic.php?t=84933
http://www.sapfans.com/forums/viewtopic.php?t=69878
regards
ravish
<i><b>plz dont forget to reward points if helpful</b></i>