03-13-2014 6:30 AM
Hello everyone,
I have a field referring to standard data type TB_BZBETR which is currency field with CURR and 2 decimal places, is a editable one in ALV. When trying to enter any value first its displaying like 0.00 and then when i enter any value like 22 it is storing like 0.22 and when i try to enter like 22.22 it is not allowing me saying that decimal places not allowed. The only way i can enter is not giving point '.' in between like if 2224 is entered then it is storing like 22.24.
What wud be the prob please help me.
Thanks.
03-17-2014 10:49 AM
Hi,
Check out in your User setting as what you have given as separators for Decimal places.
Menu System>User Profile>Own Data
Thanks & Regards
Bala Krishna
03-17-2014 10:30 AM
03-17-2014 10:43 AM
03-17-2014 10:44 AM
maybe you should check your user settings, see thread http://scn.sap.com/thread/3481115
03-17-2014 11:15 AM
Hello
Check the demo program BCALV_EDIT_02, where when i edit the Airfare like as you say.
when i enter 22 and press check button it is adopting it to 22,00.
Check the program in detail it might give you some hint, also if you check under the package SLIS in SE80, there are lot of demo ALV programs for EDIT, check it and if you still didn't solve it, please revert we will help you.
Regards,
TP
03-17-2014 10:49 AM
Hi,
Check out in your User setting as what you have given as separators for Decimal places.
Menu System>User Profile>Own Data
Thanks & Regards
Bala Krishna
03-17-2014 7:06 PM
Hi,
Define a similar field of char/string type and using split statement segregate the values.Hide the mentioned filed in the field catalogue and display the new field in the ALV output.
Regards,
Kannan
03-17-2014 10:24 PM
as ABAP does not store decimals, the amount values are interpreted according to the decimals in the currency.
I have a field referring to standard data type TB_BZBETR which is currency field with CURR and 2 decimal places,
The default is 2 decimals, but some currencies like JPY, MEX are usually defined without decimals. So make sure your amount field is linked to a currency field via the ALV field catalog and maintain this field with the appropriate currency.
regards,
JNN