on 01-19-2006 3:10 PM
Hi All,
I have a problem to display decimal values from R/3 system to webdynpro table.
Iam using structure there declared all the varaibles as decimal 15,2 .
But I am not able to disply the decimal values intable of webDynpro.
Please help me for this.
Thanks in advance.
BHI
Hi,
You can use the below code to fix the no. of decimal places you want to show.
NumberFormat nf = null;
nf = NumberFormat.getInstance();
nf.setMaximumFractionDigits(2);
nf.setMinimumFractionDigits(2);
Hope this helps you all.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
BHI,
<i>But I am not able to disply the decimal values intable of webDynpro</i>
Ok, the type is not decimal. Is string or integer?
Valery Silaev
EPAM Systems
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
as u r importing RFC model all the datatypes in java side corresponding to r/3 are also created .
see in the dictonary of ur project .simple and structure type are created and u can use it.
and u r storing the data in some model node so when u r using table control rightclick on table and select structure binding it will display the context in ur view and from there u can select the attributes u want to display.
if u r copying data of modelnode to value node u can also select structure binding option in wizard which set the datatype for the attributes .
thanks,
yashpal
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 | |
10 | |
7 | |
6 | |
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.