‎2008 Jul 13 11:12 AM
hello,
on ALV container i have grid display.
on gird, i have a column PRICE (type KWERT). this is editable.
when I change the price from 800.00 to 900.00, inside the program, it shows me only 9.00.
what can be the reason.
useful answers will be rewarded
‎2008 Jul 13 11:28 AM
Check whether any currency key is attached with it or not when creating the field catalog.. If a curr. key is attached then check the value in it.
Regards,
Joy.
‎2008 Jul 13 11:24 AM
Hi Surendra ,
Just debug the code and see whether its just showing the values 9.00 instead of 900 or taking the same value in the program also .
If it is taking the same value in the program also , try changing the type of the column , or in worst case just multiply it by 100 .
‎2008 Jul 13 11:28 AM
Check whether any currency key is attached with it or not when creating the field catalog.. If a curr. key is attached then check the value in it.
Regards,
Joy.
‎2008 Jul 13 11:49 AM
hi,
thanks for that.
i am not passing any Currency key.
also when I give value in decimals (for example 1.62 ), system gives a pop up error
saying 'Too many decimal places'
have you come across this any time ?
‎2008 Jul 13 12:43 PM
To solve all these errors u should pass the Currency key or hardcode it in the program. Means create a col. in the final table for Currency key. And populate some default value like USD etc..and hide it from display...
Regards,
Joy.
‎2008 Jul 14 8:16 AM
hi,
thanks for that.
in the fieldcatalog i have given the reference field name and reference table name as KBETR KONP.
this has solved the problem.