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

ALV container issue

Former Member
0 Likes
657

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
639

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.

5 REPLIES 5
Read only

Former Member
0 Likes
639

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 .

Read only

Former Member
0 Likes
640

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.

Read only

0 Likes
639

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 ?

Read only

0 Likes
639

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.

Read only

0 Likes
639

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.