2008 Jun 18 4:42 PM
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
.
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
.
2008 Jun 18 4:49 PM
Modify the field catalog for the quantity field.
ls_fcat-decimals = 2.
Your ALV will then take into consideration the 2 decimal places.
2008 Jun 18 4:53 PM
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.
2008 Jun 18 4:58 PM
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
2008 Jun 18 5:47 PM
Put a break point on the PAI for your ALV and see what is happening
2008 Jun 18 8:38 PM
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.
2008 Jun 19 7:20 AM
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....
2008 Jun 19 7:31 AM
2008 Jun 19 8:49 AM
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |