on 03-06-2012 10:47 AM
Hi All,
I have to set all the numbers after the decimal point to zero and I have no idea how to do it.
e.g. in program the total is 19220.12 and I have to change it to 19220.00.
So how to do it in ABAP ??
Hi,
You can do it like this
DATA A TYPE P DECIMALS 2 VALUE '19220.12'.
DATA B TYPE P DECIMALS 2 VALUE .
B = TRUNC( A ).
Result would be as you need. i.e.19220.00
Check this [link|http://help.sap.com/saphelp_470/helpdata/en/fc/eb3316358411d1829f0000e829fbfe/content.htm]
Regards,
Joe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.