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 Quantity problem

Former Member
0 Likes
1,047

Dear all,

Im using REUSE_ALV_Grid and displaying 2 Fields of Qyantity type as editable .

On display when i cahnge muy Quantity to '50' and press save tha value is automatically cahnged to '0.50'.

Can any one tell me what is the problem

.

8 REPLIES 8
Read only

Former Member
0 Likes
987

Modify the field catalog for the quantity field.

ls_fcat-decimals = 2.

Your ALV will then take into consideration the 2 decimal places.

Read only

Former Member
0 Likes
987

You need to associate a quantity unit field in ALV field catalog. That field must be editable too and user make an input there before press enter key.

Regards.

Rafael Rojas.

Read only

Former Member
0 Likes
987

Best would be take the quantity field as char type while declaring field catalog and then while saving into data base table use again quantity type.

Thanks

Seshu

Read only

Former Member
0 Likes
987

Put a break point on the PAI for your ALV and see what is happening

Read only

vinodh_arumugam
Explorer
0 Likes
987

Just try with the input 50.00

( Don't type 50 , otherwise it will take 0.50 )

Because the decimal place in quantity field is 2. you have to change it

from 2 to 0.

Or change the decimal place in Is_fieldcat to your own entries.

Read only

0 Likes
987

Im using Fuction Module method for ALV and there is no Component called 'Decimals' in field catalogue.

I used Decimals_out in filed catalogue but still the results are same....

Read only

0 Likes
987

Dear vinodh,

I need decimals places to be displayed in ALV.

Read only

Former Member
0 Likes
987

Hi,

U give like this

Data : quantity type p decimals 2.