on 03-18-2010 9:35 AM
Hi Experts,
I am having a Bigdecimal field, where we are using this field to display the price.
This Price field comes from a RFC, the data type is BPREI.
When I execute the RFC in the ABAP system and through Webdynpro, the Output is shown as
RFC WebDynpro
11,72 11.72
362,00 362
1.191,30 1,191.3
I am using the same context to display the values.
When I checked for the Datatype in Webdynpro also, it is of the same data type.
Please let me know,why there is change in the Format of the output field when displayed in webdynpro.
Thanks in advance.
Regards,
Palani
Hi,
Use setScale method to set the decimals of BigDecimal in Java.
BigDecimal b_dec = new BigDecimal(10232.33);
BigDecimal b = b_dec.setScale(3,BigDecimal.ROUND_UP);
Here we have set the scale of BigDecimal, so b value is 10232.330
Regards,
Satish Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Please check this /thread/1528553 [original link is broken]
Regards,
Arun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.