Application Development 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: 

Quantity field in ALV

former_member673075
Discoverer
0 Kudos

Hello All,

I am using OO - ALV in which I am displaying a quantity field.This field is an editable field and if user tries to change the value and SAVE , it is taking some wrong values.

Say suppose I am having 1.000 as the initial value and if user changes it to 2.000 and saves it is converted to .002.

I tried with qfieldname , ref_fieldname of fieldcat but of no use. Anything apart from this will be highly appreciated.

Regards,

Dhwani

3 REPLIES 3

Former Member
0 Kudos

Hi,

Instead of quantity declaration in field cat

take the field as character and built a fieldcat and try it.

Regards,

Nandha

0 Kudos

Hello Nanda,

Thx for your reply but I need to do summation on the output .

Regards,

Dhwani

Former Member
0 Kudos

User might be changing the value to only 2 and you might have declared the fieldcat with 2-3 decimal places. If you enter value with decimals say 2.001 it will take.

Otherwise you need to replace it with char value as Nanda has suggested.

Hope it helps.

Thanks,

Jayant