on 11-11-2008 7:12 AM
Hi ,
Value is coming from RFC in 2 Decimals only. But I want to set this RFC value as 3 decimals in webdynpro.
For ex :
XYZ = 10024.35 (from RFC)
I want to set Value to be displayed on screen = 1002.435
Plz help me.Thanks in Advance.
Regards
Risha
Hi,
We have setScale method to set the decimals of BigDecimal in Java.
BigDecimal bigdec = new BigDecimal(10024.33);
BigDecimal b = bigdec.setScale(3,BigDecimal.ROUND_UP);
Here we have set the scale of BigDecimal, so b value is 10024.330
Add these steps to get 3 decimals in your code...........
Regards,
Lakshmi Prasad.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
what is the type of the RFC output ? depending upon that we can divide that value by 10 and can display.
if this is not the requirement which you have then plz explain the scenario completely.
with regards
shanto aloor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Do you want the value to be displayed on screen as one tenth of the value coming from RFC?
After execution of the RFC, once the value is in ur context attribute, you may modify that particular context attribute before displaying.
Regards,
Anagha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
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.