Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error when inserting number into editable ALV

Former Member
0 Likes
629

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

3 REPLIES 3
Read only

former_member194669
Active Contributor
0 Likes
455

Hi,

use field catalog EDIT_MASK

wa_fcat-edit_mask = '___,___,___'.

aRs

Read only

Former Member
0 Likes
455

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.

Read only

Former Member
0 Likes
455

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>